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

Peripheral configurations for the HiP Badge. More...

Detailed Description

Peripheral configurations for the HiP Badge.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

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

One I2C interface I2C_DEV(0) is defined and available via the SAO headers.

The GPIOs listed in the configuration are only initialized as I2C signals when module periph_i2c is used. Otherwise they are not allocated and can be used for other purposes.

#define I2C0_SPEED   I2C_SPEED_FAST
 I2C bus speed of I2C_DEV(0)
 
#define I2C0_SCL   GPIO6
 SCL signal of I2C_DEV(0)
 
#define I2C0_SDA   GPIO5
 SDA signal of I2C_DEV(0)
 

UART configuration

ESP32-C3 provides 2 UART interfaces at maximum:

UART_DEV(0) uses fixed standard configuration.
UART_DEV(1) is used for IrDA (untested).

#define UART0_TXD   GPIO21
 direct I/O pin for UART_DEV(0) TxD, can't be changed
 
#define UART0_RXD   GPIO20
 direct I/O pin for UART_DEV(0) RxD, can't be changed
 
#define UART1_TXD   GPIO7
 IrDA TX - Bad Choice?
 
#define UART1_RXD   GPIO3
 IrDA RX - Bad Choice?
 

Macro Definition Documentation

◆ I2C0_SCL

#define I2C0_SCL   GPIO6

SCL signal of I2C_DEV(0)

Definition at line 42 of file periph_conf.h.

◆ I2C0_SDA

#define I2C0_SDA   GPIO5

SDA signal of I2C_DEV(0)

Definition at line 45 of file periph_conf.h.

◆ I2C0_SPEED

#define I2C0_SPEED   I2C_SPEED_FAST

I2C bus speed of I2C_DEV(0)

Definition at line 39 of file periph_conf.h.

◆ UART0_RXD

#define UART0_RXD   GPIO20

direct I/O pin for UART_DEV(0) RxD, can't be changed

Definition at line 60 of file periph_conf.h.

◆ UART0_TXD

#define UART0_TXD   GPIO21

direct I/O pin for UART_DEV(0) TxD, can't be changed

Definition at line 59 of file periph_conf.h.

◆ UART1_RXD

#define UART1_RXD   GPIO3

IrDA RX - Bad Choice?

Definition at line 63 of file periph_conf.h.

◆ UART1_TXD

#define UART1_TXD   GPIO7

IrDA TX - Bad Choice?

Definition at line 62 of file periph_conf.h.