boards/cc2538dk/include/periph_conf.h File Reference

Peripheral MCU configuration for the CC2538DK board. More...

Detailed Description

#include "cpu.h"
#include "periph_cpu.h"
+ Include dependency graph for boards/cc2538dk/include/periph_conf.h:

Go to the source code of this file.

Macros

UART configuration
#define UART_NUMOF   1
 
#define UART_0_EN   1
 
#define UART_1_EN   0
 
#define UART_2_EN   0
 
#define UART_3_EN   0
 
#define UART_IRQ_PRIO   1
 
#define UART_0_DEV   UART0
 
#define UART_0_IRQ   UART0_IRQn
 
#define UART_0_ISR   isr_uart0
 
#define UART_0_TX_PIN   GPIO_PA1
 
#define UART_0_RX_PIN   GPIO_PA0
 
#define UART_0_RTS_PIN   GPIO_PD3
 
#define UART_0_CTS_PIN   GPIO_PB0
 
#define UART_1_DEV   UART1
 
#define UART_1_IRQ   UART1_IRQn
 
#define UART_1_ISR   isr_uart1
 
Radio peripheral configuration
#define RADIO_IRQ_PRIO   1
 

Variables

static const spi_clk_conf_t spi_clk_config []
 Pre-calculated clock divider values based on a CLOCK_CORECLOCK (32MHz) More...
 

Timer peripheral configuration

#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
#define TIMER_IRQ_PRIO   1
 
static const timer_conf_t timer_config []
 

I2C configuration

#define I2C_NUMOF   1
 
#define I2C_0_EN   1
 
#define I2C_IRQ_PRIO   1
 
#define I2C_0_DEV   0
 
#define I2C_0_IRQ   I2C_IRQn
 
#define I2C_0_IRQ_HANDLER   isr_i2c
 
#define I2C_0_SCL_PIN   GPIO_PA2 /* SPI_SCK on the SmartRF06 baseboard */
 
#define I2C_0_SDA_PIN   GPIO_PA4 /* SPI_MOSI on the SmartRF06 baseboard */
 
static const i2c_conf_t i2c_config [1]
 

SPI configuration

#define SPI_NUMOF   (sizeof(spi_config) / sizeof(spi_config[0]))
 
static const spi_conf_t spi_config []
 

Variable Documentation

const i2c_conf_t i2c_config[1]
static
Initial value:
= {
{
.scl_pin = GPIO_PA2,
.sda_pin = GPIO_PA4,
},
}
PA4.
Definition: cc2538_gpio.h:161
PA2.
Definition: cc2538_gpio.h:159

Definition at line 106 of file boards/cc2538dk/include/periph_conf.h.

const spi_clk_conf_t spi_clk_config[]
static
Initial value:
= {
{ .cpsr = 10, .scr = 31 },
{ .cpsr = 2, .scr = 39 },
{ .cpsr = 2, .scr = 15 },
{ .cpsr = 2, .scr = 2 },
{ .cpsr = 2, .scr = 1 }
}

Calculated with (CPSR * (SCR + 1)) = (CLOCK_CORECLOCK / bus_freq), where 1 < CPSR < 255 and 0 < SCR < 256

Definition at line 121 of file boards/cc2538dk/include/periph_conf.h.

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SSI0,
.mosi_pin = GPIO_PA4,
.miso_pin = GPIO_PA5,
.sck_pin = GPIO_PA2,
.cs_pin = GPIO_PD0
}
}
PD0.
Definition: cc2538_gpio.h:181
PA5.
Definition: cc2538_gpio.h:162
PA4.
Definition: cc2538_gpio.h:161
PA2.
Definition: cc2538_gpio.h:159
#define SSI0
SSI0 Instance.
Definition: cc2538_ssi.h:77

Definition at line 133 of file boards/cc2538dk/include/periph_conf.h.

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = GPTIMER0,
.channels = 2,
},
{
.dev = GPTIMER1,
.channels = 1,
},
{
.dev = GPTIMER2,
.channels = 1,
},
{
.dev = GPTIMER3,
.channels = 1,
},
}
#define GPTIMER2
GPTIMER2 Instance.
#define GPTIMER1
GPTIMER1 Instance.
#define GPTIMER0
GPTIMER0 Instance.
16-bit timer configuration
32-bit timer configuration
#define GPTIMER3
GPTIMER3 Instance.

Definition at line 33 of file boards/cc2538dk/include/periph_conf.h.