108 #define LEDS_ARCH_L1_PORT GPIO_D_NUM 109 #define LEDS_ARCH_L1_PIN 4 110 #define LEDS_ARCH_L2_PORT GPIO_B_NUM 111 #define LEDS_ARCH_L2_PIN 7 112 #define LEDS_ARCH_L3_PORT GPIO_B_NUM 113 #define LEDS_ARCH_L3_PIN 6 115 #define LEDS_CONF_RED 1 116 #define LEDS_CONF_GREEN 2 117 #define LEDS_CONF_BLUE 4 119 #define LEDS_CONF_COUNT 3 126 #ifdef USB_PULLUP_PORT 127 #undef USB_PULLUP_PORT 129 #ifdef USB_PULLUP_PIN 130 #undef USB_PULLUP_PIN 152 #define UART0_RX_PORT GPIO_A_NUM 153 #define UART0_RX_PIN 0 154 #define UART0_TX_PORT GPIO_A_NUM 155 #define UART0_TX_PIN 1 157 #define UART1_RX_PORT GPIO_C_NUM 158 #define UART1_RX_PIN 1 159 #define UART1_TX_PORT GPIO_C_NUM 160 #define UART1_TX_PIN 0 161 #define UART1_CTS_PORT (-1) 162 #define UART1_CTS_PIN (-1) 163 #define UART1_RTS_PORT (-1) 164 #define UART1_RTS_PIN (-1) 210 #define ADC_SENSORS_PORT GPIO_A_NUM 212 #ifndef ADC_SENSORS_CONF_ADC1_PIN 213 #define ADC_SENSORS_ADC1_PIN 5 215 #if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5)) 216 #error "ADC1 channel should be mapped to PA5 or disabled with -1" 218 #define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN 222 #ifndef ADC_SENSORS_CONF_ADC3_PIN 223 #define ADC_SENSORS_ADC3_PIN 2 225 #if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2)) 226 #error "ADC3 channel should be mapped to PA2 or disabled with -1" 228 #define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN 232 #ifndef ADC_SENSORS_CONF_ADC2_PIN 233 #define ADC_SENSORS_ADC2_PIN (-1) 235 #define ADC_SENSORS_ADC2_PIN 4 238 #ifndef ADC_SENSORS_CONF_ADC4_PIN 239 #define ADC_SENSORS_ADC4_PIN (-1) 241 #define ADC_SENSORS_ADC4_PIN 6 244 #ifndef ADC_SENSORS_CONF_ADC5_PIN 245 #define ADC_SENSORS_ADC5_PIN (-1) 247 #define ADC_SENSORS_ADC5_PIN 7 250 #ifndef ADC_SENSORS_CONF_ADC6_PIN 251 #define ADC_SENSORS_ADC6_PIN (-1) 253 #define ADC_SENSORS_ADC6_PIN 3 256 #ifndef ADC_SENSORS_CONF_MAX 257 #define ADC_SENSORS_MAX 2 259 #define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX 280 #define BUTTON_USER_PORT GPIO_A_NUM 281 #define BUTTON_USER_PIN 3 282 #define BUTTON_USER_VECTOR GPIO_A_IRQn 287 #ifdef PLATFORM_CONF_WITH_BUTTON 288 #if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3)) 289 #error "The ADC6 (PA3) and user button cannot be enabled at the same time" 291 #define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \ 292 !(ADC_SENSORS_ADC6_PIN == 3)) 295 #define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3) 308 #define SPI0_CLK_PORT GPIO_B_NUM 309 #define SPI0_CLK_PIN 2 310 #define SPI0_TX_PORT GPIO_B_NUM 311 #define SPI0_TX_PIN 1 312 #define SPI0_RX_PORT GPIO_B_NUM 313 #define SPI0_RX_PIN 3 324 #define SPI1_CLK_PORT GPIO_C_NUM 325 #define SPI1_CLK_PIN 4 326 #define SPI1_TX_PORT GPIO_C_NUM 327 #define SPI1_TX_PIN 5 328 #define SPI1_RX_PORT GPIO_C_NUM 329 #define SPI1_RX_PIN 6 343 #define I2C_SCL_PORT GPIO_C_NUM 344 #define I2C_SCL_PIN 3 345 #define I2C_SDA_PORT GPIO_C_NUM 346 #define I2C_SDA_PIN 2 347 #define I2C_INT_PORT GPIO_D_NUM 348 #define I2C_INT_PIN 0 349 #define I2C_INT_VECTOR GPIO_D_IRQn 370 #define ANTENNA_RF_SW_PORT GPIO_D_NUM 371 #define ANTENNA_RF_SW_PIN 2 382 #define REMOTE_DUAL_RF_ENABLED 0 393 #define CC1200_SPI_INSTANCE 0 394 #define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT 395 #define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN 396 #define CC1200_SPI_MOSI_PORT SPI0_TX_PORT 397 #define CC1200_SPI_MOSI_PIN SPI0_TX_PIN 398 #define CC1200_SPI_MISO_PORT SPI0_RX_PORT 399 #define CC1200_SPI_MISO_PIN SPI0_RX_PIN 400 #define CC1200_SPI_CSN_PORT GPIO_B_NUM 401 #define CC1200_SPI_CSN_PIN 5 402 #define CC1200_GDO0_PORT GPIO_B_NUM 403 #define CC1200_GDO0_PIN 4 404 #define CC1200_GDO2_PORT GPIO_B_NUM 405 #define CC1200_GDO2_PIN 0 406 #define CC1200_RESET_PORT GPIO_C_NUM 407 #define CC1200_RESET_PIN 7 408 #define CC1200_GPIOx_VECTOR GPIO_B_IRQn 422 #define USD_SPI_INSTANCE 1 423 #define USD_CLK_PORT SPI1_CLK_PORT 424 #define USD_CLK_PIN SPI1_CLK_PIN 425 #define USD_MOSI_PORT SPI1_TX_PORT 426 #define USD_MOSI_PIN SPI1_TX_PIN 427 #define USD_MISO_PORT SPI1_RX_PORT 428 #define USD_MISO_PIN SPI1_RX_PIN 429 #define USD_CSN_PORT GPIO_A_NUM 430 #define USD_CSN_PIN 7 431 #define USD_SEL_PORT GPIO_A_NUM 432 #define USD_SEL_PIN 6 453 #define PM_ENABLE_PORT GPIO_D_NUM 454 #define PM_ENABLE_PIN 1 471 #define PLATFORM_HAS_RTC 1 472 #define RTC_SDA_PORT I2C_SDA_PORT 473 #define RTC_SDA_PIN I2C_SDA_PIN 474 #define RTC_SCL_PORT I2C_SCL_PORT 475 #define RTC_SCL_PIN I2C_SCL_PIN 476 #define RTC_INT1_PORT GPIO_D_NUM 477 #define RTC_INT1_PIN 3 478 #define RTC_INT1_VECTOR GPIO_D_IRQn 494 #define EXT_WDT_PORT GPIO_D_NUM 495 #define EXT_WDT_PIN 5 502 #define BOARD_STRING "Zolertia RE-Mote revision B platform" Header file for the ARM Nested Vectored Interrupt Controller.
Header file with register and macro declarations for the cc2538 GPIO module.