mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
Merge #718
718: Update monotonic token macro names r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
This commit is contained in:
commit
56f7c61aa8
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