Skip to content

Commit 6f722b6

Browse files
authored
Merge pull request #941 from eyhc/ch570_cmp
Update CH570/CH572 CMP_TypeDef register mapping
2 parents 0b43571 + ad6a1a8 commit 6f722b6

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

ch32fun/ch5xxhw.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,15 @@ typedef struct
243243

244244
#ifdef CH570_CH572
245245
typedef struct {
246-
__IO uint32_t CTRL;
246+
union {
247+
__IO uint32_t CTRL;
248+
struct {
249+
__IO uint8_t CTRL0;
250+
__IO uint8_t CTRL1;
251+
__IO uint8_t CTRL2;
252+
__IO uint8_t CTRL3;
253+
};
254+
};
247255
} CMP_TypeDef;
248256
#endif
249257

0 commit comments

Comments
 (0)