Peripheral MCU configuration for the Atmel SAM R30 Xplained Pro board.
More...
Peripheral MCU configuration for the Atmel SAM R30 Xplained Pro board.
- Author
- Baptiste Clenet bapcl.nosp@m.enet.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
◆ ADC_NEG_INPUT
#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u) |
◆ ADC_NUMOF
◆ ADC_PRESCALER
#define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV256 |
◆ ADC_REF_DEFAULT
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC2 |
◆ CLOCK_CORECLOCK
#define CLOCK_CORECLOCK (48000000U) |
◆ EXTERNAL_OSC32_SOURCE
#define EXTERNAL_OSC32_SOURCE 1 |
◆ I2C_NUMOF
◆ INTERNAL_OSC32_SOURCE
#define INTERNAL_OSC32_SOURCE 0 |
◆ RTT_FREQUENCY
#define RTT_FREQUENCY (32768U) |
◆ SPI_NUMOF
◆ TIMER_0_CHANNELS
#define TIMER_0_CHANNELS 2 |
◆ TIMER_0_ISR
#define TIMER_0_ISR isr_tc0 |
◆ TIMER_NUMOF
◆ UART_0_ISR
#define UART_0_ISR isr_sercom0 |
◆ UART_NUMOF
◆ ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0 |
◆ adc_channels
Initial value:= {
}
#define ADC_INPUTCTRL_MUXPOS_PA10
Alias for PIN18.
#define ADC_INPUTCTRL_MUXPOS_PA11
Alias for PIN19.
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
#define ADC_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
Definition at line 172 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = &(SERCOM1->I2CM),
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
@ I2C_FLAG_NONE
No flags set.
@ GPIO_MUX_C
select peripheral function C
#define SAM0_GCLK_MAIN
120 MHz main clock
Definition at line 129 of file periph_conf.h.
◆ sam_usbdev_config
Initial value:= {
{
.device = &USB->DEVICE,
.gclk_src = SAM0_GCLK_48MHZ,
}
}
@ GPIO_MUX_G
select peripheral function G
Definition at line 188 of file periph_conf.h.
◆ spi_config
◆ timer_config
Initial value:= {
{
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC0_Msk | MCLK_APBCMASK_TC1_Msk,
.gclk_id = TC0_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
}
}
#define SAM0_GCLK_TIMER
4-8 MHz clock for xTimer
Definition at line 37 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = &SERCOM0->USART,
}
}
@ UART_PAD_RX_1
select pad 1
@ UART_FLAG_NONE
No flags set.
@ UART_PAD_TX_0
select pad 0
@ GPIO_MUX_D
select peripheral function D
Definition at line 59 of file periph_conf.h.