105 #define LEDS_ARCH_L1_PORT GPIO_D_NUM 106 #define LEDS_ARCH_L1_PIN 5 107 #define LEDS_ARCH_L2_PORT GPIO_D_NUM 108 #define LEDS_ARCH_L2_PIN 4 109 #define LEDS_ARCH_L3_PORT GPIO_D_NUM 110 #define LEDS_ARCH_L3_PIN 3 112 #define LEDS_CONF_RED 1 113 #define LEDS_CONF_GREEN 2 114 #define LEDS_CONF_BLUE 4 116 #define LEDS_CONF_COUNT 3 123 #ifdef USB_PULLUP_PORT 124 #undef USB_PULLUP_PORT 126 #ifdef USB_PULLUP_PIN 127 #undef USB_PULLUP_PIN 149 #define UART0_RX_PORT GPIO_A_NUM 150 #define UART0_RX_PIN 0 151 #define UART0_TX_PORT GPIO_A_NUM 152 #define UART0_TX_PIN 1 154 #define UART1_RX_PORT GPIO_C_NUM 155 #define UART1_RX_PIN 1 156 #define UART1_TX_PORT GPIO_C_NUM 157 #define UART1_TX_PIN 0 158 #define UART1_CTS_PORT (-1) 159 #define UART1_CTS_PIN (-1) 160 #define UART1_RTS_PORT (-1) 161 #define UART1_RTS_PIN (-1) 197 #define ADC_SENSORS_PORT GPIO_A_NUM 199 #ifndef ADC_SENSORS_CONF_ADC1_PIN 200 #define ADC_SENSORS_ADC1_PIN 5 202 #if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5)) 203 #error "ADC1 channel should be mapped to PA5 or disabled with -1" 205 #define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN 209 #ifndef ADC_SENSORS_CONF_ADC3_PIN 210 #define ADC_SENSORS_ADC3_PIN 2 212 #if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2)) 213 #error "ADC3 channel should be mapped to PA2 or disabled with -1" 215 #define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN 219 #ifndef ADC_SENSORS_CONF_ADC2_PIN 220 #define ADC_SENSORS_ADC2_PIN (-1) 222 #define ADC_SENSORS_ADC2_PIN 4 225 #ifndef ADC_SENSORS_CONF_ADC4_PIN 226 #define ADC_SENSORS_ADC4_PIN (-1) 228 #define ADC_SENSORS_ADC4_PIN 6 231 #ifndef ADC_SENSORS_CONF_ADC5_PIN 232 #define ADC_SENSORS_ADC5_PIN (-1) 234 #define ADC_SENSORS_ADC5_PIN 7 237 #ifndef ADC_SENSORS_CONF_ADC6_PIN 238 #define ADC_SENSORS_ADC6_PIN (-1) 240 #define ADC_SENSORS_ADC6_PIN 3 243 #ifndef ADC_SENSORS_CONF_MAX 244 #define ADC_SENSORS_MAX 2 246 #define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX 259 #define BUTTON_USER_PORT GPIO_A_NUM 260 #define BUTTON_USER_PIN 3 261 #define BUTTON_USER_VECTOR GPIO_A_IRQn 266 #ifdef PLATFORM_CONF_WITH_BUTTON 267 #if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3)) 268 #error "The ADC6 (PA3) and user button cannot be enabled at the same time" 270 #define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \ 271 !(ADC_SENSORS_ADC6_PIN == 3)) 274 #define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3) 287 #define SPI0_CLK_PORT GPIO_B_NUM 288 #define SPI0_CLK_PIN 2 289 #define SPI0_TX_PORT GPIO_B_NUM 290 #define SPI0_TX_PIN 1 291 #define SPI0_RX_PORT GPIO_B_NUM 292 #define SPI0_RX_PIN 3 304 #define SPI1_CLK_PORT GPIO_C_NUM 305 #define SPI1_CLK_PIN 4 306 #define SPI1_TX_PORT GPIO_C_NUM 307 #define SPI1_TX_PIN 5 308 #define SPI1_RX_PORT GPIO_C_NUM 309 #define SPI1_RX_PIN 6 323 #define I2C_SCL_PORT GPIO_C_NUM 324 #define I2C_SCL_PIN 3 325 #define I2C_SDA_PORT GPIO_C_NUM 326 #define I2C_SDA_PIN 2 327 #define I2C_INT_PORT GPIO_D_NUM 328 #define I2C_INT_PIN 1 329 #define I2C_INT_VECTOR GPIO_D_IRQn 350 #define ANTENNA_RF_SW_PORT GPIO_D_NUM 351 #define ANTENNA_RF_SW_PIN 2 362 #define REMOTE_DUAL_RF_ENABLED 0 373 #define CC1200_SPI_INSTANCE 0 374 #define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT 375 #define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN 376 #define CC1200_SPI_MOSI_PORT SPI0_TX_PORT 377 #define CC1200_SPI_MOSI_PIN SPI0_TX_PIN 378 #define CC1200_SPI_MISO_PORT SPI0_RX_PORT 379 #define CC1200_SPI_MISO_PIN SPI0_RX_PIN 380 #define CC1200_SPI_CSN_PORT GPIO_B_NUM 381 #define CC1200_SPI_CSN_PIN 5 382 #define CC1200_GDO0_PORT GPIO_B_NUM 383 #define CC1200_GDO0_PIN 4 384 #define CC1200_GDO2_PORT GPIO_B_NUM 385 #define CC1200_GDO2_PIN 0 386 #define CC1200_RESET_PORT GPIO_C_NUM 387 #define CC1200_RESET_PIN 7 388 #define CC1200_GPIOx_VECTOR GPIO_B_IRQn 398 #define USD_SPI_INSTANCE 1 399 #define USD_CLK_PORT SPI1_CLK_PORT 400 #define USD_CLK_PIN SPI1_CLK_PIN 401 #define USD_MOSI_PORT SPI1_TX_PORT 402 #define USD_MOSI_PIN SPI1_TX_PIN 403 #define USD_MISO_PORT SPI1_RX_PORT 404 #define USD_MISO_PIN SPI1_RX_PIN 405 #define USD_CSN_PORT GPIO_A_NUM 406 #define USD_CSN_PIN 7 407 #define USD_SEL_PORT GPIO_A_NUM 408 #define USD_SEL_PIN 6 429 #define PM_DONE_PORT GPIO_D_NUM 430 #define PM_DONE_PIN 0 431 #define PM_CMD_PORT GPIO_D_NUM 448 #define PLATFORM_HAS_RTC 1 449 #define RTC_SDA_PORT I2C_SDA_PORT 450 #define RTC_SDA_PIN I2C_SDA_PIN 451 #define RTC_SCL_PORT I2C_SCL_PORT 452 #define RTC_SCL_PIN I2C_SCL_PIN 453 #define RTC_INT1_PORT GPIO_A_NUM 454 #define RTC_INT1_PIN 4 455 #define RTC_INT1_VECTOR GPIO_A_IRQn 472 #define EXT_WDT_PORT GPIO_D_NUM 473 #define EXT_WDT_PIN 5 480 #define BOARD_STRING "Zolertia RE-Mote revision A platform" Header file for the ARM Nested Vectored Interrupt Controller.
Header file with register and macro declarations for the cc2538 GPIO module.