ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
ISF_SPI1.c
Go to the documentation of this file.
1 /* ###################################################################
2 ** This component module is generated by Processor Expert. Do not modify it.
3 ** Filename : ISF_SPI1.c
4 ** Project : ISF2P2_K64F_MQX_PROJ
5 ** Processor : MK64FN1M0VLL12
6 ** Component : fsl_dspi
7 ** Version : Component 1.2.0, Driver 01.00, CPU db: 3.00.000
8 ** Repository : KSDK 1.2.0
9 ** Compiler : GNU C Compiler
10 ** Date/Time : 2016-10-06, 13:38, # CodeGen: 0
11 **
12 ** Copyright : 1997 - 2015 Freescale Semiconductor, Inc.
13 ** All Rights Reserved.
14 **
15 ** Redistribution and use in source and binary forms, with or without modification,
16 ** are permitted provided that the following conditions are met:
17 **
18 ** o Redistributions of source code must retain the above copyright notice, this list
19 ** of conditions and the following disclaimer.
20 **
21 ** o Redistributions in binary form must reproduce the above copyright notice, this
22 ** list of conditions and the following disclaimer in the documentation and/or
23 ** other materials provided with the distribution.
24 **
25 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
26 ** contributors may be used to endorse or promote products derived from this
27 ** software without specific prior written permission.
28 **
29 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
33 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
36 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 **
40 ** http: www.freescale.com
41 ** mail: support@freescale.com
42 ** ###################################################################*/
43 /*!
44 ** @file ISF_SPI1.c
45 ** @version 01.00
46 */
47 /*!
48 ** @addtogroup ISF_SPI1_module ISF_SPI1 module documentation
49 ** @{
50 */
51 
52 /* ISF_SPI1. */
53 
54 #include "Events.h"
55 #include "ISF_SPI1.h"
56 
57 dspi_master_state_t ISF_SPI1_MasterState;
59 
60 const dspi_device_t ISF_SPI1_BusConfig0 = {
61  .bitsPerSec = 500000U,
62  .dataBusConfig.bitsPerFrame = 8U,
63  .dataBusConfig.clkPolarity = kDspiClockPolarity_ActiveHigh,
64  .dataBusConfig.clkPhase = kDspiClockPhase_FirstEdge,
65  .dataBusConfig.direction = kDspiMsbFirst,
66 };
67 
68 const dspi_master_user_config_t ISF_SPI1_MasterConfig0 = {
69  .whichCtar = kDspiCtar0,
70  .isSckContinuous = false,
71  .isChipSelectContinuous = false,
72  .whichPcs = kDspiPcs0,
73  .pcsPolarity = kDspiPcs_ActiveHigh,
74 };
75 
76 const dspi_slave_user_config_t ISF_SPI1_SlaveConfig0 = {
77  .dataConfig.bitsPerFrame = 8U,
78  .dataConfig.clkPolarity = kDspiClockPolarity_ActiveHigh,
79  .dataConfig.clkPhase = kDspiClockPhase_FirstEdge,
80  .dataConfig.direction = kDspiMsbFirst,
81  .dummyPattern = 0U,
82 };
83 
84 
85 /* END ISF_SPI1. */
86 
87 /*!
88 ** @}
89 */
90 /*
91 ** ###################################################################
92 **
93 ** This file was created by Processor Expert 10.5 [05.21]
94 ** for the Freescale Kinetis series of microcontrollers.
95 **
96 ** ###################################################################
97 */
const dspi_device_t ISF_SPI1_BusConfig0
Master bus configuration declaration.
Definition: ISF_SPI1.c:60
const dspi_slave_user_config_t ISF_SPI1_SlaveConfig0
Slave configuration declaration.
Definition: ISF_SPI1.c:76
uint32_t ISF_SPI1_calculatedBaudRate
Driver calculated baudrate is returned from DSPI_DRV_MasterInit() call. Generated due to enabled auto...
Definition: ISF_SPI1.c:58
This is user's event module. Put your event handler code here.
const dspi_master_user_config_t ISF_SPI1_MasterConfig0
Master configuration declaration.
Definition: ISF_SPI1.c:68
dspi_master_state_t ISF_SPI1_MasterState
Driver state structure. Generated due to enabled auto initialization.
Definition: ISF_SPI1.c:57