hpw422移植新的sdk
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef __BSP_I2C_SLAVE_H_
|
||||
#define __BSP_I2C_SLAVE_H_
|
||||
|
||||
extern void i2c_slave_init(uint16_t i2cAddR);
|
||||
extern void i2c_slave_WriteSingle(uint8_t val);
|
||||
extern uint8_t i2c_slave_ReadSingle(void);
|
||||
typedef void (*i2cHandler_callback_t)(uint32_t stat);
|
||||
|
||||
#define I2C_SLAVE_RX_DONE (1 << 7)
|
||||
#define I2C_SLAVE_RD_REQ (1 << 5)
|
||||
#define I2C_SLAVE_RX_FULL (1 << 2)
|
||||
#define I2C_SLAVE_STOP (1 << 9)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user