stm8s.h: add i2c fields

This commit is contained in:
King Kévin 2021-07-20 02:18:33 +02:00
parent d03330e461
commit 257b29c908
1 changed files with 2 additions and 0 deletions

View File

@ -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))