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

Peripheral MCU configuration for the Re-Mote board prototype A. More...

Detailed Description

Peripheral MCU configuration for the Re-Mote board prototype A.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Antonio Lignan alina.nosp@m.n@zo.nosp@m.lerti.nosp@m.a.co.nosp@m.m
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file boards/remote-pa/include/periph_conf.h.

#include "periph_common.h"
+ Include dependency graph for boards/remote-pa/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_PB1
 
#define I2C_0_SDA_PIN   GPIO_PB0
 
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, 6),
GPIO_PIN(0, 7),
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 116 of file boards/remote-pa/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 63 of file boards/remote-pa/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 }
}

Pre-calculated clock divider values based on a CLOCK_CORECLOCK (32MHz)

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

Definition at line 78 of file boards/remote-pa/include/periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SSI0,
.mosi_pin = GPIO_PD0,
.miso_pin = GPIO_PC4,
.sck_pin = GPIO_PD1,
.cs_pin = GPIO_PD3
},
{
.dev = SSI1,
.mosi_pin = GPIO_PC7,
.miso_pin = GPIO_PA4,
.sck_pin = GPIO_PB5,
.cs_pin = GPIO_UNDEF
}
}
PD0.
Definition: cc2538_gpio.h:170
PC4.
Definition: cc2538_gpio.h:166
PD1.
Definition: cc2538_gpio.h:171
#define SSI1
SSI1 Instance.
Definition: cc2538_ssi.h:78
PC7.
Definition: cc2538_gpio.h:169
PB5.
Definition: cc2538_gpio.h:159
PA4.
Definition: cc2538_gpio.h:150
#define GPIO_UNDEF
Define custom value to speficy undefined or unused GPIOs.
#define SSI0
SSI0 Instance.
Definition: cc2538_ssi.h:77
PD3.
Definition: cc2538_gpio.h:173

Definition at line 90 of file boards/remote-pa/include/periph_conf.h.