periph.h

Parameter definitions for mapping peripherals directly to SAUL.

enum saul_gpio_flags_t
SAUL_GPIO_INVERTED = (1 << 0)
pin is used as inverted
SAUL_GPIO_INIT_CLEAR = (1 << 1)
set pin inactive after init
SAUL_GPIO_INIT_SET = (1 << 2)
set pin active after init
struct saul_gpio_params_t

Direct mapped GPIO configuration values.

const char * name

name of the device connected to this pin

gpio.h::gpio_t pin

GPIO pin to initialize and expose.

cc2538/include/periph_cpu.h::gpio_mode_t mode

pin mode to use

periph.h::saul_gpio_flags_t flags

Configuration flags.

struct saul_adc_params_t

Direct mapped ADC configuration values.

const char * name

name of the device connected to this pin

adc.h::adc_t line

ADC line to initialize and expose.

cc2538/include/periph_cpu.h::adc_res_t res

ADC resolution.