update location of system timer interval definition

This commit is contained in:
bunnie 2025-10-24 21:12:00 +08:00
parent 5fb7743d3b
commit 04d46b9549
3 changed files with 5 additions and 2 deletions

View file

@ -33,7 +33,7 @@ pub const UART_IFRAM_ADDR: usize = bao1x_hal::board::UART_DMA_TX_BUF_PHYS;
/// Also relying on the IFR region setting the SRAM trimming to work at this safe default
/// so we don't have to initialize it in boot0.
pub const DEFAULT_FCLK_FREQUENCY: u32 = 350_000_000;
pub const SYSTEM_TICK_INTERVAL_MS: u32 = 1;
use bao1x_api::SYSTEM_TICK_INTERVAL_MS;
pub fn early_init() {
let daric_cgu = sysctrl::HW_SYSCTRL_BASE as *mut u32;

View file

@ -33,7 +33,7 @@ pub const FREE_MEM_LEN: usize = (RAM_BASE + RAM_SIZE) - FREE_MEM_START - STACK_L
pub const UART_IFRAM_ADDR: usize = bao1x_hal::board::UART_DMA_TX_BUF_PHYS;
const SAFE_FCLK_FREQUENCY: u32 = 350_000_000;
pub const SYSTEM_TICK_INTERVAL_MS: u32 = 1;
use bao1x_api::SYSTEM_TICK_INTERVAL_MS;
// Dabao port/pin constants have to be vendored in because this crate is compiled with baosec as the target.
const DABAO_SE0_PIN: u8 = 13;

View file

@ -22,6 +22,9 @@ 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;
/// Constants used by both emulation and hardware implementations
pub const PERCLK: u32 = 100_000_000;
pub const SERVER_NAME_KBD: &str = "_Matrix keyboard driver_";