boards/cc2538dk/include/periph_conf.h File Reference

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

Detailed Description

Peripheral MCU configuration for the CC2538DK board.

Author
Ian Martin ian@l.nosp@m.ocic.nosp@m.ontro.nosp@m.ls.c.nosp@m.om

Definition in file boards/cc2538dk/include/periph_conf.h.

#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

Radio peripheral configuration
#define RADIO_IRQ_PRIO   1
 

Timer configuration

General purpose timers (GPT[0-3]) are configured consecutively and in order (without gaps) starting from GPT0, i.e.

if multiple timers are enabled.

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

UART configuration

#define UART_0_ISR   isr_uart0
 
#define UART_NUMOF   (sizeof(uart_config) / sizeof(uart_config[0]))
 
static const uart_conf_t uart_config []
 

I2C configuration

#define I2C_IRQ_PRIO   1
 
#define I2C_NUMOF   (sizeof(i2c_config) / sizeof(i2c_config[0]))
 
static const i2c_conf_t i2c_config []
 

SPI configuration

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

ADC configuration

#define SOC_ADC_ADCCON_REF   SOC_ADC_ADCCON_REF_AVDD5
 
#define ADC_NUMOF   (sizeof(adc_config) / sizeof(adc_config[0]))
 
static const adc_conf_t adc_config []
 

Variable Documentation

◆ adc_config

const adc_conf_t adc_config[]
static
Initial value:
= {
GPIO_PIN(0, 6),
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

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

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.speed = I2C_SPEED_FAST,
.scl_pin = GPIO_PIN(0, 2),
.sda_pin = GPIO_PIN(0, 4)
},
}
fast mode: ~400kbit/s
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

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

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.num = 0,
.mosi_pin = GPIO_PIN(0, 4),
.miso_pin = GPIO_PIN(0, 5),
.sck_pin = GPIO_PIN(0, 2),
.cs_pin = GPIO_PIN(3, 0)
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

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

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.chn = 2,
},
{
.chn = 1,
},
{
.chn = 2,
},
{
.chn = 1,
},
}
16-bit timer configuration
32-bit timer configuration

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

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.rx_pin = GPIO_PIN(0, 0),
.tx_pin = GPIO_PIN(0, 1),
.cts_pin = GPIO_UNDEF,
.rts_pin = GPIO_UNDEF
}
}
#define UART0_BASEADDR
UART0 Instance.
Definition: cc2538_uart.h:183
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

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