Configuration of CPU peripherals for the Adafruit Grand Central M4 Express.
More...
Configuration of CPU peripherals for the Adafruit Grand Central M4 Express.
- Author
- Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com
-
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net
Definition in file periph_conf.h.
#include "periph_cpu.h"
Go to the source code of this file.
|
#define | USE_VREG_BUCK (1) |
| Enable the internal DC/DC converter The board is equipped with L_EXT (L1) of 10uH at VSW pin.
|
|
◆ ADC_GCLK_SRC
◆ ADC_NEG_INPUT
#define ADC_NEG_INPUT ADC_INPUTCTRL_MUXNEG(0x18u) |
◆ ADC_NUMOF
◆ ADC_PRESCALER
#define ADC_PRESCALER ADC_CTRLA_PRESCALER_DIV8 |
◆ ADC_REF_DEFAULT
#define ADC_REF_DEFAULT ADC_REFCTRL_REFSEL_INTVCC1 |
◆ CLOCK_CORECLOCK
#define CLOCK_CORECLOCK MHZ(120) |
◆ DAC_CLOCK
◆ DAC_VREF
#define DAC_VREF DAC_CTRLB_REFSEL_VREFPU |
◆ EXTERNAL_OSC32_SOURCE
#define EXTERNAL_OSC32_SOURCE 1 |
◆ I2C_NUMOF
◆ INTERNAL_OSC32_SOURCE
#define INTERNAL_OSC32_SOURCE 0 |
◆ PWM_0_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_NUMOF
◆ UART_0_ISR
#define UART_0_ISR isr_sercom0_2 |
◆ UART_0_ISR_TX
#define UART_0_ISR_TX isr_sercom0_0 |
◆ UART_1_ISR
#define UART_1_ISR isr_sercom4_2 |
◆ UART_1_ISR_TX
#define UART_1_ISR_TX isr_sercom4_0 |
◆ UART_2_ISR
#define UART_2_ISR isr_sercom1_2 |
◆ UART_2_ISR_TX
#define UART_2_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 L_EXT (L1) of 10uH at VSW pin.
Definition at line 52 of file periph_conf.h.
◆ adc_channels
Initial value:= {
}
#define ADC1_INPUTCTRL_MUXPOS_PC03
Alias for AIN5.
#define ADC0_INPUTCTRL_MUXPOS_PA04
Alias for AIN4.
#define ADC0_INPUTCTRL_MUXPOS_PA07
Alias for AIN7.
#define ADC1_INPUTCTRL_MUXPOS_PC02
Alias for AIN4.
#define ADC1_INPUTCTRL_MUXPOS_PB05
Alias for AIN7.
#define ADC1_INPUTCTRL_MUXPOS_PB04
Alias for AIN6.
#define ADC1_INPUTCTRL_MUXPOS_PC00
Alias for AIN10.
#define ADC0_INPUTCTRL_MUXPOS_PA05
Alias for AIN5.
#define ADC1_INPUTCTRL_MUXPOS_PC01
Alias for AIN11.
#define ADC0_INPUTCTRL_MUXPOS_PB03
Alias for AIN15.
#define ADC0_INPUTCTRL_MUXPOS_PB08
Alias for AIN2.
#define ADC1_INPUTCTRL_MUXPOS_PB07
Alias for AIN9.
#define ADC0_INPUTCTRL_MUXPOS_PB09
Alias for AIN3.
#define ADC0_INPUTCTRL_MUXPOS_PA06
Alias for AIN6.
#define ADC0_INPUTCTRL_MUXPOS_PA02
ADC pin aliases.
#define ADC1_INPUTCTRL_MUXPOS_PB06
Alias for AIN8.
Definition at line 66 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = &(SERCOM3->I2CM),
},
{
.dev = &(SERCOM6->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_PERIPH
12-48 MHz (DFLL) clock
Definition at line 105 of file periph_conf.h.
◆ pwm_config
◆ sam_usbdev_config
Initial value:= {
{
.device = &USB->DEVICE,
}
}
@ GPIO_MUX_H
select peripheral function H
Definition at line 267 of file periph_conf.h.
◆ spi_config
◆ timer_config
Initial value:= {
{
.dev = TC0,
.irq = TC0_IRQn,
.mclk = &MCLK->APBAMASK.reg,
.mclk_mask = MCLK_APBAMASK_TC0 | MCLK_APBAMASK_TC1,
.gclk_id = TC0_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
},
{
.dev = TC2,
.irq = TC2_IRQn,
.mclk = &MCLK->APBBMASK.reg,
.mclk_mask = MCLK_APBBMASK_TC2 | MCLK_APBBMASK_TC3,
.gclk_id = TC2_GCLK_ID,
.flags = TC_CTRLA_MODE_COUNT32,
}
}
#define SAM0_GCLK_TIMER
4-8 MHz clock for xTimer
Definition at line 171 of file periph_conf.h.
◆ uart_config