18 #include "gpio_driver.h" 19 #include "main/imx8qm_pads.h" 20 #include "svc/pad/pad_api.h" 23 #define I2C_BB_SCL_PIN SC_P_HDMI_TX0_TS_SCL 24 #define I2C_BB_SDA_PIN SC_P_HDMI_TX0_TS_SDA 25 #define I2C_BB_DRIVER Driver_I2C2 26 #define I2C_BB_DEVICE_INDEX I2C2_INDEX 27 #define I2C_BB_SIGNAL_EVENT I2C2_SignalEvent_t 30 #define HOST_S_DRIVER Driver_USART0 31 #define HOST_S_SIGNAL_EVENT HOST_SignalEvent_t 34 #define FXOS8700_BB_I2C_ADDR 0x1E 39 #define FXAS21002_BB_I2C_ADDR 0x20 44 #define MPL3115_BB_I2C_ADDR 0x60 49 #define ASK_USER_TO_RESUME(x) \ 50 static volatile bool askResume = true; \ 51 static uint16_t samplesToProcess = x - 1; \ 52 if (askResume && !samplesToProcess--) \ 54 PRINTF("\r\n Specified samples processed, press any key to continue... \r\n"); \ 61 #define I2C_Type LPI2C_Type 62 #define I2C_BASE_PTRS LPI2C_BASE_PTRS 64 #define SPI_Type LPSPI_Type 65 #define SPI_BASE_PTRS LPSPI_BASE_PTRS 68 #define FXAS21002_I2C_ADDR FXAS21002_BB_I2C_ADDR 69 #define FXOS8700_I2C_ADDR FXOS8700_BB_I2C_ADDR 70 #define MPL3115_I2C_ADDR MPL3115_BB_I2C_ADDR 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...