Peripheral MCU configuration for the Microchip SAML10 & SAML11 Xplained Pro board.
More...
Peripheral MCU configuration for the Microchip SAML10 & SAML11 Xplained Pro board.
- Author
- Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
#define | CLOCK_CORECLOCK (16000000U) |
| GCLK reference speed.
|
|
#define | USE_VREG_BUCK (1) |
| Enable the internal DC/DC converter The board is equipped with the necessary inductor.
|
|
◆ 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 (16000000U) |
◆ DAC_CLOCK
◆ DAC_VREF
#define DAC_VREF DAC_CTRLB_REFSEL_AVCC |
◆ EXTERNAL_OSC32_SOURCE
#define EXTERNAL_OSC32_SOURCE 1 |
◆ I2C_NUMOF
◆ PWM_0_EN
◆ PWM_1_EN
◆ PWM_NUMOF
◆ 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_1_CHANNELS
#define TIMER_1_CHANNELS 2 |
◆ TIMER_1_ISR
#define TIMER_1_ISR isr_tc2 |
◆ TIMER_1_MAX_VALUE
#define TIMER_1_MAX_VALUE 0xffff |
◆ TIMER_NUMOF
◆ UART_0_ISR
#define UART_0_ISR isr_sercom2_2 |
◆ UART_0_ISR_TX
#define UART_0_ISR_TX isr_sercom2_0 |
◆ UART_1_ISR
#define UART_1_ISR isr_sercom1_2 |
◆ UART_1_ISR_TX
#define UART_1_ISR_TX isr_sercom1_0 |
◆ UART_NUMOF
◆ ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE
#define ULTRA_LOW_POWER_INTERNAL_OSC_SOURCE 0 |
◆ USE_VREG_BUCK
#define USE_VREG_BUCK (1) |
Enable the internal DC/DC converter The board is equipped with the necessary inductor.
Definition at line 38 of file periph_conf.h.
◆ adc_channels
Initial value:= {
}
#define ADC_INPUTCTRL_MUXPOS_PA10
Alias for PIN18.
Definition at line 242 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 199 of file periph_conf.h.
◆ pwm_config
◆ spi_config
Initial value:= {
{
.dev = &(SERCOM0->SPI),
}
}
@ SPI_PAD_MISO_0
use pad 0 for MISO line
@ GPIO_MUX_D
select peripheral function D
@ SPI_PAD_MOSI_2_SCK_3
use pad 2 for MOSI, pad 3 for SCK
Definition at line 173 of file periph_conf.h.
◆ 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,
},
{
.dev = TC2,
.irq = TC2_IRQn,
.mclk = &MCLK->APBCMASK.reg,
.mclk_mask = MCLK_APBCMASK_TC2_Msk,
.gclk_id = TC2_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT16,
}
}
Definition at line 44 of file periph_conf.h.
◆ uart_config