ISSDK  1.8
IoT Sensing Software Development Kit
Macros | Variables
frdm_k22f.h File Reference

The frdm_k22f.h file defines GPIO pins for FRDM-K22F board. More...

#include "pin_mux.h"
#include "fsl_smc.h"
#include "MK22F51212.h"
#include "RTE_Device.h"
#include "gpio_driver.h"
Include dependency graph for frdm_k22f.h:
This graph shows which files directly or indirectly include this file:

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_I2C0
 
#define I2C_S1_DEVICE_INDEX   I2C0_INDEX
 
#define I2C_S1_SIGNAL_EVENT   I2C0_SignalEvent_t
 
#define I2C_S2_SCL_PIN   D15
 
#define I2C_S2_SDA_PIN   D14
 
#define I2C_S2_DRIVER   Driver_I2C1
 
#define I2C_S2_DEVICE_INDEX   I2C1_INDEX
 
#define I2C_S2_SIGNAL_EVENT   I2C1_SignalEvent_t
 
#define I2C_BB_SCL_PIN   A5
 
#define I2C_BB_SDA_PIN   A4
 
#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_SPI1
 
#define SPI_S_BAUDRATE   500000U
 Transfer baudrate - 500k. More...
 
#define SPI_S_DEVICE_INDEX   SPI1_INDEX
 
#define SPI_S_SIGNAL_EVENT   SPI1_SignalEvent_t
 
#define HOST_S_DRIVER   Driver_USART1
 
#define HOST_S_SIGNAL_EVENT   HOST_SignalEvent_t
 
#define HOST_B_DRIVER   Driver_USART2
 
#define HOST_B_SIGNAL_EVENT   HOST_SignalEvent_t
 
#define FXOS8700_BB_I2C_ADDR   0x1C
 
#define FXOS8700_BB_INT1   INT1
 
#define FXOS8700_BB_INT2   INT2
 
#define ASK_USER_TO_RESUME(x)
 
Wired UART Parameters

Sensor Fusion aliases are defined in terms of specific hardware features defined in MK22F51212.h.

#define WIRED_UART   UART1
 KSDK instance name for the debug UART. More...
 
#define WIRED_UART_PORT_CLKEN   kCLOCK_PortE
 KDSK handle for the pin port clock enable. More...
 
#define WIRED_UART_PORT   PORTE
 KDSK handle for the pin port associated with this UART. More...
 
#define WIRED_UART_RX_PIN   1U
 The port number associated with RX. More...
 
#define WIRED_UART_TX_PIN   0U
 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   UART1_RX_TX_IRQHandler
 KDSK-specified IRQ handler name. More...
 
#define WIRED_UART_IRQn   UART1_RX_TX_IRQn
 The interrupt number associated with this IRQ. More...
 
#define WIRED_UART_CLKSRC   UART1_CLK_SRC
 KSDK instance name for the clock feeding this module. More...
 
#define WIRED_UART_IRQn   UART1_RX_TX_IRQn
 The interrupt number associated with this IRQ. More...
 
Wireless UART Parameters

Sensor Fusion aliases are defined in terms of specific hardware features defined in MK22F51212.h.

#define WIRELESS_UART   UART2
 KSDK instance name for the debug UART. More...
 
#define WIRELESS_UART_PORT_CLKEN   kCLOCK_PortD
 KDSK handle for the pin port clock enable. More...
 
#define WIRELESS_UART_PORT   PORTD
 KDSK handle for the pin port associated with this UART. More...
 
#define WIRELESS_UART_RX_PIN   2U
 The port number associated with RX. More...
 
#define WIRELESS_UART_TX_PIN   3U
 The port number associated with TX. More...
 
#define WIRELESS_UART_MUX   kPORT_MuxAlt3
 KDSK pin mux selector. More...
 
#define WIRELESS_UART_IRQHandler   UART2_RX_TX_IRQHandler
 KDSK-specified IRQ handler name. More...
 
#define WIRELESS_UART_IRQn   UART2_RX_TX_IRQn
 The interrupt number associated with this IRQ. More...
 
#define WIRELESS_UART_CLKSRC   UART2_CLK_SRC
 KSDK instance name for the clock feeding this module. More...
 
#define WIRELESS_UART_IRQn   UART2_RX_TX_IRQn
 The interrupt number associated with this IRQ. More...
 
Miscellaneous Hardware Configuration Parameters
#define THIS_BOARD   9
 FRDM_K22F. More...
 
#define CORE_SYSTICK_HZ   80000000
 core and systick clock rate (Hz) More...
 
#define CALIBRATION_NVM_ADDR   0x0007F800
 start of final 2K (sector size) of 512K flash More...
 
#define ADS_NVM_ADDR   0x0007F000
 start of the next to last 2K (sector size) of the 512K 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
 

