add i2c led
This commit is contained in:
@@ -15,6 +15,20 @@
|
||||
#include <rthw.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#define BSP_I2C1_SCL_PIN GET_PIN(C, 0)
|
||||
#define BSP_I2C1_SDA_PIN GET_PIN(C, 1)
|
||||
|
||||
#define BSP_I2C2_SCL_PIN GET_PIN(A, 0)
|
||||
#define BSP_I2C2_SDA_PIN GET_PIN(A, 1)
|
||||
|
||||
#define BSP_I2C3_SCL_PIN GET_PIN(A, 6)
|
||||
#define BSP_I2C3_SDA_PIN GET_PIN(A, 7)
|
||||
|
||||
#define BSP_I2C4_SCL_PIN GET_PIN(B, 12)
|
||||
#define BSP_I2C4_SDA_PIN GET_PIN(B, 13)
|
||||
|
||||
/* stm32 config class */
|
||||
struct stm32_soft_i2c_config
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user