stm8s.h: add i2c fields
This commit is contained in:
parent
d03330e461
commit
b0c67e94f5
2
stm8s.h
2
stm8s.h
@ -1058,6 +1058,8 @@ typedef struct {
|
||||
#define I2C_ITR_ITBUFEN (1 << 2)
|
||||
#define I2C_CCRL (*(volatile uint8_t *)(I2C_BASE + 0x0B))
|
||||
#define I2C_CCRH (*(volatile uint8_t *)(I2C_BASE + 0x0C))
|
||||
#define I2C_CCRH_DUTY (1U << 6)
|
||||
#define I2C_CCRH_FS (1U << 7)
|
||||
#define I2C_TRISER (*(volatile uint8_t *)(I2C_BASE + 0x0D))
|
||||
#define I2C_PECR (*(volatile uint8_t *)(I2C_BASE + 0x0E))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user