mirror of
https://github.com/Lurkars/esp-ena.git
synced 2026-05-08 20:10:37 +02:00
support for ena-eke-proxy, improved interface
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
menu "I²C"
|
||||
|
||||
config I2C_SDA_PIN
|
||||
int "I²C sda pin"
|
||||
default 22
|
||||
|
||||
config I2C_SCL_PIN
|
||||
int "I²C scl pin"
|
||||
default 23
|
||||
|
||||
config I2C_CLOCKSPEED
|
||||
int "I²C clock speed"
|
||||
default 1000000
|
||||
|
||||
endmenu
|
||||
@@ -20,9 +20,9 @@
|
||||
#ifndef _i2c_main_H_
|
||||
#define _i2c_main_H_
|
||||
|
||||
#define I2C_SDA_PIN (23)
|
||||
#define I2C_SCL_PIN (22)
|
||||
#define I2C_CLK_SPEED (1000000)
|
||||
#define I2C_SDA_PIN (CONFIG_I2C_SDA_PIN)
|
||||
#define I2C_SCL_PIN (CONFIG_I2C_SCL_PIN)
|
||||
#define I2C_CLK_SPEED (CONFIG_I2C_CLOCKSPEED)
|
||||
|
||||
/**
|
||||
* @brief initialize main I2C interface
|
||||
|
||||
Reference in New Issue
Block a user