Skip to content

Conversation

@mathk
Copy link
Contributor

@mathk mathk commented Dec 15, 2025

No description provided.

@mathk mathk force-pushed the systick branch 3 times, most recently from c282f89 to 9bb1c68 Compare December 16, 2025 12:41
// See: https://developer.arm.com/documentation/dui0497/a/cortex-m0-peripherals/optional-system-timer--systick/systick-control-and-status-register
pub fn init() SystickError!void {
const use_processor_clk = if (hal.get_sys_clk() > MAX_COUNTER) false else true;
const sys_freq = if (use_processor_clk) hal.get_sys_clk() else hal.get_systick_clk();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this would require the hals have these two functions. Probably not a terrible requirement for cortex chips, but at the moment they don't. We could start a discussion (on discord, but also file an issue). This PR could maybe have this part live in the stm32 hal until we get buy-in for the other HALs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants