Loading...
Searching...
No Matches
periph_conf.h File Reference

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

Detailed Description

Peripheral MCU configuration for the omote board.

Definition in file periph_conf.h.

#include "cc2538_gpio.h"
#include "periph_cpu.h"
#include "cfg_clk_default.h"
#include "cfg_timer_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

ADC configuration

#define SOC_ADC_ADCCON3_EREF   SOC_ADC_ADCCON3_EREF_AVDD5
 
#define ADC_NUMOF   ARRAY_SIZE(adc_config)
 
static const adc_conf_t adc_config []
 

I2C configuration

#define I2C_IRQ_PRIO   1
 
#define I2C_NUMOF   ARRAY_SIZE(i2c_config)
 
static const i2c_conf_t i2c_config []
 

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

UART configuration

#define UART_0_ISR   isr_uart0
 
#define UART_1_ISR   isr_uart1
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
static const uart_conf_t uart_config []
 

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   ARRAY_SIZE(adc_config)

Definition at line 47 of file periph_conf.h.

◆ I2C_IRQ_PRIO

#define I2C_IRQ_PRIO   1

Definition at line 53 of file periph_conf.h.

◆ I2C_NUMOF

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 63 of file periph_conf.h.

◆ SOC_ADC_ADCCON3_EREF

#define SOC_ADC_ADCCON3_EREF   SOC_ADC_ADCCON3_EREF_AVDD5

Definition at line 37 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 79 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   isr_uart0

Definition at line 107 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   isr_uart1

Definition at line 108 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 111 of file periph_conf.h.

Variable Documentation

◆ adc_config

const adc_conf_t adc_config[]
static
Initial value:
= {
}
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46

Definition at line 39 of file periph_conf.h.

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.speed = I2C_SPEED_FAST,
.scl_pin = GPIO_PIN(PORT_C, 3),
.sda_pin = GPIO_PIN(PORT_C, 2)
},
}
@ PORT_C
port C
Definition periph_cpu.h:49
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
Definition periph_cpu.h:279

Definition at line 55 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.num = 0,
.mosi_pin = GPIO_PIN(PORT_C, 5),
.miso_pin = GPIO_PIN(PORT_C, 6),
.sck_pin = GPIO_PIN(PORT_C, 4),
.cs_pin = GPIO_PIN(PORT_A, 7)
}
}

Definition at line 69 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.rx_pin = GPIO_PIN(PORT_A, 0),
.tx_pin = GPIO_PIN(PORT_A, 1),
},
{
.rx_pin = GPIO_PIN(PORT_C, 1),
.tx_pin = GPIO_PIN(PORT_C, 0),
}
}
#define UART1_BASEADDR
UART1 Instance.
#define UART0_BASEADDR
UART0 Instance.

Definition at line 85 of file periph_conf.h.