mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
update location of system timer interval definition
This commit is contained in:
parent
5fb7743d3b
commit
04d46b9549
3 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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_";
|
||||
|
|
|
|||
Loading…
Reference in a new issue