![]() |
ISSDK
1.7
IoT Sensing Software Development Kit
|
The frdm_k64f.h file defines GPIO pin mappings for FRDM-K64F board. More...
#include "pin_mux.h"
#include "fsl_smc.h"
#include "MK64F12.h"
#include "RTE_Device.h"
#include "gpio_driver.h"
Go to the source code of this file.
Macros | |
#define | I2C_S1_SCL_PIN A5 |
#define | I2C_S1_SDA_PIN A4 |
#define | I2C_S1_DRIVER Driver_I2C1 |
#define | I2C_S1_DEVICE_INDEX I2C1_INDEX |
#define | I2C_S1_SIGNAL_EVENT I2C1_SignalEvent_t |
#define | I2C_S2_SCL_PIN D15 |
#define | I2C_S2_SDA_PIN D14 |
#define | I2C_S2_DRIVER Driver_I2C0 |
#define | I2C_S2_DEVICE_INDEX I2C0_INDEX |
#define | I2C_S2_SIGNAL_EVENT I2C0_SignalEvent_t |
#define | I2C_BB_SCL_PIN D15 |
#define | I2C_BB_SDA_PIN D14 |
#define | I2C_BB_DRIVER Driver_I2C0 |
#define | I2C_BB_DEVICE_INDEX I2C0_INDEX |
#define | I2C_BB_SIGNAL_EVENT I2C0_SignalEvent_t |
#define | SPI_S_SCLK D13 |
#define | SPI_S_MOSI D11 |
#define | SPI_S_MISO D12 |
#define | SPI_S_DRIVER Driver_SPI0 |
#define | SPI_S_BAUDRATE 500000U |
Transfer baudrate - 500k. More... | |
#define | SPI_S_DEVICE_INDEX SPI0_INDEX |
#define | SPI_S_SIGNAL_EVENT SPI0_SignalEvent_t |
#define | HOST_S_DRIVER Driver_USART0 |
#define | HOST_S_SIGNAL_EVENT HOST_SignalEvent_t |
#define | HOST_B_DRIVER Driver_USART3 |
#define | HOST_B_SIGNAL_EVENT HOST_SignalEvent_t |
#define | FXOS8700_BB_I2C_ADDR 0x1D |
#define | FXOS8700_BB_INT1 INT1 |
#define | FXOS8700_BB_INT2 INT2 |
#define | ASK_USER_TO_RESUME(x) |
#define | WIRED_UART UART0 |
KSDK instance name for the debug UART. More... | |
#define | WIRED_UART_PORT_CLKEN kCLOCK_PortB |
KDSK handle for the pin port clock enable. More... | |
#define | WIRED_UART_PORT PORTB |
KDSK handle for the pin port associated with this UART. More... | |
#define | WIRED_UART_RX_PIN 16U |
The port number associated with RX. More... | |
#define | WIRED_UART_TX_PIN 17U |
The port number associated with TX. More... | |
#define | WIRED_UART_MUX kPORT_MuxAlt3 |
If Using Orient App then use Host I/O. More... | |
#define | WIRED_UART_IRQHandler UART0_RX_TX_IRQHandler |
KDSK-specified IRQ handler name. More... | |
#define | WIRED_UART_IRQn UART0_RX_TX_IRQn |
The interrupt number associated with this IRQ. More... | |
#define | WIRED_UART_CLKSRC UART0_CLK_SRC |
KSDK instance name for the clock feeding this module. More... | |
#define | WIRED_UART_IRQn UART0_RX_TX_IRQn |
The interrupt number associated with this IRQ. More... | |
#define | WIRELESS_UART UART3 |
KSDK instance name for the debug UART. More... | |
#define | WIRELESS_UART_PORT_CLKEN kCLOCK_PortC |
KDSK handle for the pin port clock enable. More... | |
#define | WIRELESS_UART_PORT PORTC |
KDSK handle for the pin port associated with this UART. More... | |
#define | WIRELESS_UART_RX_PIN 16U |
The port number associated with RX. More... | |
#define | WIRELESS_UART_TX_PIN 17U |
The port number associated with TX. More... | |
#define | WIRELESS_UART_MUX kPORT_MuxAlt3 |
KDSK pin mux selector. More... | |
#define | WIRELESS_UART_IRQHandler UART3_RX_TX_IRQHandler |
KDSK-specified IRQ handler name. More... | |
#define | WIRELESS_UART_IRQn UART3_RX_TX_IRQn |
The interrupt number associated with this IRQ. More... | |
#define | WIRELESS_UART_CLKSRC UART3_CLK_SRC |
KSDK instance name for the clock feeding this module. More... | |
#define | WIRELESS_UART_IRQn UART3_RX_TX_IRQn |
The interrupt number associated with this IRQ. More... | |
#define | THIS_BOARD 5 |
FRDM_K64F. More... | |
#define | CORE_SYSTICK_HZ 120000000 |
core and systick clock rate (Hz) More... | |
#define | CALIBRATION_NVM_ADDR 0x000FF000 |
start of final 4K (sector size) of 1M flash More... | |
#define | ADS_NVM_ADDR 0x000FE000 |
start of the next to last 4K (sector size) of the 1M flash More... | |
#define | FLASH_SECTOR_SIZE_PROPERTY kFLASH_PropertyPflashSectorSize |
#define | FLASH_ERASE_KEY kFLASH_ApiEraseKey |
#define | MAG_NVM_OFFSET 0 |
#define | GYRO_NVM_OFFSET 100 |
#define | ACCEL_NVM_OFFSET 140 |
The frdm_k64f.h file defines GPIO pin mappings for FRDM-K64F board.
Definition in file frdm_k64f.h.
#define ACCEL_NVM_OFFSET 140 |
Definition at line 181 of file frdm_k64f.h.
Referenced by EraseAccelCalibrationFromNVM(), fInitializeAccelCalibration(), and SaveAccelCalibrationToNVM().
#define ADS_NVM_ADDR 0x000FE000 |
start of the next to last 4K (sector size) of the 1M flash
Definition at line 174 of file frdm_k64f.h.
Referenced by ADS_FlashCompare(), and ADS_FlashUpdate().
#define ASK_USER_TO_RESUME | ( | x | ) |
Definition at line 132 of file frdm_k64f.h.
Referenced by main().
#define CALIBRATION_NVM_ADDR 0x000FF000 |
start of final 4K (sector size) of 1M flash
Definition at line 173 of file frdm_k64f.h.
Referenced by EraseAccelCalibrationFromNVM(), EraseGyroCalibrationFromNVM(), EraseMagCalibrationFromNVM(), fInit_6DOF_GY_KALMAN(), fInit_9DOF_GBY_KALMAN(), fInitializeAccelCalibration(), fInitializeMagCalibration(), NVM_SetBlockFlash(), SaveAccelCalibrationToNVM(), SaveGyroCalibrationToNVM(), and SaveMagCalibrationToNVM().
#define CORE_SYSTICK_HZ 120000000 |
core and systick clock rate (Hz)
Definition at line 172 of file frdm_k64f.h.
Referenced by initializeFusionEngine().
#define FLASH_ERASE_KEY kFLASH_ApiEraseKey |
Definition at line 176 of file frdm_k64f.h.
Referenced by NVM_SetBlockFlash().
#define FLASH_SECTOR_SIZE_PROPERTY kFLASH_PropertyPflashSectorSize |
Definition at line 175 of file frdm_k64f.h.
Referenced by ADS_FlashUpdate(), and NVM_SetBlockFlash().
#define FXOS8700_BB_I2C_ADDR 0x1D |
Definition at line 127 of file frdm_k64f.h.
#define FXOS8700_BB_INT1 INT1 |
Definition at line 128 of file frdm_k64f.h.
#define FXOS8700_BB_INT2 INT2 |
Definition at line 129 of file frdm_k64f.h.
#define GYRO_NVM_OFFSET 100 |
Definition at line 180 of file frdm_k64f.h.
Referenced by EraseGyroCalibrationFromNVM(), fInit_6DOF_GY_KALMAN(), fInit_9DOF_GBY_KALMAN(), and SaveGyroCalibrationToNVM().
#define HOST_B_DRIVER Driver_USART3 |
Definition at line 123 of file frdm_k64f.h.
Referenced by main().
#define HOST_B_SIGNAL_EVENT HOST_SignalEvent_t |
Definition at line 124 of file frdm_k64f.h.
Referenced by main().
#define HOST_S_DRIVER Driver_USART0 |
Definition at line 119 of file frdm_k64f.h.
Referenced by main().
#define HOST_S_SIGNAL_EVENT HOST_SignalEvent_t |
Definition at line 120 of file frdm_k64f.h.
Referenced by main().
#define I2C_BB_DEVICE_INDEX I2C0_INDEX |
Definition at line 106 of file frdm_k64f.h.
Referenced by ADS_DetectShield().
#define I2C_BB_DRIVER Driver_I2C0 |
Definition at line 105 of file frdm_k64f.h.
#define I2C_BB_SCL_PIN D15 |
Definition at line 103 of file frdm_k64f.h.
#define I2C_BB_SDA_PIN D14 |
Definition at line 104 of file frdm_k64f.h.
#define I2C_BB_SIGNAL_EVENT I2C0_SignalEvent_t |
Definition at line 107 of file frdm_k64f.h.
Referenced by ADS_InitI2CBuses().
#define I2C_S1_DEVICE_INDEX I2C1_INDEX |
Definition at line 92 of file frdm_k64f.h.
Referenced by ADS_DetectShield(), ADS_FXLC95000Query(), and ADS_MMA9553Query().
#define I2C_S1_DRIVER Driver_I2C1 |
Definition at line 91 of file frdm_k64f.h.
#define I2C_S1_SCL_PIN A5 |
Definition at line 89 of file frdm_k64f.h.
#define I2C_S1_SDA_PIN A4 |
Definition at line 90 of file frdm_k64f.h.
#define I2C_S1_SIGNAL_EVENT I2C1_SignalEvent_t |
Definition at line 93 of file frdm_k64f.h.
Referenced by ADS_InitI2CBuses().
#define I2C_S2_DEVICE_INDEX I2C0_INDEX |
Definition at line 99 of file frdm_k64f.h.
#define I2C_S2_DRIVER Driver_I2C0 |
Definition at line 98 of file frdm_k64f.h.
#define I2C_S2_SCL_PIN D15 |
Definition at line 96 of file frdm_k64f.h.
#define I2C_S2_SDA_PIN D14 |
Definition at line 97 of file frdm_k64f.h.
#define I2C_S2_SIGNAL_EVENT I2C0_SignalEvent_t |
Definition at line 100 of file frdm_k64f.h.
#define MAG_NVM_OFFSET 0 |
Definition at line 179 of file frdm_k64f.h.
Referenced by EraseMagCalibrationFromNVM(), fInitializeMagCalibration(), and SaveMagCalibrationToNVM().
#define SPI_S_BAUDRATE 500000U |
Transfer baudrate - 500k.
Definition at line 114 of file frdm_k64f.h.
Referenced by ADS_InitSPIBus(), and main().
#define SPI_S_DEVICE_INDEX SPI0_INDEX |
Definition at line 115 of file frdm_k64f.h.
Referenced by ADS_DIFF_PQuery(), ADS_FXLS8471Query(), ADS_FXLS8962Query(), and main().
#define SPI_S_DRIVER Driver_SPI0 |
Definition at line 113 of file frdm_k64f.h.
Referenced by main().
#define SPI_S_MISO D12 |
Definition at line 112 of file frdm_k64f.h.
#define SPI_S_MOSI D11 |
Definition at line 111 of file frdm_k64f.h.
#define SPI_S_SCLK D13 |
Definition at line 110 of file frdm_k64f.h.
#define SPI_S_SIGNAL_EVENT SPI0_SignalEvent_t |
Definition at line 116 of file frdm_k64f.h.
Referenced by ADS_InitSPIBus(), and main().
#define THIS_BOARD 5 |
#define WIRED_UART UART0 |
KSDK instance name for the debug UART.
Definition at line 145 of file frdm_k64f.h.
Referenced by echo(), initializeControlPort(), WIRED_UART_IRQHandler(), and writeControlPort().
#define WIRED_UART_CLKSRC UART0_CLK_SRC |
KSDK instance name for the clock feeding this module.
Definition at line 155 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_IRQHandler UART0_RX_TX_IRQHandler |
KDSK-specified IRQ handler name.
Definition at line 152 of file frdm_k64f.h.
#define WIRED_UART_IRQn UART0_RX_TX_IRQn |
The interrupt number associated with this IRQ.
KSDK interrupt vector number.
Definition at line 156 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_IRQn UART0_RX_TX_IRQn |
The interrupt number associated with this IRQ.
KSDK interrupt vector number.
Definition at line 156 of file frdm_k64f.h.
#define WIRED_UART_MUX kPORT_MuxAlt3 |
If Using Orient App then use Host I/O.
KDSK pin mux selector
Definition at line 150 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_PORT PORTB |
KDSK handle for the pin port associated with this UART.
Definition at line 147 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_PORT_CLKEN kCLOCK_PortB |
KDSK handle for the pin port clock enable.
Definition at line 146 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_RX_PIN 16U |
The port number associated with RX.
Definition at line 148 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRED_UART_TX_PIN 17U |
The port number associated with TX.
Definition at line 149 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART UART3 |
KSDK instance name for the debug UART.
Definition at line 159 of file frdm_k64f.h.
Referenced by initializeControlPort(), WIRELESS_UART_IRQHandler(), writeControlPort(), and writeWirelessPort().
#define WIRELESS_UART_CLKSRC UART3_CLK_SRC |
KSDK instance name for the clock feeding this module.
Definition at line 167 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_IRQHandler UART3_RX_TX_IRQHandler |
KDSK-specified IRQ handler name.
Definition at line 165 of file frdm_k64f.h.
#define WIRELESS_UART_IRQn UART3_RX_TX_IRQn |
The interrupt number associated with this IRQ.
KSDK interrupt vector number.
Definition at line 168 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_IRQn UART3_RX_TX_IRQn |
The interrupt number associated with this IRQ.
KSDK interrupt vector number.
Definition at line 168 of file frdm_k64f.h.
#define WIRELESS_UART_MUX kPORT_MuxAlt3 |
KDSK pin mux selector.
Definition at line 164 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_PORT PORTC |
KDSK handle for the pin port associated with this UART.
Definition at line 161 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_PORT_CLKEN kCLOCK_PortC |
KDSK handle for the pin port clock enable.
Definition at line 160 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_RX_PIN 16U |
The port number associated with RX.
Definition at line 162 of file frdm_k64f.h.
Referenced by initializeControlPort().
#define WIRELESS_UART_TX_PIN 17U |
The port number associated with TX.
Definition at line 163 of file frdm_k64f.h.
Referenced by initializeControlPort().
Definition at line 114 of file frdm_k64f.c.
Definition at line 121 of file frdm_k64f.c.
Definition at line 128 of file frdm_k64f.c.
Definition at line 135 of file frdm_k64f.c.
Definition at line 66 of file frdm_k64f.c.
Definition at line 59 of file frdm_k64f.c.
gpioHandleKSDK_t BLUE_LED |
Definition at line 221 of file frdm_k64f.c.
Definition at line 98 of file frdm_k64f.c.
Definition at line 105 of file frdm_k64f.c.
gpioHandleKSDK_t D10 |
Definition at line 198 of file frdm_k64f.c.
gpioHandleKSDK_t D11 |
Definition at line 82 of file frdm_k64f.c.
gpioHandleKSDK_t D12 |
Definition at line 89 of file frdm_k64f.c.
gpioHandleKSDK_t D13 |
Definition at line 75 of file frdm_k64f.c.
gpioHandleKSDK_t D14 |
Definition at line 50 of file frdm_k64f.c.
gpioHandleKSDK_t D15 |
Definition at line 43 of file frdm_k64f.c.
Definition at line 142 of file frdm_k64f.c.
Definition at line 149 of file frdm_k64f.c.
Definition at line 156 of file frdm_k64f.c.
Definition at line 163 of file frdm_k64f.c.
Definition at line 76 of file frdm_k64f.h.
Definition at line 184 of file frdm_k64f.c.
Definition at line 191 of file frdm_k64f.c.
gpioHandleKSDK_t GREEN_LED |
Definition at line 214 of file frdm_k64f.c.
gpioHandleKSDK_t INT1 |
Definition at line 230 of file frdm_k64f.c.
gpioHandleKSDK_t INT2 |
Definition at line 237 of file frdm_k64f.c.
gpioHandleKSDK_t RED_LED |
Definition at line 207 of file frdm_k64f.c.