periph_conf.h File Reference

Configuration of CPU peripherals for the Raspberry Pi Pico. More...

Detailed Description

Configuration of CPU peripherals for the Raspberry Pi Pico.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file periph_conf.h.

#include <stdint.h>
#include "kernel_defines.h"
#include "cpu.h"
#include "periph_cpu.h"
+ Include dependency graph for periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define UART_0_ISR   (isr_uart0)
 
#define UART_1_ISR   (isr_uart1)
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 
#define TIMER_0_ISRA   isr_timer0
 
#define TIMER_0_ISRB   isr_timer1
 
#define TIMER_0_ISRC   isr_timer2
 
#define TIMER_0_ISRD   isr_timer3
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
static const uart_conf_t uart_config []
 
static const timer_channel_conf_t timer0_channel_config []
 
static const timer_conf_t timer_config []
 

Variable Documentation

◆ timer0_channel_config

const timer_channel_conf_t timer0_channel_config[]
static
Initial value:
= {
{
.irqn = TIMER_IRQ_0_IRQn
},
{
.irqn = TIMER_IRQ_1_IRQn
},
{
.irqn = TIMER_IRQ_2_IRQn
},
{
.irqn = TIMER_IRQ_3_IRQn
}
}

Definition at line 51 of file periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIMER,
.ch = timer0_channel_config,
.ch_numof = ARRAY_SIZE(timer0_channel_config)
}
}
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.

Definition at line 66 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = UART0,
.rx_pin = GPIO_PIN(0, 1),
.tx_pin = GPIO_PIN(0, 0),
.irqn = UART0_IRQ_IRQn
},
{
.dev = UART1,
.rx_pin = GPIO_PIN(0, 9),
.tx_pin = GPIO_PIN(0, 8),
.irqn = UART1_IRQ_IRQn
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
#define UART0
UART0 register bank.
#define UART1
UART1 register bank.

Definition at line 31 of file periph_conf.h.