Go to the documentation of this file.
32 #define PROVIDES_PM_SET_LOWEST
33 #define PROVIDES_PM_RESTART
34 #define PROVIDES_PM_OFF
35 #define PROVIDES_PM_LAYERED_OFF
40 #define PM_NUM_MODES (2U)
46 #define ESP_PM_MODEM_SLEEP (2U)
47 #define ESP_PM_LIGHT_SLEEP (1U)
48 #define ESP_PM_DEEP_SLEEP (0U)
56 #define CPUID_LEN (7U)
70 typedef unsigned int gpio_t;
77 #define GPIO_UNDEF (0xffffffff)
84 #define GPIO_PIN(x, y) ((x & 0) | y)
98 #define GPIO_PIN_NUMOF (40)
107 #define HAVE_GPIO_FLANK_T
124 #define HAVE_GPIO_MODE_T
144 #define GPIO0 (GPIO_PIN(PORT_GPIO,0))
145 #define GPIO1 (GPIO_PIN(PORT_GPIO,1))
146 #define GPIO2 (GPIO_PIN(PORT_GPIO,2))
147 #define GPIO3 (GPIO_PIN(PORT_GPIO,3))
148 #define GPIO4 (GPIO_PIN(PORT_GPIO,4))
149 #define GPIO5 (GPIO_PIN(PORT_GPIO,5))
150 #define GPIO6 (GPIO_PIN(PORT_GPIO,6))
151 #define GPIO7 (GPIO_PIN(PORT_GPIO,7))
152 #define GPIO8 (GPIO_PIN(PORT_GPIO,8))
153 #define GPIO9 (GPIO_PIN(PORT_GPIO,9))
154 #define GPIO10 (GPIO_PIN(PORT_GPIO,10))
155 #define GPIO11 (GPIO_PIN(PORT_GPIO,11))
156 #define GPIO12 (GPIO_PIN(PORT_GPIO,12))
157 #define GPIO13 (GPIO_PIN(PORT_GPIO,13))
158 #define GPIO14 (GPIO_PIN(PORT_GPIO,14))
159 #define GPIO15 (GPIO_PIN(PORT_GPIO,15))
160 #define GPIO16 (GPIO_PIN(PORT_GPIO,16))
161 #define GPIO17 (GPIO_PIN(PORT_GPIO,17))
162 #define GPIO18 (GPIO_PIN(PORT_GPIO,18))
163 #define GPIO19 (GPIO_PIN(PORT_GPIO,19))
165 #define GPIO21 (GPIO_PIN(PORT_GPIO,21))
166 #define GPIO22 (GPIO_PIN(PORT_GPIO,22))
167 #define GPIO23 (GPIO_PIN(PORT_GPIO,23))
169 #define GPIO25 (GPIO_PIN(PORT_GPIO,25))
170 #define GPIO26 (GPIO_PIN(PORT_GPIO,26))
171 #define GPIO27 (GPIO_PIN(PORT_GPIO,27))
173 #define GPIO32 (GPIO_PIN(PORT_GPIO,32))
174 #define GPIO33 (GPIO_PIN(PORT_GPIO,33))
176 #define GPIO34 (GPIO_PIN(PORT_GPIO,34))
177 #define GPIO35 (GPIO_PIN(PORT_GPIO,35))
178 #define GPIO36 (GPIO_PIN(PORT_GPIO,36))
179 #define GPIO37 (GPIO_PIN(PORT_GPIO,37))
180 #define GPIO38 (GPIO_PIN(PORT_GPIO,38))
181 #define GPIO39 (GPIO_PIN(PORT_GPIO,39))
244 #define HAVE_ADC_RES_T
265 #define ADC_NUMOF_MAX 16
296 #define DAC_NUMOF_MAX 2
331 #define HAVE_I2C_SPEED_T
354 #define I2C_NUMOF_MAX (2)
356 #define PERIPH_I2C_NEED_READ_REG
357 #define PERIPH_I2C_NEED_READ_REGS
358 #define PERIPH_I2C_NEED_WRITE_REG
359 #define PERIPH_I2C_NEED_WRITE_REGS
392 #define PWM_NUMOF_MAX (2)
397 #define PWM_CHANNEL_NUM_DEV_MAX (6)
409 #define RNG_DATA_REG_ADDR (0x3ff75144)
424 #define RTT_FREQUENCY (32768UL)
429 #define RTT_MAX_VALUE (0xFFFFFFFFUL)
492 #define SPI_NUMOF_MAX 2
494 #define PERIPH_SPI_NEEDS_TRANSFER_BYTE
495 #define PERIPH_SPI_NEEDS_TRANSFER_REG
496 #define PERIPH_SPI_NEEDS_TRANSFER_REGS
507 #ifdef MODULE_ESP_HW_COUNTER
509 #define TIMER_NUMOF (2)
510 #define TIMER_CHANNEL_NUMOF (1)
513 #define TIMER_NUMOF (3)
514 #define TIMER_CHANNEL_NUMOF (1)
518 #define TIMER_SYSTEM TIMERG0.hw_timer[0]
525 #define PERIPH_TIMER_PROVIDES_SET
563 #define UART_NUMOF_MAX (3)
566 #ifdef MODULE_PERIPH_CAN
@ ADC_RES_6BIT
ADC resolution: 6 bit.
@ I2C_SPEED_LOW
low speed mode: ~10 kbit/s
@ GPIO_IN_PD
configure as input with pull-down resistor
@ GPIO_OD
configure as output in open-drain mode without pull resistor
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
spi_ctrl_t
SPI controllers that can be used for peripheral interfaces.
gpio_t txd
GPIO used as TxD pin.
@ ADC_RES_14BIT
ADC resolution: 14 bit.
adc_res_t
Possible ADC resolution settings.
@ GPIO_OUT
configure as output in push-pull mode
gpio_t miso
GPIO used as MISO pin.
@ ADC_RES_16BIT
ADC resolution: 16 bit.
@ HSPI
HSPI interface controller.
i2c_speed_t
Default mapping of I2C bus speed values.
spi_ctrl_t ctrl
SPI controller used for the interface.
@ ADC_RES_8BIT
ADC resolution: 8 bit.
@ GPIO_FALLING
emit interrupt on falling flank
gpio_t mosi
GPIO used as MOSI pin.
@ GPIO_IN_PU
configure as input with pull-up resistor
@ GPIO_RISING
emit interrupt on rising flank
@ GPIO_IN
configure as input without pull resistor
UART device configuration.
gpio_t sda
GPIO used as SDA pin.
gpio_t rxd
GPIO used as RxD pin.
@ GPIO_OD_PU
configure as output in open-drain mode with pull resistor enabled
gpio_t scl
GPIO used as SCL pin.
gpio_t sck
GPIO used as SCK pin.
@ GPIO_BOTH
emit interrupt on both flanks
gpio_mode_t
Available pin modes.
@ ADC_RES_10BIT
ADC resolution: 10 bit.
@ ADC_RES_12BIT
ADC resolution: 12 bit.
unsigned int gpio_t
GPIO type identifier.
I2C configuration options.
@ I2C_SPEED_FAST_PLUS
fast plus mode: ~1000 kbit/s
@ I2C_SPEED_FAST
fast mode: ~400 kbit/s
@ VSPI
VSPI interface controller.
@ I2C_SPEED_HIGH
high speed mode: ~3400 kbit/s
SPI configuration structure type.
gpio_t cs
GPIO used as CS0 pin.