opentitanlib/transport/chip_whisperer/
board.rs

1// Copyright lowRISC contributors (OpenTitan project).
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4
5pub trait Board {
6    const VENDOR_ID: u16 = 0x2b3e;
7    const PRODUCT_ID: u16;
8
9    const UART_BAUD: u32 = 115200;
10}
11
12pub struct Cw310 {}
13
14impl Board for Cw310 {
15    const PRODUCT_ID: u16 = 0xc310;
16}
17
18pub struct Cw340 {}
19
20impl Board for Cw340 {
21    const PRODUCT_ID: u16 = 0xc340;
22}