23#include "periph_cpu_common.h"
32#define CPU_BACKUP_RAM_NOT_RETAINED (1)
38#define PM_NUM_MODES (3)
39#define SAML21_PM_MODE_BACKUP (0)
40#define SAML21_PM_MODE_STANDBY (1)
41#define SAML21_PM_MODE_IDLE (2)
48#define SAM0_GPIO_PM_BLOCK SAML21_PM_MODE_BACKUP
49#define SAM0_RTCRTT_PM_BLOCK SAML21_PM_MODE_BACKUP
50#define SAM0_SPI_PM_BLOCK SAML21_PM_MODE_STANDBY
51#define SAM0_TIMER_PM_BLOCK SAML21_PM_MODE_STANDBY
52#define SAM0_UART_PM_BLOCK SAML21_PM_MODE_STANDBY
53#define SAM0_USB_IDLE_PM_BLOCK SAML21_PM_MODE_BACKUP
54#define SAM0_USB_ACTIVE_PM_BLOCK SAML21_PM_MODE_STANDBY
61#ifndef PM_BLOCKER_INITIAL
62#define PM_BLOCKER_INITIAL { 0, 0, 0 }
94#define ADC_INPUTCTRL_MUXPOS_PA02 ADC_INPUTCTRL_MUXPOS_AIN0
95#define ADC_INPUTCTRL_MUXPOS_PA03 ADC_INPUTCTRL_MUXPOS_AIN1
96#define ADC_INPUTCTRL_MUXPOS_PB08 ADC_INPUTCTRL_MUXPOS_AIN2
97#define ADC_INPUTCTRL_MUXPOS_PB09 ADC_INPUTCTRL_MUXPOS_AIN3
98#define ADC_INPUTCTRL_MUXPOS_PA04 ADC_INPUTCTRL_MUXPOS_AIN4
99#define ADC_INPUTCTRL_MUXPOS_PA05 ADC_INPUTCTRL_MUXPOS_AIN5
100#define ADC_INPUTCTRL_MUXPOS_PA06 ADC_INPUTCTRL_MUXPOS_AIN6
101#define ADC_INPUTCTRL_MUXPOS_PA07 ADC_INPUTCTRL_MUXPOS_AIN7
102#define ADC_INPUTCTRL_MUXPOS_PB00 ADC_INPUTCTRL_MUXPOS_AIN8
103#define ADC_INPUTCTRL_MUXPOS_PB01 ADC_INPUTCTRL_MUXPOS_AIN9
104#define ADC_INPUTCTRL_MUXPOS_PB02 ADC_INPUTCTRL_MUXPOS_AIN10
105#define ADC_INPUTCTRL_MUXPOS_PB03 ADC_INPUTCTRL_MUXPOS_AIN11
106#define ADC_INPUTCTRL_MUXPOS_PB04 ADC_INPUTCTRL_MUXPOS_AIN12
107#define ADC_INPUTCTRL_MUXPOS_PB05 ADC_INPUTCTRL_MUXPOS_AIN13
108#define ADC_INPUTCTRL_MUXPOS_PB06 ADC_INPUTCTRL_MUXPOS_AIN14
109#define ADC_INPUTCTRL_MUXPOS_PB07 ADC_INPUTCTRL_MUXPOS_AIN15
110#define ADC_INPUTCTRL_MUXPOS_PA08 ADC_INPUTCTRL_MUXPOS_AIN16
111#define ADC_INPUTCTRL_MUXPOS_PA09 ADC_INPUTCTRL_MUXPOS_AIN17
112#define ADC_INPUTCTRL_MUXPOS_PA10 ADC_INPUTCTRL_MUXPOS_AIN18
113#define ADC_INPUTCTRL_MUXPOS_PA11 ADC_INPUTCTRL_MUXPOS_AIN19
115#define ADC_INPUTCTRL_MUXNEG_PA02 ADC_INPUTCTRL_MUXPOS_AIN0
116#define ADC_INPUTCTRL_MUXNEG_PA03 ADC_INPUTCTRL_MUXPOS_AIN1
117#define ADC_INPUTCTRL_MUXNEG_PB08 ADC_INPUTCTRL_MUXPOS_AIN2
118#define ADC_INPUTCTRL_MUXNEG_PB09 ADC_INPUTCTRL_MUXPOS_AIN3
119#define ADC_INPUTCTRL_MUXNEG_PA04 ADC_INPUTCTRL_MUXPOS_AIN4
120#define ADC_INPUTCTRL_MUXNEG_PA05 ADC_INPUTCTRL_MUXPOS_AIN5
121#define ADC_INPUTCTRL_MUXNEG_PA06 ADC_INPUTCTRL_MUXPOS_AIN6
122#define ADC_INPUTCTRL_MUXNEG_PA07 ADC_INPUTCTRL_MUXPOS_AIN7
128#define DAC_RES_BITS (12)
139#define RTT_MAX_VALUE (0xffffffff)
140#define RTT_CLOCK_FREQUENCY (32768U)
141#define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 512U)
142#define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY)
144#define RTT_MIN_OFFSET (8U)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ SAM0_GCLK_MAIN
48 MHz main clock
@ SAM0_GCLK_32KHZ
32 kHz clock
static const gpio_t sam0_adc_pins[1][20]
Pins that can be used for ADC input.
@ SAM0_GCLK_TIMER
4/8MHz clock for timers
@ SAM0_GCLK_48MHZ
48MHz clock
NVM User Row Mapping - Dedicated Entries Config values will be applied at power-on.
uint64_t bod33_level
BOD33 threshold level at power-on.
uint64_t wdt_window
WDT Window at power-on.
uint64_t wdt_window_enable
WDT Window mode enabled on power-on
uint64_t nvm_locks
NVM Region Lock Bits.
uint64_t bod33_hysteresis
BOD33 Hysteresis configuration
uint64_t bod33_action
BOD33 Action at power-on.
uint64_t bod33_enable
BOD33 Enable at power-on.
uint64_t wdt_period
WDT Period at power-on.
uint64_t reserved_2
Factory settings - do not change.
uint64_t bootloader_size
BOOTPROT: Bootloader Size
uint64_t wdt_ewoffset
WDT Early Warning Interrupt Offset
uint64_t eeprom_size
one of eight different EEPROM sizes
uint64_t reserved_0
Factory settings - do not change.
uint64_t reserved_1
Factory settings - do not change.
uint64_t wdt_always_on
WDT Always-On at power-on.
uint64_t reserved_3
Factory settings - do not change.
uint64_t wdt_enable
WDT Enable at power-on.