ISSDK  1.8
IoT Sensing Software Development Kit
evkmimxrt1170.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /**
9  * @file evkmimxrt1170.h
10  * @brief The evkmimxrt1170.h file defines GPIO pin mappings for evkmimxrt1170 board
11  */
12 
13 #ifndef EVKBIMX1170_H_
14 #define EVKBIMX1170_H_
15 
16 #include "pin_mux.h"
17 #include "board.h"
18 //#include "fsl_msmc.h"
19 #include "RTE_Device.h"
20 #include "gpio_driver.h"
21 #include "MIMXRT1176_cm7.h"
22 
23 
24 // I2C_S1: Pin mapping and driver information for default I2C brought to shield
25 #define I2C_S1_SCL_PIN IOMUXC_GPIO_LPSR_05_LPI2C5_SCL
26 #define I2C_S1_SDA_PIN IOMUXC_GPIO_LPSR_04_LPI2C5_SDA
27 #define I2C_S1_DRIVER Driver_I2C5
28 #define I2C_S1_DEVICE_INDEX I2C5_INDEX
29 #define I2C_S1_SIGNAL_EVENT I2C5_SignalEvent_t
30 
31 // I2C_S2: Pin mapping and driver information for alternate I2C bus on shield
32 #define I2C_S2_SCL_PIN IOMUXC_GPIO_AD_08_LPI2C1_SCL
33 #define I2C_S2_SDA_PIN IOMUXC_GPIO_AD_09_LPI2C1_SDA
34 #define I2C_S2_DRIVER Driver_I2C1
35 #define I2C_S2_DEVICE_INDEX I2C1_INDEX
36 #define I2C_S2_SIGNAL_EVENT I2C1_SignalEvent_t
37 
38 // UART: Driver information for default UART to communicate with HOST PC.
39 #define HOST_S_DRIVER Driver_USART1
40 #define HOST_S_SIGNAL_EVENT HOST_SignalEvent_t
41 
42 /* @brief Ask use input to resume after specified samples have been processed. */
43 #define ASK_USER_TO_RESUME(x) \
44  static volatile bool askResume = true; \
45  static uint16_t samplesToProcess = x - 1; \
46  if (askResume && !samplesToProcess--) \
47  { \
48  PRINTF("\r\n Specified samples processed, press any key to continue... \r\n"); \
49  GETCHAR(); \
50  askResume = false; \
51  }
52 
53 /* Compatability definitions for evkmimxrt11170 */
54 #define I2C1 LPI2C1
55 #define I2C_Type LPI2C_Type
56 #define I2C_BASE_PTRS LPI2C_BASE_PTRS
57 #define SPI1 LPSPI1
58 #define SPI_Type LPSPI_Type
59 #define SPI_BASE_PTRS LPSPI_BASE_PTRS
60 
61 /* @brief dummy arguement to Power Mode Wait Wrapper. */
62 #define SMC NULL
63 
64 /* @brief Kinetis style Wrapper API for Power Mode Wait (Wait for Interrupt). */
65 status_t SMC_SetPowerModeWait(void *);
66 /* @brief Kinetis style Wrapper API for Power Mode VLPR (Wait for Interrupt). */
67 status_t SMC_SetPowerModeVlpr(void *);
68 
69 #endif /* EVKBIMX1170_H_ */
status_t SMC_SetPowerModeWait(void *)
Configures the system to WAIT power mode. API name used from Kinetis family to maintain compatibility...
Definition: lpc54114.c:155
status_t SMC_SetPowerModeVlpr(void *)
Configures the system to VLPR power mode. API name used from Kinetis family to maintain compatibility...
Definition: lpc54114.c:169