Skip to content

Commit

Permalink
feat: add hpm6e00 series support (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Weiwei Guo <guoweiwei@syriusrobotics.com>
  • Loading branch information
Cherish-Gww authored Nov 6, 2024
1 parent 269c710 commit 7baab5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 99-hpm_bootrom.rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0003", MODE="666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0004", MODE="666"
# HPM5300
SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0005", MODE="666"
# HPM6E00
SUBSYSTEM=="usb", ATTRS{idVendor}=="34b7", ATTRS{idProduct}=="0006", MODE="666"
2 changes: 2 additions & 0 deletions hpm_isp/src/hid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub enum Family {
HPM6200 = 0x0003,
HPM6800 = 0x0004,
HPM5300 = 0x0005,
HPM6E00 = 0x0006,
}

impl Family {
Expand All @@ -90,6 +91,7 @@ impl Display for Family {
Family::HPM6200 => "HPM6200",
Family::HPM6800 => "HPM6800",
Family::HPM5300 => "HPM5300",
Family::HPM6E00 => "HPM6E00",
};
write!(f, "{name}")
}
Expand Down

0 comments on commit 7baab5a

Please sign in to comment.