From 775726af2398fb3eb08ee6c55dfaa78cc220ded6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 26 Oct 2025 19:30:49 +0800 Subject: [PATCH] standardize BAUD_RATE location also slow down pre-emption timer a bit, on a slower system like ours 100Hz is less overhead --- libs/bao1x-api/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/bao1x-api/src/lib.rs b/libs/bao1x-api/src/lib.rs index 8a7aa1694..f21d9ed26 100644 --- a/libs/bao1x-api/src/lib.rs +++ b/libs/bao1x-api/src/lib.rs @@ -22,8 +22,11 @@ pub mod pubkeys; /// into the "official" list pub const BAOCHIP_1X_UF2_FAMILY: u32 = 0xa7d7_6373; -// system preemption interval -pub const SYSTEM_TICK_INTERVAL_MS: u32 = 1; +/// system preemption interval +pub const SYSTEM_TICK_INTERVAL_MS: u32 = 10; + +/// standard baud rate +pub const UART_BAUD: u32 = 1_000_000; /// Constants used by both emulation and hardware implementations pub const PERCLK: u32 = 100_000_000;