32 #define CPUID_LEN (4U)
36 #if defined(MODULE_PERIPH_GPIO_LINUX) || defined(DOXYGEN)
37 #include <linux/gpio.h>
47 #define GPIO_PORT_SHIFT (24)
52 #define GPIO_PIN(port, pin) (gpio_t)((port << GPIO_PORT_SHIFT) | pin)
54 #define HAVE_GPIO_MODE_T
55 #ifndef GPIOHANDLE_REQUEST_PULL_DOWN
56 #define GPIOHANDLE_REQUEST_PULL_DOWN (0xFF)
58 #ifndef GPIOHANDLE_REQUEST_PULL_UP
59 #define GPIOHANDLE_REQUEST_PULL_UP (0xFF)
71 GPIO_IN = GPIOHANDLE_REQUEST_INPUT,
72 GPIO_IN_PD = GPIOHANDLE_REQUEST_INPUT | GPIOHANDLE_REQUEST_PULL_DOWN,
73 GPIO_IN_PU = GPIOHANDLE_REQUEST_INPUT | GPIOHANDLE_REQUEST_PULL_UP,
74 GPIO_OUT = GPIOHANDLE_REQUEST_OUTPUT,
75 GPIO_OD = GPIOHANDLE_REQUEST_OPEN_DRAIN,
76 GPIO_OD_PU = GPIOHANDLE_REQUEST_OPEN_DRAIN | GPIOHANDLE_REQUEST_PULL_UP
79 #define HAVE_GPIO_FLANK_T
93 #define PERIPH_TIMER_PROVIDES_SET
99 #define PROVIDES_PM_OFF
100 #define PROVIDES_PM_SET_LOWEST
108 #if defined(MODULE_PERIPH_SPIDEV_LINUX) || defined(DOXYGEN)
117 #define PERIPH_SPI_NEEDS_TRANSFER_BYTE
121 #define PERIPH_SPI_NEEDS_TRANSFER_REG
125 #define PERIPH_SPI_NEEDS_TRANSFER_REGS
131 #define HAVE_SPI_CLK_T
155 #define EEPROM_SIZE (1024U)
159 #ifdef MODULE_PERIPH_CAN