Go to the documentation of this file.
25 #include "periph_cpu_common.h"
35 #define PM_NUM_MODES (3)
42 #define PM_BLOCKER_INITIAL 0x00000001
48 #define SAMD21_PM_STANDBY (0U)
49 #define SAMD21_PM_IDLE_2 (1U)
50 #define SAMD21_PM_IDLE_1 (2U)
51 #define SAMD21_PM_IDLE_0 (3U)
72 #define SPI_HWCS(x) (UINT_MAX - 1)
83 return ((((uint32_t)sercom) >> 10) & 0x7) - 2;
91 #define HAVE_ADC_RES_T
106 #define DAC_RES_BITS (10)
111 #define DAC_NUMOF (1)
117 #define RTT_RUNSTDBY (1)
119 #define RTT_MAX_VALUE (0xffffffff)
120 #define RTT_CLOCK_FREQUENCY (32768U)
121 #define RTT_MIN_FREQUENCY (RTT_CLOCK_FREQUENCY / 1024U)
122 #define RTT_MAX_FREQUENCY (RTT_CLOCK_FREQUENCY)
uint64_t eeprom_size
one of eight different EEPROM sizes
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ SAM0_GCLK_DISABLED
disabled GCLK
@ SAM0_GCLK_MAIN
48 MHz main 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.
@ SAM0_GCLK_1KHZ
1 kHz clock
uint64_t bod33_action
BOD33 Action at power-on.
uint64_t reserved_2
Factory settings - do not change.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
adc_res_t
Possible ADC resolution settings.
uint64_t bod33_hysteresis
BOD33 Hysteresis configuration
@ ADC_RES_16BIT
ADC resolution: 16 bit.
uint64_t wdt_enable
WDT Enable at power-on.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ SAM0_GCLK_32KHZ
32 kHz clock
uint64_t wdt_window
WDT Window at power-on.
uint64_t reserved_1
Factory settings - do not change.
const uint64_t bod12_calibration
Factory settings - do not change.
uint64_t bod33_enable
BOD33 Enable at power-on.
uint64_t bootloader_size
BOOTPROT: Bootloader Size
uint64_t wdt_ewoffset
WDT Early Warning Interrupt Offset
uint64_t wdt_window_enable
WDT Window mode enabled on power-on
uint64_t nvm_locks
NVM Region Lock Bits.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
uint64_t reserved_3
Factory settings - do not change.
@ SAM0_GCLK_1MHZ
1 MHz clock for xTimer
uint64_t wdt_always_on
WDT Always-On at power-on.
uint64_t wdt_period
WDT Period at power-on.
uint64_t reserved_0
Factory settings - do not change.
static int _sercom_id(SercomUsart *sercom)
Return the numeric id of a SERCOM device derived from its address.