elf2flash_core/boards/
rp2350.rs

1use crate::boards::{BoardInfo, UsbDevice};
2
3#[derive(Debug, Default, Clone)]
4pub struct RP2350;
5
6impl BoardInfo for RP2350 {
7    fn is_device_board(&self, device: &UsbDevice) -> bool {
8        if device.vendor_id != 0x2e8a {
9            return false;
10        }
11        match device.product_id {
12            0x000f => true,
13            _ => false,
14        }
15    }
16
17    fn family_id(&self) -> u32 {
18        // This is the rp2350 arm secure family id, should technically always be true if you held the bootsel button down and cycled power.
19        0xe48bff59
20    }
21
22    fn board_name(&self) -> String {
23        "rp2350".to_string()
24    }
25}