syntax: Remove parse settings struct

This commit is contained in:
Emil Fresk 2023-01-03 07:51:35 +01:00 committed by Henrik Tjäder
parent 9829d0ac07
commit d7ed7a8b9f
13 changed files with 22 additions and 86 deletions

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_extern_interrupt, parse_binds, device = mock, dispatchers = [EXTI0])]
#[rtic_macros::mock_app(device = mock, dispatchers = [EXTI0])]
mod app {
#[shared]
struct Shared {}

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_binds, device = mock)]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task(binds = UART0)]
fn foo(_: foo::Context) {}

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_extern_interrupt, parse_binds, device = mock)]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[monotonic(binds = Tim1)]
type Fast1 = hal::Tim1Monotonic;

View file

@ -1,7 +0,0 @@
#![no_main]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task(binds = UART0)]
fn foo(_: foo::Context) {}
}

View file

@ -1,5 +0,0 @@
error: Unexpected bind in task argument. Binds are only parsed if Settings::parse_binds is set.
--> $DIR/task-bind.rs:5:12
|
5 | #[task(binds = UART0)]
| ^^^^^

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_binds, device = mock)]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task(binds = SysTick, only_same_priority_spawn_please_fix_me)]
fn foo(_: foo::Context) {}

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_binds, device = mock)]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task(binds = SysTick)]
fn foo(_: foo::Context) {}

View file

@ -1,6 +1,6 @@
#![no_main]
#[rtic_macros::mock_app(parse_binds, device = mock)]
#[rtic_macros::mock_app(device = mock)]
mod app {
#[task(binds = UART0, priority = 0)]
fn foo(_: foo::Context) {}