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) 182 #define ADC_SENSORS_PORT GPIO_A_NUM 184 #ifndef ADC_SENSORS_CONF_ADC1_PIN 185 #define ADC_SENSORS_ADC1_PIN 5 187 #if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5)) 188 #error "ADC1 channel should be mapped to PA5 or disabled with -1" 190 #define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN 194 #ifndef ADC_SENSORS_CONF_ADC2_PIN 195 #define ADC_SENSORS_ADC2_PIN 4 197 #if ((ADC_SENSORS_CONF_ADC2_PIN != -1) && (ADC_SENSORS_CONF_ADC2_PIN != 4)) 198 #error "ADC2 channel should be mapped to PA4 or disabled with -1" 200 #define ADC_SENSORS_ADC2_PIN ADC_SENSORS_CONF_ADC2_PIN 204 #ifndef ADC_SENSORS_CONF_ADC3_PIN 205 #define ADC_SENSORS_ADC3_PIN 2 207 #if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2)) 208 #error "ADC3 channel should be mapped to PA2 or disabled with -1" 210 #define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN 214 #ifndef ADC_SENSORS_CONF_ADC4_PIN 215 #define ADC_SENSORS_ADC4_PIN 6 217 #if ((ADC_SENSORS_CONF_ADC4_PIN != -1) && (ADC_SENSORS_CONF_ADC4_PIN != 6)) 218 #error "ADC4 channel should be mapped to PA6 or disabled with -1" 220 #define ADC_SENSORS_ADC4_PIN ADC_SENSORS_CONF_ADC4_PIN 224 #ifndef ADC_SENSORS_CONF_ADC5_PIN 225 #define ADC_SENSORS_ADC5_PIN 7 227 #if ((ADC_SENSORS_CONF_ADC5_PIN != -1) && (ADC_SENSORS_CONF_ADC5_PIN != 7)) 228 #error "ADC5 channel should be mapped to PA7 or disabled with -1" 230 #define ADC_SENSORS_ADC5_PIN ADC_SENSORS_CONF_ADC5_PIN 234 #ifndef ADC_SENSORS_CONF_ADC6_PIN 235 #define ADC_SENSORS_ADC6_PIN (-1) 237 #define ADC_SENSORS_ADC6_PIN 3 240 #ifndef ADC_SENSORS_CONF_MAX 241 #define ADC_SENSORS_MAX 5 243 #define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX 255 #define BUTTON_USER_PORT GPIO_A_NUM 256 #define BUTTON_USER_PIN 3 257 #define BUTTON_USER_VECTOR GPIO_A_IRQn 262 #ifdef PLATFORM_CONF_WITH_BUTTON 263 #if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3)) 264 #error "The ADC6 (PA3) and user button cannot be enabled at the same time" 266 #define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \ 267 !(ADC_SENSORS_ADC6_PIN == 3)) 270 #define PLATFORM_HAS_BUTTON !(ADC_SENSORS_ADC6_PIN == 3) 285 #define SPI0_CLK_PORT GPIO_B_NUM 286 #define SPI0_CLK_PIN 2 287 #define SPI0_TX_PORT GPIO_B_NUM 288 #define SPI0_TX_PIN 1 289 #define SPI0_RX_PORT GPIO_B_NUM 290 #define SPI0_RX_PIN 3 301 #define SPI1_CLK_PORT GPIO_C_NUM 302 #define SPI1_CLK_PIN 4 303 #define SPI1_TX_PORT GPIO_C_NUM 304 #define SPI1_TX_PIN 5 305 #define SPI1_RX_PORT GPIO_C_NUM 306 #define SPI1_RX_PIN 6 316 #define I2C_SCL_PORT GPIO_C_NUM 317 #define I2C_SCL_PIN 3 318 #define I2C_SDA_PORT GPIO_C_NUM 319 #define I2C_SDA_PIN 2 320 #define I2C_INT_PORT GPIO_D_NUM 321 #define I2C_INT_PIN 1 322 #define I2C_INT_VECTOR GPIO_D_IRQn 334 #define REMOTE_DUAL_RF_ENABLED 1 345 #define CC1200_SPI_INSTANCE 0 346 #define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT 347 #define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN 348 #define CC1200_SPI_MOSI_PORT SPI0_TX_PORT 349 #define CC1200_SPI_MOSI_PIN SPI0_TX_PIN 350 #define CC1200_SPI_MISO_PORT SPI0_RX_PORT 351 #define CC1200_SPI_MISO_PIN SPI0_RX_PIN 352 #define CC1200_SPI_CSN_PORT GPIO_B_NUM 353 #define CC1200_SPI_CSN_PIN 5 354 #define CC1200_GDO0_PORT GPIO_B_NUM 355 #define CC1200_GDO0_PIN 4 356 #define CC1200_GDO2_PORT GPIO_B_NUM 357 #define CC1200_GDO2_PIN 0 358 #define CC1200_RESET_PORT GPIO_C_NUM 359 #define CC1200_RESET_PIN 7 360 #define CC1200_GPIOx_VECTOR GPIO_B_IRQn 367 #define BOARD_STRING "Zolertia Firefly platform" Header file for the ARM Nested Vectored Interrupt Controller.
Header file with register and macro declarations for the cc2538 GPIO module.