esp8266/include/periph_conf_common.h¶
Configurations of the MCU periphery that are common for all ESP8266 boards.
-
BIT( X)¶ 1
(1<<(X))
-
ADC_NUMOF¶ number of ADC channels
1
1
-
PWM_NUMOF¶ Number of PWM devices.
1
(1)
-
PWM_CHANNEL_NUM_MAX¶ Maximum number of channels per PWM device.
1
(8)
-
PWM0_CHANNEL_GPIOS¶ Definition of GPIOs that can be used as PWM channels of device
pwm.h::PWM_DEV.1
{ GPIO2, GPIO4, GPIO5 }
The following definition is just an example configuration. Declare up to
esp8266/include/periph_conf_common.h::PWM_CHANNEL_NUM_MAXGPIOs as PWM channels. GPIOs with a duty cycle value of 0 can be used as normal GPIOs for other purposes. GPIOs in the list that are used for other purposes, e.g., I2C or SPI, are then not available as PWM channels.
-
PWM0_DEV¶ Alternative device definition.
1
PWM_DEV(0)
-
SPI_NUMOF¶ Number of SPI interfaces.
1
1
-
SPI_DEV( x)¶ SPI_DEV to SPI hardware mapping.
1
((unsigned int)(x+1))
-
SPI0_DEV¶ HSPI /
esp8266/include/periph_conf_common.h::SPI_DEVdevice.1
SPI_DEV(0)
-
SPI0_MISO_GPIO¶ HSPI /
esp8266/include/periph_conf_common.h::SPI_DEVMISO pin.1
GPIO12
-
SPI0_MOSI_GPIO¶ HSPI /
esp8266/include/periph_conf_common.h::SPI_DEVMOSI pin.1
GPIO13
-
SPI0_SCK_GPIO¶ HSPI /
esp8266/include/periph_conf_common.h::SPI_DEVSCK pin.1
GPIO14
-
SPI0_CS0_GPIO¶ HSPI /
esp8266/include/periph_conf_common.h::SPI_DEVCS default pin, only used when cs parameter in spi_acquire is GPIO_UNDEF.1
GPIO15
-
TIMER_NUMOF¶ number of timer devices
1
(1U)
-
TIMER_CHANNELS¶ number of channels per timer device
1
(1U)
-
UART_NUMOF¶ Number of UART devices.
1
1
-
UART0_TXD¶ TxD pin of
uart.h::UART_DEV1
GPIO1
-
UART0_RXD¶ RxD pin of
uart.h::UART_DEV1
GPIO3