Peripheral configurations for the Seeed Studio XIAO ESP32-C6. More...
Peripheral configurations for the Seeed Studio XIAO ESP32-C6.
Definition in file periph_conf.h.
#include <stdint.h>#include "periph_conf_common.h"
Include dependency graph for periph_conf.h:Go to the source code of this file.
I2C configuration | |
| #define | I2C0_SDA GPIO22 |
| I2C SDA pin. | |
| #define | I2C0_SCL GPIO23 |
| I2C SCL pin. | |
| #define | I2C0_SPEED I2C_SPEED_FAST |
| I2C bus speed. | |
SPI configuration | |
| #define | SPI0_CTRL FSPI |
| SPI controller used. | |
| #define | SPI0_SCK GPIO19 |
| SPI SCK pin. | |
| #define | SPI0_MOSI GPIO18 |
| SPI MOSI pin. | |
| #define | SPI0_MISO GPIO20 |
| SPI MISO pin. | |
| #define | SPI0_CS0 GPIO21 |
| SPI CS0 pin. | |
ADC channel configuration | |
| #define | ADC_GPIOS { GPIO0, GPIO1, GPIO2 } |
| Declaration of GPIOs that can be used as ADC channels. | |
PWM channel configuration | |
PWM_DEV(0) shares its GPIOs with the ADC channels on this board. Generally, all output pins could be used as PWM channels.
| |
| #define | PWM0_GPIOS { GPIO0, GPIO1, GPIO2 } |
| Declaration of the channels for device PWM_DEV(0), at maximum PWM_CHANNEL_NUM_DEV_MAX. | |
UART configuration | |
Seeed Studio XIAO ESP32-C6 provides only 1 UART interface. UART_DEV(0) uses fixed standard configuration. | |
| #define | UART0_TXD GPIO16 |
| UART TxD pin. | |
| #define | UART0_RXD GPIO17 |
| UART RxD pin. | |
| #define ADC_GPIOS { GPIO0, GPIO1, GPIO2 } |
Declaration of GPIOs that can be used as ADC channels.
adc_init function, they can be used for other purposes. Definition at line 79 of file periph_conf.h.
| #define I2C0_SCL GPIO23 |
I2C SCL pin.
Definition at line 34 of file periph_conf.h.
| #define I2C0_SDA GPIO22 |
I2C SDA pin.
Definition at line 30 of file periph_conf.h.
| #define I2C0_SPEED I2C_SPEED_FAST |
I2C bus speed.
Definition at line 38 of file periph_conf.h.
| #define PWM0_GPIOS { GPIO0, GPIO1, GPIO2 } |
Declaration of the channels for device PWM_DEV(0), at maximum PWM_CHANNEL_NUM_DEV_MAX.
Definition at line 100 of file periph_conf.h.
| #define SPI0_CS0 GPIO21 |
SPI CS0 pin.
Definition at line 63 of file periph_conf.h.
| #define SPI0_CTRL FSPI |
SPI controller used.
Definition at line 47 of file periph_conf.h.
| #define SPI0_MISO GPIO20 |
SPI MISO pin.
Definition at line 59 of file periph_conf.h.
| #define SPI0_MOSI GPIO18 |
SPI MOSI pin.
Definition at line 55 of file periph_conf.h.
| #define SPI0_SCK GPIO19 |
SPI SCK pin.
Definition at line 51 of file periph_conf.h.
| #define UART0_RXD GPIO17 |
UART RxD pin.
Definition at line 114 of file periph_conf.h.
| #define UART0_TXD GPIO16 |
UART TxD pin.
Definition at line 113 of file periph_conf.h.