#![cfg_attr(feature = "nightly", feature(error_in_core))]
#![cfg_attr(feature = "nightly", feature(panic_info_message))]
#![no_std]
pub mod debug;
pub mod error;
pub mod event;
pub mod gcp;
pub mod hal;
pub mod log;
pub mod macros;
pub mod panic_log;
pub mod usb;
pub mod util;
pub use error::FirmwareError;
pub use libgreat::error::GreatResult;
pub use libgreat::firmware::BoardInformation;
pub use moondancer_pac as pac;
pub const SYSTEM_CLOCK_FREQUENCY: u32 = pac::clock::sysclk();
pub const BOARD_INFORMATION: BoardInformation = BoardInformation {
board_id: 0x10_u32.to_le_bytes(),
version_string: "r1.0\0",
part_id: [0x30, 0xa, 0x00, 0xa0, 0x5e, 0x4f, 0x60, 0x00],
serial_number: [
0xea, 0x8e, 0xc5, 0x4f, 0x64, 0x74, 0x15, 0x15, 0x02, 0x02, 0x02, 0x03, 0xb3, 0xe0, 0x51,
0xff,
],
};
#[derive(Copy, Clone, Debug)]
#[repr(u8)]
pub enum UsbInterface {
Target = 0, Aux = 1, Control = 2, }