| //! Global configuration settings and constants that are shared between the |
| //! Matcha app and platform. |
| |
| #![no_std] |
| |
| // TODO(aappleby): Shared capsule/command numbers can't go in matcha_capsule |
| // right now due to some sort of toolchain mismatch that we need to figure out |
| // later. |
| |
| pub const CAPSULE_ALARM: usize = 0x00000; |
| pub const CAPSULE_CONSOLE: usize = 0x00001; |
| pub const CAPSULE_LLDB: usize = 0x00008; |
| pub const CAPSULE_DPRINTF: usize = 0x00009; |
| pub const CAPSULE_STORAGE: usize = 0x50003; |
| pub const CAPSULE_ELFLOADER: usize = 0x50004; |
| pub const CAPSULE_MAILBOX: usize = 0x50005; |
| |
| pub const CMD_ELFLOADER_BOOT_SEL4: usize = 10; |
| pub const CMD_DPRINTF_PRINT: usize = 0; |
| |
| pub const IRQ_UART0_TX_WATERMARK: u32 = 1; // kTopMatchaPlicIrqIdUart0TxWatermark @ top_matcha.h |
| pub const IRQ_UART0_RX_PARITY_ERR: u32 = 8; // kTopMatchaPlicIrqIdUart0RxParityErr @ top_matcha.h |