esp32/i2c: Add macros to conform with other peripherals and fix typos
Fix coding style Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
544552c305
commit
b0f96fc204
@ -43,6 +43,14 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_I2C0
|
||||
# define ESP32_I2C0 0
|
||||
#endif /* CONFIG_ESP32_I2C0 */
|
||||
|
||||
#ifdef CONFIG_ESP32_I2C1
|
||||
# define ESP32_I2C1 1
|
||||
#endif /* CONFIG_ESP32_I2C1 */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
@ -48,7 +48,7 @@ extern "C"
|
||||
* Name: esp32_i2c_register
|
||||
*
|
||||
* Description:
|
||||
* registar an ESP32 I2C interface.
|
||||
* Register an ESP32 I2C interface.
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) is returned on success; A negated errno value is returned
|
||||
|
Loading…
Reference in New Issue
Block a user