Skip to content

Commit ad6a1a8

Browse files
author
Elie Carrot
committed
Refactor CMP_TypeDef to also use separate CTRL registers and follow the existing convention
1 parent 0b43571 commit ad6a1a8

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)