44 #include "fsl_power.h" 46 #include "gpio_driver.h" 84 #define I2C_S1_SCL_PIN D15 85 #define I2C_S1_SDA_PIN D14 86 #define I2C_S1_DRIVER Driver_I2C4 87 #define I2C_S1_DEVICE_INDEX I2C4_INDEX 88 #define I2C_S1_SIGNAL_EVENT I2C4_SignalEvent_t 91 #define I2C_S2_DRIVER Driver_I2C5 92 #define I2C_S2_DEVICE_INDEX I2C5_INDEX 93 #define I2C_S2_SIGNAL_EVENT I2C5_SignalEvent_t 96 #define SPI_S_DRIVER Driver_SPI5 97 #define SPI_S_BAUDRATE 500000U 98 #define SPI_S_DEVICE_INDEX SPI5_INDEX
99 #define SPI_S_SIGNAL_EVENT SPI5_SignalEvent_t 102 #define HOST_S_DRIVER Driver_USART0 103 #define HOST_S_SIGNAL_EVENT HOST_SignalEvent_t 104 #define HOST_B_DRIVER Driver_USART1 105 #define HOST_B_SIGNAL_EVENT HOST_SignalEvent_t 107 #define WIRED_USART USART0 108 #define WIRED_USART_CLK_SRC kCLOCK_Flexcomm0 109 #define WIRED_USART_CLK_FREQ CLOCK_GetFreq(kCLOCK_Flexcomm0) 110 #define WIRED_USART_IRQHandler FLEXCOMM0_IRQHandler 111 #define WIRED_USART_IRQn FLEXCOMM0_IRQn 113 #define WIRELESS_USART USART1 116 #define ADS_NVM_ADDR (FSL_FEATURE_SYSCON_FLASH_SIZE_BYTES - (2 * FSL_FEATURE_SYSCON_FLASH_SECTOR_SIZE_BYTES)) 119 #define ASK_USER_TO_RESUME(x) \ 120 static bool askResume = true; \ 121 static uint16_t samplesToProcess = x - 1; \ 122 if (askResume && !samplesToProcess--) \ 124 PRINTF("\r\n Specified samples processed, press any key to continue... \r\n"); \ 130 #ifdef BOARD_BootClockRUN 131 #undef BOARD_BootClockRUN 132 #define BOARD_BootClockRUN() \ 134 CLOCK_AttachClk(kFRO12M_to_FLEXCOMM0); \ 136 CLOCK_AttachClk(kFRO12M_to_FLEXCOMM4); \ 138 CLOCK_AttachClk(kFRO12M_to_FLEXCOMM5); \ 140 BOARD_BootClockFROHF48M() 151 #define THIS_BOARD 16 152 #define CORE_SYSTICK_HZ 48000000
153 #define CALIBRATION_NVM_ADDR 0x0003FF00
154 #define NVM_SECTOR_NUMBER 7
155 #define NVM_PAGE_NUMBER 1023
158 #define MAG_NVM_OFFSET 0 // 68 bytes used 159 #define GYRO_NVM_OFFSET 100 // 16 bytes used 160 #define ACCEL_NVM_OFFSET 140 // 88 bytes used
The GPIO pin handle for KSDK.
status_t SMC_SetPowerModeWait(void *)
Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...
gpioHandleKSDK_t GREEN_LED
gpioHandleKSDK_t BLUE_LED