Skip to content

Commit

Permalink
fix(ch585): ch585 reports itself as ch59x
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Nov 22, 2024
1 parent 9abf11d commit 85c952e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub fn chip_id_to_chip_name(chip_id: u32) -> Option<&'static str> {
0x820_00000 => Some("CH582"),
0x830_00000 => Some("CH583"),
0x840_00000 => Some("CH584"),
0x850_00000 => Some("CH585"),
0x920_00000 => Some("CH592"),
0x930_00000 => Some("CH585"),
0x003_00000 => match chip_id & 0xFFFFFF0F {
0x003_00500 => Some("CH32V003F4P6"),
0x003_10500 => Some("CH32V003F4U6"),
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub enum RiscvChip {
/// The only reference I can find is <https://www.wch.cn/news/606.html>.
CH8571 = 0x0A, // 10,
/// CH59x RISC-V4C BLE 5.4 series, fallback as CH58X
/// FIXME: CH585 also reported as this
CH59X = 0x0B, // 11
/// CH643 RISC-V4C series, RGB Display Driver MCU
CH643 = 0x0C, // 12
Expand Down

0 comments on commit 85c952e

Please sign in to comment.