periph_cpu.h File Reference

CPU specific definitions for internal peripheral handling. More...

Detailed Description

CPU specific definitions for internal peripheral handling.

CPU specific definitions for internal peripheral handling

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file periph_cpu.h.

#include "periph_cpu_common.h"
+ Include dependency graph for periph_cpu.h:

Go to the source code of this file.

Data Structures

struct  sam0_aux_cfg_mapping
 NVM User Row Mapping - Dedicated Entries Config values will be applied at power-on. More...
 

Macros

#define DAC_RES_BITS   (12)
 The MCU has a 12 bit DAC.
 
#define DAC_NUMOF   (2)
 The MCU has two DAC outputs.
 
#define CPU_BACKUP_RAM_NOT_RETAINED   (1)
 The Low Power SRAM is not retained during deep sleep.
 

Power mode configuration

#define PM_NUM_MODES   (2)
 

SAML21 GCLK definitions

enum  { SAM0_GCLK_MAIN = 0, SAM0_GCLK_8MHZ = 1, SAM0_GCLK_32KHZ = 2, SAM0_GCLK_48MHZ = 3 }
 

Real time counter configuration

#define RTT_MAX_VALUE   (0xffffffff)
 
#define RTT_CLOCK_FREQUENCY   (32768U) /* in Hz */
 
#define RTT_MIN_FREQUENCY   (RTT_CLOCK_FREQUENCY / 512U) /* in Hz */
 
#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* in Hz */
 
#define RTT_MIN_OFFSET   (8U)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SAM0_GCLK_MAIN 

Main clock.

SAM0_GCLK_8MHZ 

8MHz clock

SAM0_GCLK_32KHZ 

32 kHz clock

SAM0_GCLK_48MHZ 

48MHz clock

Definition at line 45 of file periph_cpu.h.