efm32_common/include/periph_cpu.h File Reference

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

Detailed Description

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
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file efm32_common/include/periph_cpu.h.

#include "mutex.h"
#include "cpu_conf.h"
#include "em_adc.h"
#include "em_cmu.h"
#include "em_device.h"
#include "em_gpio.h"
#include "em_usart.h"
+ Include dependency graph for efm32_common/include/periph_cpu.h:

Go to the source code of this file.

Data Structures

struct  adc_conf_t
 ADC device configuration. More...
 
struct  adc_chan_conf_t
 ADC channel configuration. More...
 
struct  i2c_conf_t
 I2C configuration options. More...
 
struct  pwm_chan_conf_t
 PWM channel configuration. More...
 
struct  pwm_conf_t
 PWM device configuration. More...
 
struct  spi_dev_t
 SPI device configuration. More...
 
struct  timer_dev_t
 Define timer configuration values. More...
 
struct  timer_conf_t
 Timer configuration. More...
 
struct  uart_conf_t
 UART device configuration. More...
 

Macros

#define ADC_MODE(x, y)   ((y << 4) | x)
 Internal macro for combining ADC resolution (x) with number of shifts (y).
 
#define ADC_MODE_UNDEF   (0xff)
 Internal define to note that resolution is not supported.
 
#define CPUID_LEN   (8U)
 Length of CPU ID in octets.
 
#define GPIO_UNDEF   (0xffffffff)
 Definition of a fitting UNDEF value.
 
#define GPIO_PIN(x, y)   ((gpio_t) ((x << 4) | y))
 Mandatory function for defining a GPIO pins.
 
#define GPIO_MODE(x, y)   ((x << 1) | y)
 Internal macro for combining pin mode (x) and pull-up/down (y).
 
#define PM_NUM_MODES   (3U)
 Number of usable power modes.
 
#define LOW_POWER_ENABLED   (1)
 Enable support for Low-power peripherals (if supported by CPU).
 
#define HAVE_HWCRYPTO_AES128
 Override hardware crypto supported methods.
 
#define PERIPH_SPI_NEEDS_INIT_CS
 Declare needed generic SPI functions.
 
#define PERIPH_SPI_NEEDS_TRANSFER_BYTE
 
#define PERIPH_SPI_NEEDS_TRANSFER_REG
 
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
 

Enumerations

enum  
 Available ports on the EFM32.
 
#define HAVE_GPIO_T
 Define a custom type for GPIO pins.
 
typedef uint32_t gpio_t