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
121#ifdef USB_PULLUP_PORT
122#undef USB_PULLUP_PORT
147#define UART0_RX_PORT GPIO_A_NUM
148#define UART0_RX_PIN 0
149#define UART0_TX_PORT GPIO_A_NUM
150#define UART0_TX_PIN 1
152#define UART1_RX_PORT GPIO_C_NUM
153#define UART1_RX_PIN 1
154#define UART1_TX_PORT GPIO_C_NUM
155#define UART1_TX_PIN 0
156#define UART1_CTS_PORT (-1)
157#define UART1_CTS_PIN (-1)
158#define UART1_RTS_PORT (-1)
159#define UART1_RTS_PIN (-1)
184#define ADC_SENSORS_PORT GPIO_A_NUM
186#ifndef ADC_SENSORS_CONF_ADC1_PIN
187#define ADC_SENSORS_ADC1_PIN 5
189#if ((ADC_SENSORS_CONF_ADC1_PIN != -1) && (ADC_SENSORS_CONF_ADC1_PIN != 5))
190#error "ADC1 channel should be mapped to PA5 or disabled with -1"
192#define ADC_SENSORS_ADC1_PIN ADC_SENSORS_CONF_ADC1_PIN
196#ifndef ADC_SENSORS_CONF_ADC2_PIN
197#define ADC_SENSORS_ADC2_PIN 4
199#if ((ADC_SENSORS_CONF_ADC2_PIN != -1) && (ADC_SENSORS_CONF_ADC2_PIN != 4))
200#error "ADC2 channel should be mapped to PA4 or disabled with -1"
202#define ADC_SENSORS_ADC2_PIN ADC_SENSORS_CONF_ADC2_PIN
206#ifndef ADC_SENSORS_CONF_ADC3_PIN
207#define ADC_SENSORS_ADC3_PIN 2
209#if ((ADC_SENSORS_CONF_ADC3_PIN != -1) && (ADC_SENSORS_CONF_ADC3_PIN != 2))
210#error "ADC3 channel should be mapped to PA2 or disabled with -1"
212#define ADC_SENSORS_ADC3_PIN ADC_SENSORS_CONF_ADC3_PIN
216#ifndef ADC_SENSORS_CONF_ADC4_PIN
217#define ADC_SENSORS_ADC4_PIN 6
219#if ((ADC_SENSORS_CONF_ADC4_PIN != -1) && (ADC_SENSORS_CONF_ADC4_PIN != 6))
220#error "ADC4 channel should be mapped to PA6 or disabled with -1"
222#define ADC_SENSORS_ADC4_PIN ADC_SENSORS_CONF_ADC4_PIN
226#ifndef ADC_SENSORS_CONF_ADC5_PIN
227#define ADC_SENSORS_ADC5_PIN 7
229#if ((ADC_SENSORS_CONF_ADC5_PIN != -1) && (ADC_SENSORS_CONF_ADC5_PIN != 7))
230#error "ADC5 channel should be mapped to PA7 or disabled with -1"
232#define ADC_SENSORS_ADC5_PIN ADC_SENSORS_CONF_ADC5_PIN
236#ifndef ADC_SENSORS_CONF_ADC6_PIN
237#define ADC_SENSORS_ADC6_PIN (-1)
239#define ADC_SENSORS_ADC6_PIN 3
242#ifndef ADC_SENSORS_CONF_MAX
243#define ADC_SENSORS_MAX 5
245#define ADC_SENSORS_MAX ADC_SENSORS_CONF_MAX
257#define BUTTON_USER_PORT GPIO_A_NUM
258#define BUTTON_USER_PIN 3
259#define BUTTON_USER_VECTOR GPIO_A_IRQn
264#ifdef PLATFORM_CONF_WITH_BUTTON
265#if (PLATFORM_CONF_WITH_BUTTON && (ADC_SENSORS_ADC6_PIN == 3))
266#error "The ADC6 (PA3) and user button cannot be enabled at the same time"
268#define PLATFORM_HAS_BUTTON (PLATFORM_CONF_WITH_BUTTON && \
269 !(ADC_SENSORS_ADC6_PIN == 3))
272#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
291#define SPI0_RX_PORT GPIO_B_NUM
303#define SPI1_CLK_PORT GPIO_D_NUM
304#define SPI1_CLK_PIN 0
305#define SPI1_TX_PORT GPIO_C_NUM
307#define SPI1_RX_PORT GPIO_D_NUM
318#define I2C_SCL_PORT GPIO_C_NUM
320#define I2C_SDA_PORT GPIO_C_NUM
322#define I2C_INT_PORT GPIO_D_NUM
324#define I2C_INT_VECTOR GPIO_D_IRQn
336#ifndef REMOTE_DUAL_RF_ENABLED
337#define REMOTE_DUAL_RF_ENABLED 1
349#define CC1200_SPI_INSTANCE 0
350#define CC1200_SPI_SCLK_PORT SPI0_CLK_PORT
351#define CC1200_SPI_SCLK_PIN SPI0_CLK_PIN
352#define CC1200_SPI_MOSI_PORT SPI0_TX_PORT
353#define CC1200_SPI_MOSI_PIN SPI0_TX_PIN
354#define CC1200_SPI_MISO_PORT SPI0_RX_PORT
355#define CC1200_SPI_MISO_PIN SPI0_RX_PIN
356#define CC1200_SPI_CSN_PORT GPIO_B_NUM
357#define CC1200_SPI_CSN_PIN 5
358#define CC1200_GDO0_PORT GPIO_B_NUM
359#define CC1200_GDO0_PIN 4
360#define CC1200_GDO2_PORT GPIO_B_NUM
361#define CC1200_GDO2_PIN 0
362#define CC1200_RESET_PORT GPIO_C_NUM
363#define CC1200_RESET_PIN 7
364#define CC1200_GPIOx_VECTOR GPIO_B_IRQn
371#define BOARD_STRING "Zolertia Firefly revision A platform"
Header file with register and macro declarations for the cc2538 GPIO module.
Header file for the ARM Nested Vectored Interrupt Controller.