mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +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.
|
/// 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)]
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue