This condition assumes all V00x chips behave the same, but in newer models (V002, V004, etc) the chip ID is 0x1FFF F704
like most WCH chips.
0x1FFF F7C4
is only used on V003 and CH641. I think the Vendor Bytes area got changed in general, so everything that touches those should be reviewed.
|
#[cfg(any(ch32v0, ch641))] |
|
const CHIP_ID: *const u32 = 0x1FFFF7C4 as *const u32; |