Loading...
Searching...
No Matches
periph_conf.h File Reference
#include "periph_cpu.h"
#include "macros/units.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Define the nominal CPU core clock in this board

#define CLK80   1
 
#define CLK50   2
 
#define CLK40   3
 
#define CLK16   4
 
#define CLK1   5
 
#define CLOCK_SOURCE   CLK40
 
#define CLOCK_CORECLOCK   MHZ(80)
 

Timer configuration

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
#define TIMER_0_ISR   isr_wtimer0a
 
#define TIMER_1_ISR   isr_wtimer1a
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_NUMOF   (1U)
 
#define UART_IRQ_PRIO   1
 
#define UART_CLK   ROM_SysCtlClockGet()
 
#define UART_0_DEV   UART0_BASE
 
#define UART_0_CLK   (40000000)
 
#define UART_0_IRQ_CHAN   UART0_IRQn
 
#define UART_0_ISR   isr_uart0
 
#define UART_0_PORT   GPIOA
 
#define UART_0_TX_PIN   UART_PA1_U0TX
 
#define UART_0_RX_PIN   UART_PA0_U0RX
 

ADC configuration

#define ADC_NUMOF   (12)
 

SPI configuration

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

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   (12)

Definition at line 94 of file periph_conf.h.

◆ CLK1

#define CLK1   5

Definition at line 37 of file periph_conf.h.

◆ CLK16

#define CLK16   4

Definition at line 36 of file periph_conf.h.

◆ CLK40

#define CLK40   3

Definition at line 35 of file periph_conf.h.

◆ CLK50

#define CLK50   2

Definition at line 34 of file periph_conf.h.

◆ CLK80

#define CLK80   1

Definition at line 33 of file periph_conf.h.

◆ CLOCK_CORECLOCK

#define CLOCK_CORECLOCK   MHZ(80)

Definition at line 39 of file periph_conf.h.

◆ CLOCK_SOURCE

#define CLOCK_SOURCE   CLK40

Definition at line 38 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_confs)

Definition at line 156 of file periph_conf.h.

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_wtimer0a

Definition at line 67 of file periph_conf.h.

◆ TIMER_1_ISR

#define TIMER_1_ISR   isr_wtimer1a

Definition at line 68 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 65 of file periph_conf.h.

◆ UART_0_CLK

#define UART_0_CLK   (40000000)

Definition at line 81 of file periph_conf.h.

◆ UART_0_DEV

#define UART_0_DEV   UART0_BASE

Definition at line 80 of file periph_conf.h.

◆ UART_0_IRQ_CHAN

#define UART_0_IRQ_CHAN   UART0_IRQn

Definition at line 82 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   isr_uart0

Definition at line 83 of file periph_conf.h.

◆ UART_0_PORT

#define UART_0_PORT   GPIOA

Definition at line 85 of file periph_conf.h.

◆ UART_0_RX_PIN

#define UART_0_RX_PIN   UART_PA0_U0RX

Definition at line 87 of file periph_conf.h.

◆ UART_0_TX_PIN

#define UART_0_TX_PIN   UART_PA1_U0TX

Definition at line 86 of file periph_conf.h.

◆ UART_CLK

#define UART_CLK   ROM_SysCtlClockGet()

Definition at line 78 of file periph_conf.h.

◆ UART_IRQ_PRIO

#define UART_IRQ_PRIO   1

Definition at line 76 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   (1U)

Definition at line 75 of file periph_conf.h.

Variable Documentation

◆ spi_confs

const spi_conf_t spi_confs[]
static

Definition at line 101 of file periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = WTIMER0_BASE,
.max = 0xffffffff,
.irqn = Timer0A_IRQn,
.sysctl = SYSCTL_PERIPH_WTIMER0,
.intbase = INT_WTIMER0A,
.channels = 1
},
{
.dev = WTIMER1_BASE,
.max = 0xffffffff,
.irqn = Timer1A_IRQn,
.sysctl = SYSCTL_PERIPH_WTIMER1,
.intbase = INT_WTIMER1A,
.channels = 1
},
}

Definition at line 46 of file periph_conf.h.