Variables

gpioHandleKSDK_t A5
 
gpioHandleKSDK_t A4
 
gpioHandleKSDK_t D13
 
gpioHandleKSDK_t D11
 
gpioHandleKSDK_t D12
 
gpioHandleKSDK_t D14
 
gpioHandleKSDK_t D15
 
gpioHandleKSDK_t A0
 
gpioHandleKSDK_t A1
 
gpioHandleKSDK_t A2
 
gpioHandleKSDK_t A3
 
gpioHandleKSDK_t D0
 
gpioHandleKSDK_t D1
 
gpioHandleKSDK_t D2
 
gpioHandleKSDK_t D3
 
gpioHandleKSDK_t D4
 
gpioHandleKSDK_t D5
 
gpioHandleKSDK_t D6
 
gpioHandleKSDK_t D7
 
gpioHandleKSDK_t D8
 
gpioHandleKSDK_t D9
 
gpioHandleKSDK_t D10
 
gpioHandleKSDK_t RED_LED
 
gpioHandleKSDK_t GREEN_LED
 
gpioHandleKSDK_t BLUE_LED
 
gpioHandleKSDK_t INT1
 
gpioHandleKSDK_t INT2
 

Detailed Description

The frdm_k22f.h file defines GPIO pins for FRDM-K22F board.

Definition in file frdm_k22f.h.

Macro Definition Documentation

◆ ACCEL_NVM_OFFSET

#define ACCEL_NVM_OFFSET   140

Definition at line 160 of file frdm_k22f.h.

◆ ADS_NVM_ADDR

#define ADS_NVM_ADDR   0x0007F000

start of the next to last 2K (sector size) of the 512K flash

Definition at line 153 of file frdm_k22f.h.

◆ ASK_USER_TO_RESUME

#define ASK_USER_TO_RESUME (   x)
Value:
static volatile bool askResume = true; \
static uint16_t samplesToProcess = x - 1; \
if (askResume && !samplesToProcess--) \
{ \
PRINTF("\r\n Specified samples processed, press any key to continue... \r\n"); \
GETCHAR(); \
askResume = false; \
}

Definition at line 104 of file frdm_k22f.h.

◆ CALIBRATION_NVM_ADDR

#define CALIBRATION_NVM_ADDR   0x0007F800

start of final 2K (sector size) of 512K flash

Definition at line 152 of file frdm_k22f.h.

◆ CORE_SYSTICK_HZ

#define CORE_SYSTICK_HZ   80000000

core and systick clock rate (Hz)

Definition at line 151 of file frdm_k22f.h.

◆ FLASH_ERASE_KEY

#define FLASH_ERASE_KEY   kFLASH_ApiEraseKey

Definition at line 155 of file frdm_k22f.h.

◆ FLASH_SECTOR_SIZE_PROPERTY

#define FLASH_SECTOR_SIZE_PROPERTY   kFLASH_PropertyPflashSectorSize

Definition at line 154 of file frdm_k22f.h.

◆ FXOS8700_BB_I2C_ADDR

#define FXOS8700_BB_I2C_ADDR   0x1C

Definition at line 99 of file frdm_k22f.h.

◆ FXOS8700_BB_INT1

#define FXOS8700_BB_INT1   INT1

Definition at line 100 of file frdm_k22f.h.

◆ FXOS8700_BB_INT2

#define FXOS8700_BB_INT2   INT2

Definition at line 101 of file frdm_k22f.h.

◆ GYRO_NVM_OFFSET

#define GYRO_NVM_OFFSET   100

Definition at line 159 of file frdm_k22f.h.

◆ HOST_B_DRIVER

#define HOST_B_DRIVER   Driver_USART2

Definition at line 95 of file frdm_k22f.h.

◆ HOST_B_SIGNAL_EVENT

#define HOST_B_SIGNAL_EVENT   HOST_SignalEvent_t

Definition at line 96 of file frdm_k22f.h.

◆ HOST_S_DRIVER

#define HOST_S_DRIVER   Driver_USART1

Definition at line 91 of file frdm_k22f.h.

◆ HOST_S_SIGNAL_EVENT

#define HOST_S_SIGNAL_EVENT   HOST_SignalEvent_t

Definition at line 92 of file frdm_k22f.h.

◆ I2C_BB_DEVICE_INDEX

#define I2C_BB_DEVICE_INDEX   I2C0_INDEX

Definition at line 78 of file frdm_k22f.h.

◆ I2C_BB_DRIVER

#define I2C_BB_DRIVER   Driver_I2C0

Definition at line 77 of file frdm_k22f.h.

◆ I2C_BB_SCL_PIN

#define I2C_BB_SCL_PIN   A5

Definition at line 75 of file frdm_k22f.h.

◆ I2C_BB_SDA_PIN

