The friendly Operating System for the Internet of Things
boards/arduino-due/include/periph_conf.h File Reference

Peripheral MCU configuration for the Arduino Due board. More...

Detailed Description

#include "periph_cpu.h"
+ Include dependency graph for boards/arduino-due/include/periph_conf.h:

Go to the source code of this file.

Macros

Clock configuration
#define CLOCK_CORECLOCK   (84000000UL)
 
#define CLOCK_EXT_OSC   (12000000UL)
 
#define CLOCK_PLL_MUL   (83)
 
#define CLOCK_PLL_DIV   (12)
 
#define CLOCK_FWS   (4) /* 4 is save for 84MHz */
 

Timer peripheral configuration

#define TIMER_0_ISR   isr_tc0
 
#define TIMER_1_ISR   isr_tc3
 
#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_0_ISR   isr_uart
 
#define UART_1_ISR   isr_usart0
 
#define UART_2_ISR   isr_usart1
 
#define UART_3_ISR   isr_usart3
 
#define UART_NUMOF   (sizeof(uart_config) / sizeof(uart_config[0]))
 
static const uart_conf_t uart_config []
 

SPI configuration

#define SPI_NUMOF   (sizeof(spi_config) / sizeof(spi_config[0]))
 
static const spi_conf_t spi_config []
 

PWM configuration

#define PWM_NUMOF   (1U)
 
#define PWM_CHAN_NUMOF   (sizeof(pwm_chan) / sizeof(pwm_chan[0]))
 
static const pwm_chan_conf_t pwm_chan []
 

Variable Documentation

const pwm_chan_conf_t pwm_chan[]
static
Initial value:
= {
{ .pin = GPIO_PIN(PC, 21), .hwchan = 4, },
{ .pin = GPIO_PIN(PC, 22), .hwchan = 5, },
{ .pin = GPIO_PIN(PC, 23), .hwchan = 6, },
{ .pin = GPIO_PIN(PC, 24), .hwchan = 7, }
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 109 of file boards/arduino-due/include/periph_conf.h.

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SPI0,
.id = ID_SPI0,
.clk = GPIO_PIN(PA, 27),
.mosi = GPIO_PIN(PA, 26),
.miso = GPIO_PIN(PA, 25),
.mux = GPIO_MUX_A
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
select peripheral function A

Definition at line 91 of file boards/arduino-due/include/periph_conf.h.

const timer_conf_t timer_config[]
static
Initial value:
= {
{ TC0, ID_TC0 },
{ TC1, ID_TC3 },
}

Definition at line 54 of file boards/arduino-due/include/periph_conf.h.

const uart_conf_t uart_config[]
static
Initial value:
= {
{(Uart *)UART, PIOA, PIOA, 8, 9, GPIO_MUX_A, ID_UART, UART_IRQn},
{(Uart *)USART0, PIOA, PIOA, 10, 11, GPIO_MUX_A, ID_USART0, USART0_IRQn},
{(Uart *)USART1, PIOA, PIOA, 12, 13, GPIO_MUX_A, ID_USART1, USART1_IRQn},
{(Uart *)USART3, PIOD, PIOD, 4, 5, GPIO_MUX_B, ID_USART3, USART3_IRQn}
}
select peripheral function B
#define UART
UART register bank.
Definition: cc26x0_uart.h:126
select peripheral function A

Definition at line 70 of file boards/arduino-due/include/periph_conf.h.