feat(i2c): support i2c on esp32-c61

This commit is contained in:
laokaiyao
2024-08-05 18:16:57 +08:00
parent cd1178298f
commit 1397e5421e
27 changed files with 1304 additions and 156 deletions
+3 -6
View File
@@ -8,16 +8,14 @@
#include "soc/i2c_reg.h"
#include "soc/i2c_struct.h"
#include "soc/soc_caps.h"
#if SOC_I2C_SUPPORTED // TODO: [ESP32C5] IDF-8694
#include "soc/periph_defs.h"
#if SOC_I2C_SUPPORTED
#include "soc/regdma.h"
#endif // SOC_I2C_SUPPORTED
#include "soc/interrupts.h"
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_I2C_SUPPORTED
typedef struct {
const uint8_t sda_out_sig;
const uint8_t sda_in_sig;
@@ -25,7 +23,6 @@ typedef struct {
const uint8_t scl_in_sig;
const uint8_t iomux_func;
const uint8_t irq;
const periph_module_t module;
} i2c_signal_conn_t;
extern const i2c_signal_conn_t i2c_periph_signal[SOC_I2C_NUM];
@@ -38,8 +35,8 @@ typedef struct {
extern const i2c_reg_ctx_link_t i2c_regs_retention[SOC_HP_I2C_NUM];
#endif
#endif // SOC_I2C_SUPPORTED
#ifdef __cplusplus
}
#endif
#endif // SOC_I2C_SUPPORTED