boards/remote-revb/include/periph_conf.h File Reference

Peripheral MCU configuration for the RE-Mote board revision B. More...

Detailed Description

#include "cc2538_gpio.h"
#include "periph_cpu.h"
#include "periph_common.h"
+ Include dependency graph for boards/remote-revb/include/periph_conf.h:

Go to the source code of this file.

Macros

UART configuration
#define UART_NUMOF   (1U)
 
#define UART_0_EN   1
 
#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
 

Variables

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

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_PC3
 
#define I2C_0_SDA_PIN   GPIO_PC2
 
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 []
 

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, 5),
GPIO_PIN(0, 4),
GPIO_PIN(0, 2),
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 119 of file boards/remote-revb/include/periph_conf.h.

◆ i2c_config

const i2c_conf_t i2c_config[1]
static
Initial value:
= {
{
.scl_pin = I2C_0_SCL_PIN,
.sda_pin = I2C_0_SDA_PIN,
},
}

Definition at line 67 of file boards/remote-revb/include/periph_conf.h.

◆ spi_clk_config

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 82 of file boards/remote-revb/include/periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SSI0,
.mosi_pin = GPIO_PB1,
.miso_pin = GPIO_PB3,
.sck_pin = GPIO_PB2,
.cs_pin = GPIO_PB5
},
{
.dev = SSI1,
.mosi_pin = GPIO_PC5,
.miso_pin = GPIO_PC6,
.sck_pin = GPIO_PC4,
.cs_pin = GPIO_PA7
}
}
PB1.
Definition: cc2538_gpio.h:166
PB3.
Definition: cc2538_gpio.h:168
PC4.
Definition: cc2538_gpio.h:177
PC6.
Definition: cc2538_gpio.h:179
#define SSI1
SSI1 Instance.
Definition: cc2538_ssi.h:78
PA7.
Definition: cc2538_gpio.h:164
PB5.
Definition: cc2538_gpio.h:170
PB2.
Definition: cc2538_gpio.h:167
#define SSI0
SSI0 Instance.
Definition: cc2538_ssi.h:77
PC5.
Definition: cc2538_gpio.h:178

Definition at line 94 of file boards/remote-revb/include/periph_conf.h.