19 #include "gpio_driver.h" 20 #include "fsl_power.h" 40 #define I2C_S1_SCL_PIN A5 41 #define I2C_S1_SDA_PIN A4 42 #define I2C_S1_DRIVER Driver_I2C11 43 #define I2C_S1_DEVICE_INDEX I2C11_INDEX 44 #define I2C_S1_SIGNAL_EVENT I2C11_SignalEvent_t 47 #define I2C_S2_SCL_PIN D15 48 #define I2C_S2_SDA_PIN D14 49 #define I2C_S2_DRIVER Driver_I2C11 50 #define I2C_S2_DEVICE_INDEX I2C11_INDEX 51 #define I2C_S2_SIGNAL_EVENT I2C11_SignalEvent_t 54 #define SPI_S_SCLK D13 55 #define SPI_S_MISO D12 56 #define SPI_S_MOSI D11 57 #define SPI_S_DRIVER Driver_SPI1 58 #define SPI_S_BAUDRATE 500000U 59 #define SPI_S_DEVICE_INDEX SPI1_INDEX
60 #define SPI_S_SIGNAL_EVENT SPI1_SignalEvent_t 63 #define HOST_S_DRIVER Driver_USART1 64 #define HOST_S_SIGNAL_EVENT HOST_SignalEvent_t 67 #define FXOS8700_BB_I2C_ADDR 0x1E 68 #define FXOS8700_BB_INT1 INT1 69 #define FXOS8700_BB_INT2 INT2 72 #define ASK_USER_TO_RESUME(x) \ 73 static volatile bool askResume = true; \ 74 static uint16_t samplesToProcess = x - 1; \ 75 if (askResume && !samplesToProcess--) \ 77 PRINTF("\r\n Specified samples processed, press any key to continue... \r\n"); \ status_t SMC_SetPowerModeWait(void *)
Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...
status_t SMC_SetPowerModeVlpr(void *)
Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...
The GPIO pin handle for i.MX SDK.