101 #define LEDS_ARCH_L1_PORT GPIO_D_NUM 102 #define LEDS_ARCH_L1_PIN 5 103 #define LEDS_ARCH_L2_PORT GPIO_D_NUM 104 #define LEDS_ARCH_L2_PIN 4 105 #define LEDS_ARCH_L3_PORT GPIO_D_NUM 106 #define LEDS_ARCH_L3_PIN 3 108 #define LEDS_CONF_RED 1 109 #define LEDS_CONF_GREEN 2 110 #define LEDS_CONF_BLUE 4 112 #define LEDS_CONF_COUNT 3 120 #ifdef USB_PULLUP_PORT 121 #undef USB_PULLUP_PORT 123 #ifdef USB_PULLUP_PIN 124 #undef USB_PULLUP_PIN 146 #define UART0_RX_PORT GPIO_A_NUM 147 #define UART0_RX_PIN 0 148 #define UART0_TX_PORT GPIO_A_NUM 149 #define UART0_TX_PIN 1 151 #define UART1_RX_PORT GPIO_C_NUM 152 #define UART1_RX_PIN 1 153 #define UART1_TX_PORT GPIO_C_NUM 154 #define UART1_TX_PIN 0 155 #define UART1_CTS_PORT (-1) 156 #define UART1_CTS_PIN (-1) 157 #define UART1_RTS_PORT (-1) 158 #define UART1_RTS_PIN (-1) 183 #define ADC_SENSORS_PORT GPIO_A_NUM 185 #ifndef ADC_SENSORS_CONF_ADC1_PIN 186 #define ADC_SENSORS_ADC1_PIN 5 188 #if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5)) 189 #error "ADC1 channel should be mapped to PA5 or disabled with -1" 191 #define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN 195 #ifndef ADC_SENSORS_CONF_ADC2_PIN 196 #define ADC_SENSORS_ADC2_PIN 4 198 #if ((ADC_SENSORS_CONF_ADC2_PIN != -1) && (ADC_SENSORS_CONF_ADC2_PIN != 4)) 199 #error "ADC2 channel should be mapped to PA4 or disabled with -1" 201 #define ADC_SENSORS_ADC2_PIN ADC_SENSORS_CONF_ADC2_PIN 205 #ifndef ADC_SENSORS_CONF_ADC3_PIN 206 #define ADC_SENSORS_ADC3_PIN 2 208 #if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2)) 209 #error "ADC3 channel should be mapped to PA2 or disabled with -1" 211 #define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN 215 #ifndef ADC_SENSORS_CONF_ADC4_PIN 216 #define ADC_SENSORS_ADC4_PIN 6 218 #if ((ADC_SENSORS_CONF_ADC4_PIN != -1) && (ADC_SENSORS_CONF_ADC4_PIN != 6)) 219 #error "ADC4 channel should be mapped to PA6 or disabled with -1" 221 #define ADC_SENSORS_ADC4_PIN ADC_SENSORS_CONF_ADC4_PIN 225 #ifndef ADC_SENSORS_CONF_ADC5_PIN 226 #define ADC_SENSORS_ADC5_PIN 7 228 #if ((ADC_SENSORS_CONF_ADC5_PIN != -1) && (ADC_SENSORS_CONF_ADC5_PIN != 7)) 229 #error "ADC5 channel should be mapped to PA7 or disabled with -1" 231 #define ADC_SENSORS_ADC5_PIN ADC_SENSORS_CONF_ADC5_PIN 235 #ifndef ADC_SENSORS_CONF_ADC6_PIN 236 #define ADC_SENSORS_ADC6_PIN (-1) 238 #define ADC_SENSORS_ADC6_PIN 3 241 #ifndef ADC_SENSORS_CONF_MAX 242 #define ADC_SENSORS_MAX 5 244 #define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX 256 #define BUTTON_USER_PORT GPIO_A_NUM 257 #define BUTTON_USER_PIN 3 258 #define BUTTON_USER_VECTOR GPIO_A_IRQn 263 #ifdef PLATFORM_CONF_WITH_BUTTON 264 #if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3)) 265 #error "The ADC6 (PA3) and user button cannot be enabled at the same time" 267 #define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \ 268 !(ADC_SENSORS_ADC6_PIN == 3)) 271 #define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3) 286 #define SPI0_CLK_PORT GPIO_B_NUM 287 #define SPI0_CLK_PIN 2 288 #define SPI0_TX_PORT GPIO_B_NUM 289 #define SPI0_TX_PIN 1 290 #define SPI0_RX_PORT GPIO_B_NUM 291 #define SPI0_RX_PIN 3 302 #define SPI1_CLK_PORT GPIO_D_NUM 303 #define SPI1_CLK_PIN 0 304 #define SPI1_TX_PORT GPIO_C_NUM 305 #define SPI1_TX_PIN 6 306 #define SPI1_RX_PORT GPIO_D_NUM 307 #define SPI1_RX_PIN 2 317 #define I2C_SCL_PORT GPIO_C_NUM 318 #define I2C_SCL_PIN 3 319 #define I2C_SDA_PORT GPIO_C_NUM 320 #define I2C_SDA_PIN 2 321 #define I2C_INT_PORT GPIO_D_NUM 322 #define I2C_INT_PIN 1 323 #define I2C_INT_VECTOR GPIO_D_IRQn 335 #ifndef REMOTE_DUAL_RF_ENABLED 336 #define REMOTE_DUAL_RF_ENABLED 1 348 #define CC1200_SPI_INSTANCE 0 349 #define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT 350 #define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN 351 #define CC1200_SPI_MOSI_PORT SPI0_TX_PORT 352 #define CC1200_SPI_MOSI_PIN SPI0_TX_PIN 353 #define CC1200_SPI_MISO_PORT SPI0_RX_PORT 354 #define CC1200_SPI_MISO_PIN SPI0_RX_PIN 355 #define CC1200_SPI_CSN_PORT GPIO_B_NUM 356 #define CC1200_SPI_CSN_PIN 5 357 #define CC1200_GDO0_PORT GPIO_B_NUM 358 #define CC1200_GDO0_PIN 4 359 #define CC1200_GDO2_PORT GPIO_B_NUM 360 #define CC1200_GDO2_PIN 0 361 #define CC1200_RESET_PORT GPIO_C_NUM 362 #define CC1200_RESET_PIN 7 363 #define CC1200_GPIOx_VECTOR GPIO_B_IRQn 370 #define BOARD_STRING "Zolertia Firefly revision A platform" Header file for the ARM Nested Vectored Interrupt Controller.
Header file with register and macro declarations for the cc2538 GPIO module.