Loading...
Searching...
No Matches
periph_conf.h File Reference

Peripheral configurations for the Seeed Studio XIAO ESP32-C6. More...

Detailed Description

Peripheral configurations for the Seeed Studio XIAO ESP32-C6.

Author
Stepan Konoplev stepa.nosp@m.n.ko.nosp@m.nople.nosp@m.v@ha.nosp@m.w-ham.nosp@m.burg.nosp@m..de

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.

Note
As long as the according PWM device is not initialized with the pwm_init, the GPIOs declared for this device can be used for other purposes.
#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.
 

Macro Definition Documentation

◆ ADC_GPIOS

#define ADC_GPIOS   { GPIO0, GPIO1, GPIO2 }

Declaration of GPIOs that can be used as ADC channels.

Note
As long as the GPIOs listed in ADC_GPIOS are not initialized as ADC channels with the adc_init function, they can be used for other purposes.

Definition at line 79 of file periph_conf.h.

◆ I2C0_SCL

#define I2C0_SCL   GPIO23

I2C SCL pin.

Definition at line 34 of file periph_conf.h.

◆ I2C0_SDA

#define I2C0_SDA   GPIO22

I2C SDA pin.

Definition at line 30 of file periph_conf.h.

◆ I2C0_SPEED

#define I2C0_SPEED   I2C_SPEED_FAST

I2C bus speed.

Definition at line 38 of file periph_conf.h.

◆ PWM0_GPIOS

#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.

◆ SPI0_CS0

#define SPI0_CS0   GPIO21

SPI CS0 pin.

Definition at line 63 of file periph_conf.h.

◆ SPI0_CTRL

#define SPI0_CTRL   FSPI

SPI controller used.

Definition at line 47 of file periph_conf.h.

◆ SPI0_MISO

#define SPI0_MISO   GPIO20

SPI MISO pin.

Definition at line 59 of file periph_conf.h.

◆ SPI0_MOSI

#define SPI0_MOSI   GPIO18

SPI MOSI pin.

Definition at line 55 of file periph_conf.h.

◆ SPI0_SCK

#define SPI0_SCK   GPIO19

SPI SCK pin.

Definition at line 51 of file periph_conf.h.

◆ UART0_RXD

#define UART0_RXD   GPIO17

UART RxD pin.

Definition at line 114 of file periph_conf.h.

◆ UART0_TXD

#define UART0_TXD   GPIO16

UART TxD pin.

Definition at line 113 of file periph_conf.h.