mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 02:49:34 +01:00
Update monotonic token macro names
This commit is contained in:
parent
3a0e2ac924
commit
ee6e6938f6
4 changed files with 4 additions and 4 deletions
|
@ -138,7 +138,7 @@ impl embedded_hal_async::delay::DelayUs for Timer {
|
|||
|
||||
/// Register the Timer interrupt for the monotonic.
|
||||
#[macro_export]
|
||||
macro_rules! make_rp2040_monotonic_handler {
|
||||
macro_rules! create_rp2040_monotonic_token {
|
||||
() => {{
|
||||
#[no_mangle]
|
||||
#[allow(non_snake_case)]
|
||||
|
|
|
@ -156,7 +156,7 @@ impl embedded_hal_async::delay::DelayUs for Systick {
|
|||
|
||||
/// Register the Systick interrupt for the monotonic.
|
||||
#[macro_export]
|
||||
macro_rules! make_systick_handler {
|
||||
macro_rules! create_systick_token {
|
||||
() => {{
|
||||
#[no_mangle]
|
||||
#[allow(non_snake_case)]
|
||||
|
|
|
@ -24,7 +24,7 @@ mod app {
|
|||
fn init(cx: init::Context) -> (Shared, Local) {
|
||||
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);
|
||||
|
||||
foo::spawn().ok();
|
||||
|
|
|
@ -27,7 +27,7 @@ mod app {
|
|||
fn init(cx: init::Context) -> (Shared, Local) {
|
||||
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);
|
||||
|
||||
foo::spawn().ok();
|
||||
|
|
Loading…
Reference in a new issue