generated from hulk/gd32e23x_template
	iic驱动重写
This commit is contained in:
		| @@ -20,6 +20,8 @@ | ||||
| #define LED_TIMER           TIMER16 | ||||
| #define LED_IRQ             TIMER16_IRQn | ||||
|  | ||||
| #define I2C_TIME_OUT    (uint16_t)(10000) | ||||
| #define LDC_I2C       I2C0 | ||||
| #define I2C_SPEED 100000 | ||||
|  | ||||
| #define RCU_IR_GPIO RCU_GPIOF | ||||
| @@ -44,5 +46,7 @@ | ||||
| void led_config(void); | ||||
| void LDC1612_I2CConfig(void); | ||||
| void LDC1612_Init(void); | ||||
| int LDC1612_read_reg(uint8_t device_address, uint8_t reg_address, uint8_t *data, uint16_t length); | ||||
| int i2c_write_reg(uint8_t device_address, uint8_t *data); | ||||
|  | ||||
| #endif //LDC1612_H | ||||
|   | ||||
		Reference in New Issue
	
	Block a user