|
|
|
|
|
|
|
|
#define CORE_PIN39_BITMASK (1<<(CORE_PIN39_BIT)) |
|
|
#define CORE_PIN39_BITMASK (1<<(CORE_PIN39_BIT)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 1 |
|
|
|
|
|
// Fast GPIO |
|
|
// Fast GPIO |
|
|
#define CORE_PIN0_PORTREG GPIO6_DR |
|
|
#define CORE_PIN0_PORTREG GPIO6_DR |
|
|
#define CORE_PIN1_PORTREG GPIO6_DR |
|
|
#define CORE_PIN1_PORTREG GPIO6_DR |
|
|
|
|
|
|
|
|
#define CORE_PIN39_PINREG GPIO8_PSR |
|
|
#define CORE_PIN39_PINREG GPIO8_PSR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
// Slow GPIO |
|
|
|
|
|
#define CORE_PIN0_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN1_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN2_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN3_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN4_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN5_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN6_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN7_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN8_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN9_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN10_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN11_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN12_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN13_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN14_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN15_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN16_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN17_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN18_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN19_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN20_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN21_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN22_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN23_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN24_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN25_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN26_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN27_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN28_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN29_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN30_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN31_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN32_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN33_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN34_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN35_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN36_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN37_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN38_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN39_PORTREG GPIO3_DR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN1_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN2_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN3_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN4_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN5_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN6_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN7_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN8_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN9_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN10_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN11_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN12_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN13_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN14_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN15_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN16_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN17_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN18_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN19_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN20_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN21_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN22_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN23_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN24_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN25_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN26_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN27_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN28_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN29_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN30_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN31_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN32_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN33_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN34_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN35_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN36_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN37_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN38_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN39_PORTSET GPIO3_DR_SET |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN1_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN2_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN3_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN4_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN5_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN6_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN7_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN8_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN9_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN10_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN11_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN12_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN13_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN14_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN15_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN16_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN17_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN18_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN19_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN20_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN21_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN22_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN23_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN24_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN25_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN26_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN27_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN28_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN29_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN30_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN31_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN32_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN33_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN34_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN35_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN36_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN37_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN38_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN39_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN1_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN2_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN3_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN4_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN5_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN6_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN7_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN8_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN9_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN10_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN11_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN12_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN13_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN14_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN15_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN16_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN17_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN18_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN19_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN20_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN21_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN22_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN23_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN24_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN25_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN26_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN27_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN28_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN29_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN30_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN31_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN32_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN33_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN34_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN35_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN36_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN37_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN38_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN39_DDRREG GPIO3_GDIR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN1_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN2_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN3_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN4_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN5_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN6_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN7_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN8_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN9_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN10_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN11_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN12_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN13_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN14_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN15_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN16_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN17_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN18_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN19_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN20_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN21_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN22_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN23_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN24_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN25_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN26_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN27_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN28_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN29_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN30_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN31_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN32_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN33_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN34_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN35_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN36_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN37_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN38_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN39_PINREG GPIO3_PSR |
|
|
|
|
|
#endif // Slow GPIO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// mux config registers control which peripheral uses the pin |
|
|
// mux config registers control which peripheral uses the pin |
|
|
#define CORE_PIN0_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_03 |
|
|
#define CORE_PIN0_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_03 |
|
|
|
|
|
|
|
|
#define CORE_INT39_PIN 39 |
|
|
#define CORE_INT39_PIN 39 |
|
|
#define CORE_INT_EVERY_PIN 1 |
|
|
#define CORE_INT_EVERY_PIN 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(__IMXRT1052__) |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_NUM_TOTAL_PINS 34 |
|
|
|
|
|
#define CORE_NUM_DIGITAL 34 |
|
|
|
|
|
#define CORE_NUM_INTERRUPT 34 |
|
|
|
|
|
#define CORE_NUM_ANALOG 14 |
|
|
|
|
|
#define CORE_NUM_PWM 27 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_BIT 3 |
|
|
|
|
|
#define CORE_PIN1_BIT 2 |
|
|
|
|
|
#define CORE_PIN2_BIT 4 |
|
|
|
|
|
#define CORE_PIN3_BIT 5 |
|
|
|
|
|
#define CORE_PIN4_BIT 6 |
|
|
|
|
|
#define CORE_PIN5_BIT 7 |
|
|
|
|
|
#define CORE_PIN6_BIT 17 |
|
|
|
|
|
#define CORE_PIN7_BIT 16 |
|
|
|
|
|
#define CORE_PIN8_BIT 10 |
|
|
|
|
|
#define CORE_PIN9_BIT 11 |
|
|
|
|
|
#define CORE_PIN10_BIT 0 |
|
|
|
|
|
#define CORE_PIN11_BIT 2 |
|
|
|
|
|
#define CORE_PIN12_BIT 1 |
|
|
|
|
|
#define CORE_PIN13_BIT 3 |
|
|
|
|
|
#define CORE_PIN14_BIT 18 |
|
|
|
|
|
#define CORE_PIN15_BIT 19 |
|
|
|
|
|
#define CORE_PIN16_BIT 23 |
|
|
|
|
|
#define CORE_PIN17_BIT 22 |
|
|
|
|
|
#define CORE_PIN18_BIT 17 |
|
|
|
|
|
#define CORE_PIN19_BIT 16 |
|
|
|
|
|
#define CORE_PIN20_BIT 26 |
|
|
|
|
|
#define CORE_PIN21_BIT 27 |
|
|
|
|
|
#define CORE_PIN22_BIT 24 |
|
|
|
|
|
#define CORE_PIN23_BIT 25 |
|
|
|
|
|
#define CORE_PIN24_BIT 12 |
|
|
|
|
|
#define CORE_PIN25_BIT 13 |
|
|
|
|
|
#define CORE_PIN26_BIT 30 |
|
|
|
|
|
#define CORE_PIN27_BIT 31 |
|
|
|
|
|
#define CORE_PIN28_BIT 18 |
|
|
|
|
|
#define CORE_PIN29_BIT 31 |
|
|
|
|
|
#define CORE_PIN30_BIT 24 |
|
|
|
|
|
#define CORE_PIN31_BIT 23 |
|
|
|
|
|
#define CORE_PIN32_BIT 12 |
|
|
|
|
|
#define CORE_PIN33_BIT 8 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_BITMASK (1<<(CORE_PIN0_BIT)) |
|
|
|
|
|
#define CORE_PIN1_BITMASK (1<<(CORE_PIN1_BIT)) |
|
|
|
|
|
#define CORE_PIN2_BITMASK (1<<(CORE_PIN2_BIT)) |
|
|
|
|
|
#define CORE_PIN3_BITMASK (1<<(CORE_PIN3_BIT)) |
|
|
|
|
|
#define CORE_PIN4_BITMASK (1<<(CORE_PIN4_BIT)) |
|
|
|
|
|
#define CORE_PIN5_BITMASK (1<<(CORE_PIN5_BIT)) |
|
|
|
|
|
#define CORE_PIN6_BITMASK (1<<(CORE_PIN6_BIT)) |
|
|
|
|
|
#define CORE_PIN7_BITMASK (1<<(CORE_PIN7_BIT)) |
|
|
|
|
|
#define CORE_PIN8_BITMASK (1<<(CORE_PIN8_BIT)) |
|
|
|
|
|
#define CORE_PIN9_BITMASK (1<<(CORE_PIN9_BIT)) |
|
|
|
|
|
#define CORE_PIN10_BITMASK (1<<(CORE_PIN10_BIT)) |
|
|
|
|
|
#define CORE_PIN11_BITMASK (1<<(CORE_PIN11_BIT)) |
|
|
|
|
|
#define CORE_PIN12_BITMASK (1<<(CORE_PIN12_BIT)) |
|
|
|
|
|
#define CORE_PIN13_BITMASK (1<<(CORE_PIN13_BIT)) |
|
|
|
|
|
#define CORE_PIN14_BITMASK (1<<(CORE_PIN14_BIT)) |
|
|
|
|
|
#define CORE_PIN15_BITMASK (1<<(CORE_PIN15_BIT)) |
|
|
|
|
|
#define CORE_PIN16_BITMASK (1<<(CORE_PIN16_BIT)) |
|
|
|
|
|
#define CORE_PIN17_BITMASK (1<<(CORE_PIN17_BIT)) |
|
|
|
|
|
#define CORE_PIN18_BITMASK (1<<(CORE_PIN18_BIT)) |
|
|
|
|
|
#define CORE_PIN19_BITMASK (1<<(CORE_PIN19_BIT)) |
|
|
|
|
|
#define CORE_PIN20_BITMASK (1<<(CORE_PIN20_BIT)) |
|
|
|
|
|
#define CORE_PIN21_BITMASK (1<<(CORE_PIN21_BIT)) |
|
|
|
|
|
#define CORE_PIN22_BITMASK (1<<(CORE_PIN22_BIT)) |
|
|
|
|
|
#define CORE_PIN23_BITMASK (1<<(CORE_PIN23_BIT)) |
|
|
|
|
|
#define CORE_PIN24_BITMASK (1<<(CORE_PIN24_BIT)) |
|
|
|
|
|
#define CORE_PIN25_BITMASK (1<<(CORE_PIN25_BIT)) |
|
|
|
|
|
#define CORE_PIN26_BITMASK (1<<(CORE_PIN26_BIT)) |
|
|
|
|
|
#define CORE_PIN27_BITMASK (1<<(CORE_PIN27_BIT)) |
|
|
|
|
|
#define CORE_PIN28_BITMASK (1<<(CORE_PIN28_BIT)) |
|
|
|
|
|
#define CORE_PIN29_BITMASK (1<<(CORE_PIN29_BIT)) |
|
|
|
|
|
#define CORE_PIN30_BITMASK (1<<(CORE_PIN30_BIT)) |
|
|
|
|
|
#define CORE_PIN31_BITMASK (1<<(CORE_PIN31_BIT)) |
|
|
|
|
|
#define CORE_PIN32_BITMASK (1<<(CORE_PIN32_BIT)) |
|
|
|
|
|
#define CORE_PIN33_BITMASK (1<<(CORE_PIN33_BIT)) |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN1_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN2_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN3_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN4_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN5_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN6_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN7_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN8_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN9_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN10_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN11_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN12_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN13_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN14_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN15_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN16_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN17_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN18_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN19_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN20_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN21_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN22_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN23_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN24_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN25_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN26_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN27_PORTREG GPIO1_DR |
|
|
|
|
|
#define CORE_PIN28_PORTREG GPIO3_DR |
|
|
|
|
|
#define CORE_PIN29_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN30_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN31_PORTREG GPIO4_DR |
|
|
|
|
|
#define CORE_PIN32_PORTREG GPIO2_DR |
|
|
|
|
|
#define CORE_PIN33_PORTREG GPIO4_DR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN1_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN2_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN3_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN4_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN5_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN6_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN7_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN8_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN9_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN10_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN11_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN12_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN13_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN14_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN15_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN16_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN17_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN18_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN19_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN20_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN21_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN22_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN23_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN24_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN25_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN26_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN27_PORTSET GPIO1_DR_SET |
|
|
|
|
|
#define CORE_PIN28_PORTSET GPIO3_DR_SET |
|
|
|
|
|
#define CORE_PIN29_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN30_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN31_PORTSET GPIO4_DR_SET |
|
|
|
|
|
#define CORE_PIN32_PORTSET GPIO2_DR_SET |
|
|
|
|
|
#define CORE_PIN33_PORTSET GPIO4_DR_SET |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN1_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN2_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN3_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN4_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN5_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN6_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN7_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN8_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN9_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN10_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN11_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN12_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN13_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN14_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN15_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN16_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN17_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN18_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN19_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN20_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN21_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN22_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN23_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN24_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN25_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN26_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN27_PORTCLEAR GPIO1_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN28_PORTCLEAR GPIO3_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN29_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN30_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN31_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN32_PORTCLEAR GPIO2_DR_CLEAR |
|
|
|
|
|
#define CORE_PIN33_PORTCLEAR GPIO4_DR_CLEAR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN1_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN2_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN3_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN4_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN5_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN6_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN7_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN8_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN9_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN10_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN11_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN12_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN13_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN14_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN15_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN16_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN17_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN18_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN19_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN20_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN21_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN22_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN23_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN24_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN25_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN26_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN27_DDRREG GPIO1_GDIR |
|
|
|
|
|
#define CORE_PIN28_DDRREG GPIO3_GDIR |
|
|
|
|
|
#define CORE_PIN29_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN30_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN31_DDRREG GPIO4_GDIR |
|
|
|
|
|
#define CORE_PIN32_DDRREG GPIO2_GDIR |
|
|
|
|
|
#define CORE_PIN33_DDRREG GPIO4_GDIR |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_PIN0_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN1_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN2_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN3_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN4_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN5_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN6_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN7_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN8_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN9_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN10_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN11_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN12_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN13_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN14_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN15_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN16_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN17_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN18_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN19_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN20_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN21_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN22_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN23_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN24_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN25_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN26_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN27_PINREG GPIO1_PSR |
|
|
|
|
|
#define CORE_PIN28_PINREG GPIO3_PSR |
|
|
|
|
|
#define CORE_PIN29_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN30_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN31_PINREG GPIO4_PSR |
|
|
|
|
|
#define CORE_PIN32_PINREG GPIO2_PSR |
|
|
|
|
|
#define CORE_PIN33_PINREG GPIO4_PSR |
|
|
|
|
|
|
|
|
|
|
|
// mux config registers control which peripheral uses the pin |
|
|
|
|
|
#define CORE_PIN0_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_03 |
|
|
|
|
|
#define CORE_PIN1_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_02 |
|
|
|
|
|
#define CORE_PIN2_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_04 |
|
|
|
|
|
#define CORE_PIN3_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_05 |
|
|
|
|
|
#define CORE_PIN4_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_06 |
|
|
|
|
|
#define CORE_PIN5_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_07 |
|
|
|
|
|
#define CORE_PIN6_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_01 |
|
|
|
|
|
#define CORE_PIN7_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B1_00 |
|
|
|
|
|
#define CORE_PIN8_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_10 |
|
|
|
|
|
#define CORE_PIN9_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_11 |
|
|
|
|
|
#define CORE_PIN10_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_00 |
|
|
|
|
|
#define CORE_PIN11_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_02 |
|
|
|
|
|
#define CORE_PIN12_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_01 |
|
|
|
|
|
#define CORE_PIN13_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_03 |
|
|
|
|
|
#define CORE_PIN14_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_02 |
|
|
|
|
|
#define CORE_PIN15_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_03 |
|
|
|
|
|
#define CORE_PIN16_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_07 |
|
|
|
|
|
#define CORE_PIN17_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_06 |
|
|
|
|
|
#define CORE_PIN18_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_01 |
|
|
|
|
|
#define CORE_PIN19_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_00 |
|
|
|
|
|
#define CORE_PIN20_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_10 |
|
|
|
|
|
#define CORE_PIN21_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_11 |
|
|
|
|
|
#define CORE_PIN22_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_08 |
|
|
|
|
|
#define CORE_PIN23_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_09 |
|
|
|
|
|
#define CORE_PIN24_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_12 |
|
|
|
|
|
#define CORE_PIN25_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B0_13 |
|
|
|
|
|
#define CORE_PIN26_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_14 |
|
|
|
|
|
#define CORE_PIN27_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_15 |
|
|
|
|
|
#define CORE_PIN28_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_32 |
|
|
|
|
|
#define CORE_PIN29_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_31 |
|
|
|
|
|
#define CORE_PIN30_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_24 |
|
|
|
|
|
#define CORE_PIN31_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_23 |
|
|
|
|
|
#define CORE_PIN32_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_12 |
|
|
|
|
|
#define CORE_PIN33_CONFIG IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_08 |
|
|
|
|
|
|
|
|
|
|
|
// pad config registers control pullup/pulldown/keeper, drive strength, etc |
|
|
|
|
|
#define CORE_PIN0_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_03 |
|
|
|
|
|
#define CORE_PIN1_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_02 |
|
|
|
|
|
#define CORE_PIN2_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_04 |
|
|
|
|
|
#define CORE_PIN3_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_05 |
|
|
|
|
|
#define CORE_PIN4_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_06 |
|
|
|
|
|
#define CORE_PIN5_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_07 |
|
|
|
|
|
#define CORE_PIN6_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_01 |
|
|
|
|
|
#define CORE_PIN7_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B1_00 |
|
|
|
|
|
#define CORE_PIN8_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_10 |
|
|
|
|
|
#define CORE_PIN9_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_11 |
|
|
|
|
|
#define CORE_PIN10_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_00 |
|
|
|
|
|
#define CORE_PIN11_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_02 |
|
|
|
|
|
#define CORE_PIN12_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_01 |
|
|
|
|
|
#define CORE_PIN13_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03 |
|
|
|
|
|
#define CORE_PIN14_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_02 |
|
|
|
|
|
#define CORE_PIN15_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_03 |
|
|
|
|
|
#define CORE_PIN16_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_07 |
|
|
|
|
|
#define CORE_PIN17_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_06 |
|
|
|
|
|
#define CORE_PIN18_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_01 |
|
|
|
|
|
#define CORE_PIN19_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_00 |
|
|
|
|
|
#define CORE_PIN20_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_10 |
|
|
|
|
|
#define CORE_PIN21_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_11 |
|
|
|
|
|
#define CORE_PIN22_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_08 |
|
|
|
|
|
#define CORE_PIN23_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_09 |
|
|
|
|
|
#define CORE_PIN24_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_12 |
|
|
|
|
|
#define CORE_PIN25_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_13 |
|
|
|
|
|
#define CORE_PIN26_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_14 |
|
|
|
|
|
#define CORE_PIN27_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B1_15 |
|
|
|
|
|
#define CORE_PIN28_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_32 |
|
|
|
|
|
#define CORE_PIN29_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_31 |
|
|
|
|
|
#define CORE_PIN30_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_24 |
|
|
|
|
|
#define CORE_PIN31_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_23 |
|
|
|
|
|
#define CORE_PIN32_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_12 |
|
|
|
|
|
#define CORE_PIN33_PADCONFIG IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_08 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_LED0_PIN 13 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_ADC0_PIN 14 |
|
|
|
|
|
#define CORE_ADC1_PIN 15 |
|
|
|
|
|
#define CORE_ADC2_PIN 16 |
|
|
|
|
|
#define CORE_ADC3_PIN 17 |
|
|
|
|
|
#define CORE_ADC4_PIN 18 |
|
|
|
|
|
#define CORE_ADC5_PIN 19 |
|
|
|
|
|
#define CORE_ADC6_PIN 20 |
|
|
|
|
|
#define CORE_ADC7_PIN 21 |
|
|
|
|
|
#define CORE_ADC8_PIN 22 |
|
|
|
|
|
#define CORE_ADC9_PIN 23 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_RXD0_PIN 0 |
|
|
|
|
|
#define CORE_TXD0_PIN 1 |
|
|
|
|
|
#define CORE_RXD1_PIN 6 |
|
|
|
|
|
#define CORE_TXD1_PIN 7 |
|
|
|
|
|
#define CORE_RXD2_PIN 15 |
|
|
|
|
|
#define CORE_TXD2_PIN 14 |
|
|
|
|
|
#define CORE_RXD3_PIN 16 |
|
|
|
|
|
#define CORE_TXD3_PIN 17 |
|
|
|
|
|
#define CORE_RXD4_PIN 21 |
|
|
|
|
|
#define CORE_TXD4_PIN 20 |
|
|
|
|
|
#define CORE_RXD5_PIN 25 |
|
|
|
|
|
#define CORE_TXD5_PIN 24 |
|
|
|
|
|
#define CORE_RXD6_PIN 28 |
|
|
|
|
|
#define CORE_TXD6_PIN 29 |
|
|
|
|
|
#define CORE_RXD7_PIN 30 |
|
|
|
|
|
#define CORE_TXD7_PIN 31 |
|
|
|
|
|
|
|
|
|
|
|
#define CORE_INT0_PIN 0 |
|
|
|
|
|
#define CORE_INT1_PIN 1 |
|
|
|
|
|
#define CORE_INT2_PIN 2 |
|
|
|
|
|
#define CORE_INT3_PIN 3 |
|
|
|
|
|
#define CORE_INT4_PIN 4 |
|
|
|
|
|
#define CORE_INT5_PIN 5 |
|
|
|
|
|
#define CORE_INT6_PIN 6 |
|
|
|
|
|
#define CORE_INT7_PIN 7 |
|
|
|
|
|
#define CORE_INT8_PIN 8 |
|
|
|
|
|
#define CORE_INT9_PIN 9 |
|
|
|
|
|
#define CORE_INT10_PIN 10 |
|
|
|
|
|
#define CORE_INT11_PIN 11 |
|
|
|
|
|
#define CORE_INT12_PIN 12 |
|
|
|
|
|
#define CORE_INT13_PIN 13 |
|
|
|
|
|
#define CORE_INT14_PIN 14 |
|
|
|
|
|
#define CORE_INT15_PIN 15 |
|
|
|
|
|
#define CORE_INT16_PIN 16 |
|
|
|
|
|
#define CORE_INT17_PIN 17 |
|
|
|
|
|
#define CORE_INT18_PIN 18 |
|
|
|
|
|
#define CORE_INT19_PIN 19 |
|
|
|
|
|
#define CORE_INT20_PIN 20 |
|
|
|
|
|
#define CORE_INT21_PIN 21 |
|
|
|
|
|
#define CORE_INT22_PIN 22 |
|
|
|
|
|
#define CORE_INT23_PIN 23 |
|
|
|
|
|
#define CORE_INT24_PIN 24 |
|
|
|
|
|
#define CORE_INT25_PIN 25 |
|
|
|
|
|
#define CORE_INT26_PIN 26 |
|
|
|
|
|
#define CORE_INT27_PIN 27 |
|
|
|
|
|
#define CORE_INT28_PIN 28 |
|
|
|
|
|
#define CORE_INT29_PIN 29 |
|
|
|
|
|
#define CORE_INT30_PIN 30 |
|
|
|
|
|
#define CORE_INT31_PIN 31 |
|
|
|
|
|
#define CORE_INT32_PIN 32 |
|
|
|
|
|
#define CORE_INT33_PIN 33 |
|
|
|
|
|
#define CORE_INT_EVERY_PIN 1 |
|
|
|
|
|
|
|
|
|
|
|
#endif // __IMXRT1052__ |
|
|
|
|
|
|
|
|
#endif // __IMXRT1062__ |
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
extern "C" { |