Configuration of CPU peripherals for the SODAQ ONE board.
More...
Configuration of CPU peripherals for the SODAQ ONE board.
- Author
- Kees Bakker kees@.nosp@m.soda.nosp@m.q.com
Definition in file periph_conf.h.
#include <stdint.h>
#include "cpu.h"
#include "periph_cpu.h"
#include "cfg_clock_default.h"
#include "cfg_rtc_default.h"
#include "cfg_rtt_default.h"
#include "cfg_timer_default.h"
#include "cfg_usbdev_default.h"
Go to the source code of this file.
◆ ADC_GAIN_FACTOR_DEFAULT
#define ADC_GAIN_FACTOR_DEFAULT ADC_INPUTCTRL_GAIN_DIV2 |
◆ ADC_NEG_INPUT
#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG_GND |
◆ ADC_NUMOF
◆ ADC_PRESCALER
#define ADC_PRESCALER ADC_CTRLB_PRESCALER_DIV512 |
◆ ADC_REF_DEFAULT
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1 |
◆ I2C_NUMOF
◆ SPI_NUMOF
◆ UART_0_ISR
#define UART_0_ISR isr_sercom5 |
◆ UART_1_ISR
#define UART_1_ISR isr_sercom2 |
◆ UART_NUMOF
◆ adc_channels
Initial value:= {
}
#define ADC_INPUTCTRL_MUXPOS_PA05
Alias for PIN5.
#define ADC_INPUTCTRL_MUXPOS_PB08
Alias for PIN2.
#define ADC_INPUTCTRL_MUXPOS_PA10
Alias for PIN18.
#define ADC_INPUTCTRL_MUXPOS_PA11
Alias for PIN19.
#define ADC_INPUTCTRL_MUXPOS_PA08
Alias for PIN16.
#define ADC_INPUTCTRL_MUXPOS_PB09
Alias for PIN3.
#define ADC_INPUTCTRL_MUXPOS_PA09
Alias for PIN17.
#define ADC_INPUTCTRL_MUXPOS_PA07
Alias for PIN7.
#define ADC_INPUTCTRL_MUXPOS_PA06
Alias for PIN6.
#define ADC_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
#define ADC_INPUTCTRL_MUXPOS_PA03
Alias for PIN1.
Definition at line 91 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = &(SERCOM3->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 145 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = &SERCOM0->SPI,
}
}
@ SPI_PAD_MISO_0
use pad 0 for MISO line
@ SPI_PAD_MOSI_2_SCK_3
use pad 2 for MOSI, pad 3 for SCK
Definition at line 119 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = &SERCOM5->USART,
},
{
.dev = &SERCOM2->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 41 of file periph_conf.h.