#define I2C_BB_SDA_PIN   A4

Definition at line 76 of file frdm_k22f.h.

◆ I2C_BB_SIGNAL_EVENT

#define I2C_BB_SIGNAL_EVENT   I2C0_SignalEvent_t

Definition at line 79 of file frdm_k22f.h.

◆ I2C_S1_DEVICE_INDEX

#define I2C_S1_DEVICE_INDEX   I2C0_INDEX

Definition at line 63 of file frdm_k22f.h.

◆ I2C_S1_DRIVER

#define I2C_S1_DRIVER   Driver_I2C0

Definition at line 62 of file frdm_k22f.h.

◆ I2C_S1_SCL_PIN

#define I2C_S1_SCL_PIN   A5

Definition at line 60 of file frdm_k22f.h.

◆ I2C_S1_SDA_PIN

#define I2C_S1_SDA_PIN   A4

Definition at line 61 of file frdm_k22f.h.

◆ I2C_S1_SIGNAL_EVENT

#define I2C_S1_SIGNAL_EVENT   I2C0_SignalEvent_t

Definition at line 64 of file frdm_k22f.h.

◆ I2C_S2_DEVICE_INDEX

#define I2C_S2_DEVICE_INDEX   I2C1_INDEX

Definition at line 71 of file frdm_k22f.h.

◆ I2C_S2_DRIVER

#define I2C_S2_DRIVER   Driver_I2C1

Definition at line 70 of file frdm_k22f.h.

◆ I2C_S2_SCL_PIN

#define I2C_S2_SCL_PIN   D15

Definition at line 68 of file frdm_k22f.h.

◆ I2C_S2_SDA_PIN

#define I2C_S2_SDA_PIN   D14

Definition at line 69 of file frdm_k22f.h.

◆ I2C_S2_SIGNAL_EVENT

#define I2C_S2_SIGNAL_EVENT   I2C1_SignalEvent_t

Definition at line 72 of file frdm_k22f.h.

◆ MAG_NVM_OFFSET

#define MAG_NVM_OFFSET   0

Definition at line 158 of file frdm_k22f.h.

◆ SPI_S_BAUDRATE

#define SPI_S_BAUDRATE   500000U

Transfer baudrate - 500k.

Definition at line 86 of file frdm_k22f.h.

◆ SPI_S_DEVICE_INDEX

#define SPI_S_DEVICE_INDEX   SPI1_INDEX

Definition at line 87 of file frdm_k22f.h.

◆ SPI_S_DRIVER

#define SPI_S_DRIVER   Driver_SPI1

Definition at line 85 of file frdm_k22f.h.

◆ SPI_S_MISO

#define SPI_S_MISO   D12

Definition at line 84 of file frdm_k22f.h.

◆ SPI_S_MOSI

#define SPI_S_MOSI   D11

Definition at line 83 of file frdm_k22f.h.

◆ SPI_S_SCLK

#define SPI_S_SCLK   D13

Definition at line 82 of file frdm_k22f.h.

◆ SPI_S_SIGNAL_EVENT

#define SPI_S_SIGNAL_EVENT   SPI1_SignalEvent_t

Definition at line 88 of file frdm_k22f.h.

◆ THIS_BOARD

#define THIS_BOARD   9

FRDM_K22F.

Definition at line 150 of file frdm_k22f.h.

◆ WIRED_UART

#define WIRED_UART   UART1

KSDK instance name for the debug UART.

Definition at line 118 of file frdm_k22f.h.

◆ WIRED_UART_CLKSRC

#define WIRED_UART_CLKSRC   UART1_CLK_SRC

KSDK instance name for the clock feeding this module.

Definition at line 128 of file frdm_k22f.h.

◆ WIRED_UART_IRQHandler

#define WIRED_UART_IRQHandler   UART1_RX_TX_IRQHandler

KDSK-specified IRQ handler name.

Definition at line 125 of file frdm_k22f.h.

◆ WIRED_UART_IRQn [1/2]

#define WIRED_UART_IRQn   UART1_RX_TX_IRQn

The interrupt number associated with this IRQ.

KSDK interrupt vector number.

Definition at line 129 of file frdm_k22f.h.

◆ WIRED_UART_IRQn [2/2]

#define WIRED_UART_IRQn   UART1_RX_TX_IRQn

The interrupt number associated with this IRQ.

KSDK interrupt vector number.

Definition at line 129 of file frdm_k22f.h.

◆ WIRED_UART_MUX

#define WIRED_UART_MUX   kPORT_MuxAlt3

If Using Orient App then use Host I/O.

KDSK pin mux selector

Definition at line 123 of file frdm_k22f.h.

◆ WIRED_UART_PORT

#define WIRED_UART_PORT   PORTE

KDSK handle for the pin port associated with this UART.

