aboutsummaryrefslogtreecommitdiff
path: root/macros/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-07-18resources owned by idle have 'static lifetimeGravatar Jorge Aparicio 1-10/+6
2017-07-18adapt to changes in rtfm-syntaxGravatar Jorge Aparicio 1-3/+2
2017-07-14rename rtfm! to app! and adapt to changes in rtfm-syntaxGravatar Jorge Aparicio 3-27/+26
2017-07-14split macro parser into its own crate and improve error handling / reportingGravatar Jorge Aparicio 8-889/+408
2017-07-11compiler plugin -> proc macroGravatar Jorge Aparicio 2-45/+7
2017-07-09make the init::Resources argument optionalGravatar Jorge Aparicio 1-23/+40
2017-07-08make the tasks and resources fields optionalGravatar Jorge Aparicio 1-2/+2
2017-07-08fix unused variable warning around interrupt::freeGravatar Jorge Aparicio 1-3/+3
2017-07-06syntax tweaks, relax check, add set_pending(), deal with imported typesGravatar Jorge Aparicio 6-54/+146
- allow trailing commas in list of resources - make task.resources optional - add rtfm::set_pending function which can be used to force an interrupt into the pending state. This is a replacement of the old rtfm::request. rtfm::set_pending takes the Interrupt enum provided by the device crate as argument. (The old rtfm::request took a task function as argument) - the user may want to use types they imported into the root of the crate. These types are not available in e.g. `mod idle` so `idle::Resources` *can't* be defined in that module. To workaround this problem `idle::Resources` will be defined in the root, with some other name, and then be re-exported in the `idle` module. - remove the "a resource only used by one task should be local data" check. In some cases you do want a resource owned by a single task instead of local data since `init` can access resources but not a task local data.
2017-07-06rtfm!: remove init.resources and make idle.local optionalGravatar Jorge Aparicio 3-43/+56
2017-07-04rtfm! macro take 2Gravatar Jorge Aparicio 6-0/+1162