periph_cpu_common.h File Reference

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

Detailed Description

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

Go to the source code of this file.

Data Structures

struct  pwm_conf_t
 PWM configuration. More...
 

Macros

#define GPIO_UNDEF   (0xff)
 Definition of a fitting UNDEF value.
 
#define GPIO_PIN(x, y)   ((x << 4) | y)
 Define a CPU specific GPIO pin generator macro.
 
#define EEPROM_CLEAR_BYTE   (0xff)
 EEPROM clear byte.
 
#define WDT_HAS_STOP   (1)
 WDT can be stopped on AVR.
 

Length of the CPU_ID in octets

#define CPUID_LEN   (4U)
 
#define PERIPH_SPI_NEEDS_INIT_CS
 Use some common SPI functions.
 
#define PERIPH_SPI_NEEDS_TRANSFER_BYTE
 
#define PERIPH_SPI_NEEDS_TRANSFER_REG
 
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
 
enum  timer_div_t { TIMER_DIV1_8_64_128_1024 = 0x549, TIMER_DIV1_8_32_64_128_256_1024 = 0x5E9 }
 Bitmasks indicating which are the possible dividers for a timer. More...
 

WDT upper and lower bound times in ms

#define NWDT_TIME_LOWER_LIMIT   (1)
 
#define NWDT_TIME_UPPER_LIMIT   (8192U)
 

Enumeration Type Documentation

◆ timer_div_t

Bitmasks indicating which are the possible dividers for a timer.

Enumerator
TIMER_DIV1_8_64_128_1024 

1/{1,8,64,128,1024}

TIMER_DIV1_8_32_64_128_256_1024 

1/{1,8,32,64,128,256,1024}

Definition at line 143 of file periph_cpu_common.h.