Initial commit for nanopsx
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef __BSP_I2C_H__
|
||||
#define __BSP_I2C_H__
|
||||
|
||||
#include "driver/i2c_master.h"
|
||||
#include "driver/gpio.h"
|
||||
|
||||
#define EXAMPLE_PIN_I2C_SDA GPIO_NUM_18
|
||||
#define EXAMPLE_PIN_I2C_SCL GPIO_NUM_19
|
||||
#define I2C_PORT_NUM 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
i2c_master_bus_handle_t bsp_i2c_init(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif //__BSP_I2C_H__
|
||||
Reference in New Issue
Block a user