CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
hw_config.h File Reference
#include "driver/gpio.h"

Go to the source code of this file.

Macros

#define I2C0_SDA_PIN   GPIO_NUM_17
#define I2C0_SCL_PIN   GPIO_NUM_18
#define I2C1_SDA_PIN   GPIO_NUM_47
#define I2C1_SCL_PIN   GPIO_NUM_48
#define EXPANDER_ADDR   0x20
#define EXP_IRQ_PIN   GPIO_NUM_1
#define BQ25895_ADDR   0x6A
#define CHG_DSEL_PIN   GPIO_NUM_21
#define CHG_IRQ_PIN   GPIO_NUM_39
#define EPD_LED_PIN   GPIO_NUM_8
#define EPD_CS_PIN   GPIO_NUM_41
#define EPD_DC_PIN   GPIO_NUM_45
#define EPD_RST_PIN   GPIO_NUM_46
#define EPD_BUSY_PIN   GPIO_NUM_42
#define SPI_SCLK_PIN   GPIO_NUM_12
#define SPI_MISO_PIN   GPIO_NUM_11
#define SPI_MOSI_PIN   GPIO_NUM_13
#define TR01_CS_PIN   GPIO_NUM_10
#define FLASH_BTN_PIN   GPIO_NUM_0
#define SAO_GPIO1_PIN   GPIO_NUM_15
#define SAO_GPIO2_PIN   GPIO_NUM_16
#define SAO_EEPROM_ADDR   0x50
#define GROVE_0_PIN   GPIO_NUM_2
#define GROVE_1_PIN   GPIO_NUM_3

Macro Definition Documentation

◆ BQ25895_ADDR

#define BQ25895_ADDR   0x6A

Definition at line 22 of file hw_config.h.

Referenced by cdc::hal::BQ25895Power::init().

◆ CHG_DSEL_PIN

#define CHG_DSEL_PIN   GPIO_NUM_21

Definition at line 23 of file hw_config.h.

◆ CHG_IRQ_PIN

#define CHG_IRQ_PIN   GPIO_NUM_39

Definition at line 24 of file hw_config.h.

Referenced by cdc::hal::BQ25895Power::init().

◆ EPD_BUSY_PIN

#define EPD_BUSY_PIN   GPIO_NUM_42

Definition at line 32 of file hw_config.h.

◆ EPD_CS_PIN

#define EPD_CS_PIN   GPIO_NUM_41

Definition at line 29 of file hw_config.h.

◆ EPD_DC_PIN

#define EPD_DC_PIN   GPIO_NUM_45

Definition at line 30 of file hw_config.h.

◆ EPD_LED_PIN

#define EPD_LED_PIN   GPIO_NUM_8

Definition at line 28 of file hw_config.h.

Referenced by cdc::hal::EpaperDisplay::init().

◆ EPD_RST_PIN

#define EPD_RST_PIN   GPIO_NUM_46

Definition at line 31 of file hw_config.h.

◆ EXP_IRQ_PIN

◆ EXPANDER_ADDR

#define EXPANDER_ADDR   0x20

Definition at line 18 of file hw_config.h.

Referenced by cdc::hal::TCA9535Keypad::init().

◆ FLASH_BTN_PIN

#define FLASH_BTN_PIN   GPIO_NUM_0

Definition at line 43 of file hw_config.h.

Referenced by cdc::hal::BQ25895Power::init(), and cdc::hal::BQ25895Power::update().

◆ GROVE_0_PIN

#define GROVE_0_PIN   GPIO_NUM_2

Definition at line 52 of file hw_config.h.

◆ GROVE_1_PIN

#define GROVE_1_PIN   GPIO_NUM_3

Definition at line 53 of file hw_config.h.

◆ I2C0_SCL_PIN

#define I2C0_SCL_PIN   GPIO_NUM_18

Definition at line 11 of file hw_config.h.

◆ I2C0_SDA_PIN

#define I2C0_SDA_PIN   GPIO_NUM_17

Definition at line 10 of file hw_config.h.

◆ I2C1_SCL_PIN

#define I2C1_SCL_PIN   GPIO_NUM_48

Definition at line 15 of file hw_config.h.

◆ I2C1_SDA_PIN

#define I2C1_SDA_PIN   GPIO_NUM_47

Definition at line 14 of file hw_config.h.

◆ SAO_EEPROM_ADDR

#define SAO_EEPROM_ADDR   0x50

Definition at line 49 of file hw_config.h.

Referenced by host_sao_eeprom_read(), host_sao_eeprom_write(), and sao_init().

◆ SAO_GPIO1_PIN

#define SAO_GPIO1_PIN   GPIO_NUM_15

Definition at line 47 of file hw_config.h.

◆ SAO_GPIO2_PIN

#define SAO_GPIO2_PIN   GPIO_NUM_16

Definition at line 48 of file hw_config.h.

◆ SPI_MISO_PIN

#define SPI_MISO_PIN   GPIO_NUM_11

Definition at line 36 of file hw_config.h.

Referenced by cdc::hal::initSharedSpiBus().

◆ SPI_MOSI_PIN

#define SPI_MOSI_PIN   GPIO_NUM_13

Definition at line 37 of file hw_config.h.

Referenced by cdc::hal::initSharedSpiBus().

◆ SPI_SCLK_PIN

#define SPI_SCLK_PIN   GPIO_NUM_12

Definition at line 35 of file hw_config.h.

Referenced by cdc::hal::initSharedSpiBus().

◆ TR01_CS_PIN

#define TR01_CS_PIN   GPIO_NUM_10

Definition at line 40 of file hw_config.h.

Referenced by cdc::hal::Tropic01Element::init().