23 #ifndef BOARD_COMMON_H
24 #define BOARD_COMMON_H
29 #include "periph_conf.h"
35 #include "sdkconfig.h"
47 #if defined(LED0_PIN) || DOXYGEN
48 #define LED0_MASK (BIT(LED0_PIN))
49 #define LED0_ON (gpio_write(LED0_PIN, LED0_ACTIVE))
50 #define LED0_OFF (gpio_write(LED0_PIN, !LED0_ACTIVE))
51 #define LED0_TOGGLE (gpio_toggle(LED0_PIN))
54 #if defined(LED1_PIN) || DOXYGEN
55 #define LED1_MASK (BIT(LED1_PIN))
56 #define LED1_ON (gpio_write(LED1_PIN, LED1_ACTIVE))
57 #define LED1_OFF (gpio_write(LED1_PIN, !LED1_ACTIVE))
58 #define LED1_TOGGLE (gpio_toggle(LED1_PIN))
61 #if defined(LED2_PIN) || DOXYGEN
62 #define LED2_MASK (BIT(LED2_PIN))
63 #define LED2_ON (gpio_write(LED2_PIN, LED2_ACTIVE))
64 #define LED2_OFF (gpio_write(LED2_PIN, !LED2_ACTIVE))
65 #define LED2_TOGGLE (gpio_toggle(LED2_PIN))
74 #ifndef STDIO_UART_BAUDRATE
75 #define STDIO_UART_BAUDRATE (115200)
79 #if MODULE_MTD || DOXYGEN
98 #ifndef SPI_FLASH_DRIVE_START
99 #define SPI_FLASH_DRIVE_START 0
102 #define MTD_0 mtd_dev_get(0)
104 #if MODULE_MTD_SDCARD_DEFAULT || DOXYGEN
105 #define MTD_1 mtd_dev_get(1)
106 #elif MODULE_MTD_SDMMC_DEFAULT
107 #define MTD_1 mtd_dev_get(1)
116 #ifndef CONFIG_SDCARD_GENERIC_MTD_OFFSET
117 #define CONFIG_SDCARD_GENERIC_MTD_OFFSET 1
126 #ifndef CONFIG_SDMMC_GENERIC_MTD_OFFSET
127 #define CONFIG_SDMMC_GENERIC_MTD_OFFSET 1
Compatibility wrapper for arduino_iomap.h.
Low-level GPIO peripheral driver interface definitions.
void print_board_config(void)
Print the board configuration in a human readable format.