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:
Lucas Saavedra Vaz 2022-10-19 12:08:22 -03:00 committed by Alan Carvalho de Assis
parent 544552c305
commit b0f96fc204
2 changed files with 9 additions and 1 deletions

View File

@ -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
****************************************************************************/

View File

@ -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