From af5b54aba25bd93f94112d20b7e414ce534e884b Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 16 Apr 2023 01:43:54 +0800 Subject: [PATCH] modify xous log API crate with opcodes for console logging --- api/xous-api-log/src/api.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/xous-api-log/src/api.rs b/api/xous-api-log/src/api.rs index e6bd5896b..b0f64ffea 100644 --- a/api/xous-api-log/src/api.rs +++ b/api/xous-api-log/src/api.rs @@ -30,6 +30,10 @@ pub enum Opcode { /// A `xous::StringBuffer` containing this program's name ProgramName = 3, + /// Try to log console output to a USB serial port. Best-effort only; failures will not crash, will not be noted + TryHookUsbMirror = 4, + UnhookUsbMirror = 5, + /// A panic occurred, and a panic log is forthcoming PanicStarted = 1000,