Definition at line 120 of file frdm_k22f.h.

◆ WIRED_UART_PORT_CLKEN

#define WIRED_UART_PORT_CLKEN   kCLOCK_PortE

KDSK handle for the pin port clock enable.

Definition at line 119 of file frdm_k22f.h.

◆ WIRED_UART_RX_PIN

#define WIRED_UART_RX_PIN   1U

The port number associated with RX.

Definition at line 121 of file frdm_k22f.h.

◆ WIRED_UART_TX_PIN

#define WIRED_UART_TX_PIN   0U

The port number associated with TX.

Definition at line 122 of file frdm_k22f.h.

◆ WIRELESS_UART

#define WIRELESS_UART   UART2

KSDK instance name for the debug UART.

Definition at line 136 of file frdm_k22f.h.

◆ WIRELESS_UART_CLKSRC

#define WIRELESS_UART_CLKSRC   UART2_CLK_SRC

KSDK instance name for the clock feeding this module.

Definition at line 144 of file frdm_k22f.h.

◆ WIRELESS_UART_IRQHandler

#define WIRELESS_UART_IRQHandler   UART2_RX_TX_IRQHandler

KDSK-specified IRQ handler name.

Definition at line 142 of file frdm_k22f.h.

◆ WIRELESS_UART_IRQn [1/2]

#define WIRELESS_UART_IRQn   UART2_RX_TX_IRQn

The interrupt number associated with this IRQ.

KSDK interrupt vector number.

Definition at line 145 of file frdm_k22f.h.

◆ WIRELESS_UART_IRQn [2/2]

#define WIRELESS_UART_IRQn   UART2_RX_TX_IRQn

The interrupt number associated with this IRQ.

KSDK interrupt vector number.

Definition at line 145 of file frdm_k22f.h.

◆ WIRELESS_UART_MUX

#define WIRELESS_UART_MUX   kPORT_MuxAlt3

KDSK pin mux selector.

Definition at line 141 of file frdm_k22f.h.

◆ WIRELESS_UART_PORT

#define WIRELESS_UART_PORT   PORTD

KDSK handle for the pin port associated with this UART.

Definition at line 138 of file frdm_k22f.h.

◆ WIRELESS_UART_PORT_CLKEN

#define WIRELESS_UART_PORT_CLKEN   kCLOCK_PortD

KDSK handle for the pin port clock enable.

Definition at line 137 of file frdm_k22f.h.

◆ WIRELESS_UART_RX_PIN

#define WIRELESS_UART_RX_PIN   2U

The port number associated with RX.

Definition at line 139 of file frdm_k22f.h.

◆ WIRELESS_UART_TX_PIN

#define WIRELESS_UART_TX_PIN   3U

The port number associated with TX.

Definition at line 140 of file frdm_k22f.h.

Variable Documentation

◆ A0

Definition at line 88 of file frdm_k64f.c.

◆ A1

Definition at line 95 of file frdm_k64f.c.

◆ A2

Definition at line 102 of file frdm_k64f.c.

◆ A3

Definition at line 109 of file frdm_k64f.c.

◆ A4

Definition at line 40 of file frdm_k64f.c.

◆ A5

Definition at line 33 of file frdm_k64f.c.

◆ BLUE_LED

gpioHandleKSDK_t BLUE_LED

Definition at line 195 of file frdm_k64f.c.

◆ D0

Definition at line 72 of file frdm_k64f.c.

◆ D1

Definition at line 79 of file frdm_k64f.c.

◆ D10

Definition at line 172 of file frdm_k64f.c.

◆ D11

Definition at line 56 of file frdm_k64f.c.

◆ D12

Definition at line 63 of file frdm_k64f.c.

◆ D13

Definition at line 49 of file frdm_k64f.c.

◆ D14

Definition at line 24 of file frdm_k64f.c.

◆ D15

Definition at line 17 of file frdm_k64f.c.

◆ D2

Definition at line 116 of file frdm_k64f.c.

◆ D3

Definition at line 123 of file frdm_k64f.c.

◆ D4

Definition at line 130 of file frdm_k64f.c.

◆ D5

Definition at line 137 of file frdm_k64f.c.

◆ D6

Definition at line 144 of file frdm_k64f.c.

◆ D7

Definition at line 151 of file frdm_k64f.c.

◆ D8

Definition at line 158 of file frdm_k64f.c.

◆ D9

Definition at line 165 of file frdm_k64f.c.

◆ GREEN_LED

gpioHandleKSDK_t GREEN_LED

Definition at line 188 of file frdm_k64f.c.

◆ INT1

Definition at line 204 of file frdm_k64f.c.

◆ INT2

Definition at line 211 of file frdm_k64f.c.

◆ RED_LED

Definition at line 181 of file frdm_k64f.c.