35typedef uint32_t gpio_t;
36#define GPIO_PIN(x, y) ((gpio_t)((x<<4) | y))
44#define HAVE_GPIO_MODE_T
46 GPIO_IN = (GPIO_DIR_MODE_IN | (GPIO_PIN_TYPE_STD << 4)),
47 GPIO_IN_PD = (GPIO_DIR_MODE_IN | (GPIO_PIN_TYPE_STD_WPD << 4)),
48 GPIO_IN_PU = (GPIO_DIR_MODE_IN | (GPIO_PIN_TYPE_STD_WPU << 4)),
49 GPIO_OUT = (GPIO_DIR_MODE_OUT | (GPIO_PIN_TYPE_STD << 4)),
50 GPIO_OD = (GPIO_DIR_MODE_OUT | (GPIO_PIN_TYPE_OD << 4)),
51 GPIO_OD_PU = (GPIO_DIR_MODE_OUT | (GPIO_PIN_TYPE_OD_WPU << 4)),
60#define HAVE_GPIO_DIR_T
72#define HAVE_GPIO_FLANK_T
74 GPIO_FALLING = GPIO_FALLING_EDGE,
75 GPIO_RISING = GPIO_RISING_EDGE,
76 GPIO_BOTH = GPIO_BOTH_EDGES
125#define SPI_HWCS(x) (UINT_MAX - 1)
150#define PERIPH_SPI_NEEDS_TRANSFER_BYTE 1
151#define PERIPH_SPI_NEEDS_TRANSFER_REG 1
152#define PERIPH_SPI_NEEDS_TRANSFER_REGS 1
153#define PERIPH_SPI_NEEDS_INIT_CS 1
161#define HAVE_SPI_CLK_T 1
166 SPI_CLK_4MHZ = 4000000,
176#define HAVE_SPI_MODE_T 1
@ GPIO_OUT
select GPIO MASK as output
@ GPIO_IN
select GPIO MASK as input
@ SPI_CLK_10MHZ
drive the SPI bus with 10MHz
@ SPI_CLK_5MHZ
drive the SPI bus with 5MHz
@ SPI_CLK_400KHZ
drive the SPI bus with 400KHz
@ SPI_CLK_1MHZ
drive the SPI bus with 1MHz
@ SPI_CLK_100KHZ
drive the SPI bus with 100KHz
adc_res_t
Possible ADC resolution settings.
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
@ GPIO_DIR_IN
configure pin as input
@ GPIO_DIR_OUT
configure pin as output
spi_mode_t
Support SPI modes.
@ SPI_MODE_0
CPOL=0, CPHA=0.
@ SPI_MODE_2
CPOL=1, CPHA=0.
@ SPI_MODE_1
CPOL=0, CPHA=1.
@ SPI_MODE_3
CPOL=1, CPHA=1.
gpio_mode_t
Available pin modes.
SPI device configuration.
unsigned long fss
pin used for FSS
unsigned long tx
pin used for MOSI
unsigned long clk
pin used for SCK
unsigned long mask
Pin mask.
unsigned long gpio_sysctl
GPIO device in sysctl.
unsigned long rx
pin used for MISO
unsigned long ssi_base
SSI base address.
unsigned long gpio_port
GPIO port.
unsigned long ssi_sysctl
SSI device in sysctl.
Timer device configuration.
uint32_t sysctl
Address of timer system control.
int irqn
Number of the higher timer IRQ channel.
int channels
Number of channels for the timer.
uint32_t intbase
Interrupt base of timer.
uint32_t dev
Address of timer base.