Update monotonic token macro names

This commit is contained in:
Emil Fresk 2023-03-29 20:09:36 +02:00
parent 3a0e2ac924
commit ee6e6938f6
4 changed files with 4 additions and 4 deletions

View file

@ -138,7 +138,7 @@ impl embedded_hal_async::delay::DelayUs for Timer {
/// Register the Timer interrupt for the monotonic. /// Register the Timer interrupt for the monotonic.
#[macro_export] #[macro_export]
macro_rules! make_rp2040_monotonic_handler { macro_rules! create_rp2040_monotonic_token {
() => {{ () => {{
#[no_mangle] #[no_mangle]
#[allow(non_snake_case)] #[allow(non_snake_case)]

View file

@ -156,7 +156,7 @@ impl embedded_hal_async::delay::DelayUs for Systick {
/// Register the Systick interrupt for the monotonic. /// Register the Systick interrupt for the monotonic.
#[macro_export] #[macro_export]
macro_rules! make_systick_handler { macro_rules! create_systick_token {
() => {{ () => {{
#[no_mangle] #[no_mangle]
#[allow(non_snake_case)] #[allow(non_snake_case)]

View file

@ -24,7 +24,7 @@ mod app {
fn init(cx: init::Context) -> (Shared, Local) { fn init(cx: init::Context) -> (Shared, Local) {
hprintln!("init"); hprintln!("init");
let systick_token = rtic_monotonics::make_systick_handler!(); let systick_token = rtic_monotonics::create_systick_token!();
Systick::start(cx.core.SYST, 12_000_000, systick_token); Systick::start(cx.core.SYST, 12_000_000, systick_token);
foo::spawn().ok(); foo::spawn().ok();

View file

@ -27,7 +27,7 @@ mod app {
fn init(cx: init::Context) -> (Shared, Local) { fn init(cx: init::Context) -> (Shared, Local) {
hprintln!("init"); hprintln!("init");
let systick_token = rtic_monotonics::make_systick_handler!(); let systick_token = rtic_monotonics::create_systick_token!();
Systick::start(cx.core.SYST, 12_000_000, systick_token); Systick::start(cx.core.SYST, 12_000_000, systick_token);
foo::spawn().ok(); foo::spawn().ok();