aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/_0_zero_tasks.rs2
-rw-r--r--src/examples/_1_one_task.rs1
-rw-r--r--src/examples/_2_two_tasks.rs1
-rw-r--r--src/examples/_3_preemption.rs1
-rw-r--r--src/examples/_4_nested.rs12
-rw-r--r--src/examples/_5_late_resources.rs1
-rw-r--r--src/examples/_6_safe_static_mut_ref.rs1
-rw-r--r--src/examples/_7_generics.rs3
-rw-r--r--src/examples/_8_full_syntax.rs3
9 files changed, 9 insertions, 16 deletions
diff --git a/src/examples/_0_zero_tasks.rs b/src/examples/_0_zero_tasks.rs
index 90f16d48..0484bb9d 100644
--- a/src/examples/_0_zero_tasks.rs
+++ b/src/examples/_0_zero_tasks.rs
@@ -3,8 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! // IMPORTANT always include this feature gate
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm; // IMPORTANT always do this rename
diff --git a/src/examples/_1_one_task.rs b/src/examples/_1_one_task.rs
index c9004e86..b9075a59 100644
--- a/src/examples/_1_one_task.rs
+++ b/src/examples/_1_one_task.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m;
diff --git a/src/examples/_2_two_tasks.rs b/src/examples/_2_two_tasks.rs
index cf6b33d6..516ff0c9 100644
--- a/src/examples/_2_two_tasks.rs
+++ b/src/examples/_2_two_tasks.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
diff --git a/src/examples/_3_preemption.rs b/src/examples/_3_preemption.rs
index 4360185a..14c9d925 100644
--- a/src/examples/_3_preemption.rs
+++ b/src/examples/_3_preemption.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
diff --git a/src/examples/_4_nested.rs b/src/examples/_4_nested.rs
index e211cf87..26f8fd84 100644
--- a/src/examples/_4_nested.rs
+++ b/src/examples/_4_nested.rs
@@ -6,14 +6,13 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
//! extern crate stm32f103xx;
//!
-//! use stm32f103xx::Interrupt;
//! use rtfm::{app, Resource, Threshold};
+//! use stm32f103xx::Interrupt;
//!
//! app! {
//! device: stm32f103xx,
@@ -64,7 +63,10 @@
//! #[allow(non_snake_case)]
//! fn exti0(
//! t: &mut Threshold,
-//! EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources,
+//! EXTI0::Resources {
+//! LOW: mut low,
+//! HIGH: mut high,
+//! }: EXTI0::Resources,
//! ) {
//! // Because this task has a priority of 1 the preemption threshold `t` also
//! // starts at 1
@@ -76,7 +78,7 @@
//! rtfm::set_pending(Interrupt::EXTI1); // ~> exti1
//!
//! // A claim creates a critical section
-//! LOW.claim_mut(t, |_low, t| {
+//! low.claim_mut(t, |_low, t| {
//! // This claim increases the preemption threshold to 2
//! //
//! // 2 is just high enough to not race with task `exti1` for access to the
@@ -97,7 +99,7 @@
//! rtfm::bkpt();
//!
//! // Claims can be nested
-//! HIGH.claim_mut(t, |_high, _| {
+//! high.claim_mut(t, |_high, _| {
//! // This claim increases the preemption threshold to 3
//!
//! // Now `exti2` can't preempt this task
diff --git a/src/examples/_5_late_resources.rs b/src/examples/_5_late_resources.rs
index 8958e854..7ab90a4e 100644
--- a/src/examples/_5_late_resources.rs
+++ b/src/examples/_5_late_resources.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
diff --git a/src/examples/_6_safe_static_mut_ref.rs b/src/examples/_6_safe_static_mut_ref.rs
index 32eb3d98..8f7267f5 100644
--- a/src/examples/_6_safe_static_mut_ref.rs
+++ b/src/examples/_6_safe_static_mut_ref.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
diff --git a/src/examples/_7_generics.rs b/src/examples/_7_generics.rs
index 22bb777a..5dafdbf2 100644
--- a/src/examples/_7_generics.rs
+++ b/src/examples/_7_generics.rs
@@ -3,14 +3,13 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
//! extern crate stm32f103xx;
//!
//! use rtfm::{app, Resource, Threshold};
-//! use stm32f103xx::{SPI1, GPIOA};
+//! use stm32f103xx::{GPIOA, SPI1};
//!
//! app! {
//! device: stm32f103xx,
diff --git a/src/examples/_8_full_syntax.rs b/src/examples/_8_full_syntax.rs
index f8db4087..cc7fbc22 100644
--- a/src/examples/_8_full_syntax.rs
+++ b/src/examples/_8_full_syntax.rs
@@ -3,7 +3,6 @@
//! ```
//! #![deny(unsafe_code)]
//! #![deny(warnings)]
-//! #![feature(proc_macro)]
//! #![no_std]
//!
//! extern crate cortex_m_rtfm as rtfm;
@@ -62,7 +61,7 @@
//!
//! pub fn idle(t: &mut Threshold, mut r: ::idle::Resources) -> ! {
//! loop {
-//! *r.OWNED != *r.OWNED;
+//! *r.OWNED = !*r.OWNED;
//!
//! if *r.OWNED {
//! if r.SHARED.claim(t, |shared, _| *shared) {
ption value='wip-fun-flags'>wip-fun-flags Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/fetch (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-09-15Expose slots to components (#1368)Gravatar Jonathan Neal 10-0/+169
2021-09-15[ci] collect statsGravatar FredKSchott 1-0/+1
2021-09-14Revert "fix bad ci paths"Gravatar Fred K. Schott 1-5/+5
2021-09-15[ci] yarn formatGravatar FredKSchott 1-0/+1
2021-09-14Version Packages (#1358)astro@0.20.6@astrojs/renderer-vue@0.1.8@astrojs/renderer-svelte@0.1.2@astrojs/renderer-solid@0.1.1@astrojs/renderer-react@0.2.1@astrojs/renderer-preact@0.2.2@astrojs/renderer-lit@0.1.1Gravatar github-actions[bot] 41-70/+91
2021-09-14fix bad ci pathsGravatar Fred K. Schott 1-5/+5
2021-09-14update changesetsGravatar Fred K. Schott 1-1/+1
2021-09-14Fix passing Markdown content through props (#1259) (#1343)Gravatar kelvinsjk 4-0/+22
2021-09-14Improve stats logging to use `pretty-bytes` so that 20B doesn't get output as...Gravatar Caleb Jasik 4-2/+13
2021-09-14[ci] yarn formatGravatar FredKSchott 1-1/+1
2021-09-14Merge "Remove check for referenced files" (#1196)Gravatar (none) 6-6/+45
2021-09-14Docs: Add READMEs for renderers (#1351)Gravatar Drew Powers 8-1/+184
2021-09-14Update deployment docs for Netlify deployment (#1361)Gravatar Cassidy Williams 1-7/+9
2021-09-14Delete perfect-kids-occur.md (#1372)Gravatar Fred K. Schott 1-5/+0
2021-09-14[ci] yarn formatGravatar FredKSchott 1-15/+10
2021-09-14Self-host homepage fonts to improve page load speed (#1370)Gravatar mundry 14-5/+52
2021-09-14Add types to examples and docs (#1347)Gravatar Matthew Phillips 8-20/+60
2021-09-14[ci] collect statsGravatar FredKSchott 1-0/+1
2021-09-13Fix typo (#1360)Gravatar Marcus Otterström 1-1/+1
2021-09-13Disclaimer for Github pages / jekyll quirk (#1355)Gravatar Tc001 2-0/+7
2021-09-13fix outdated lockfile issue (#1357)Gravatar Fred K. Schott 1-3/+1
2021-09-13Add `astro.build/play` link (#1359)Gravatar Nate Moore 1-0/+6
2021-09-13[ci] yarn formatGravatar FredKSchott 2-8/+7
2021-09-13Add a new lockfile (#1356)Gravatar Matthew Phillips 1-19/+19
2021-09-13[ci] collect statsGravatar FredKSchott 1-0/+1
2021-09-12[ci] collect statsGravatar FredKSchott 1-0/+1
2021-09-11[ci] collect statsGravatar FredKSchott 1-0/+1
2021-09-10Prevent removing CSS preloads during bundling (#1326)Gravatar Bartek Igielski 8-18/+96
2021-09-10Fix typos in Netlify sponsorship announcement blog post (#1346)Gravatar mundry 1-4/+4
2021-09-10[ci] collect statsGravatar FredKSchott 2-1/+2
2021-09-09blog: announce netlify sponsorship (#1345)Gravatar Fred K. Schott 4-5/+64
2021-09-09Version Packages (#1344)Gravatar github-actions[bot] 29-53/+42
2021-09-09Revert "Version Packages (#1303)"Gravatar Fred K. Schott 29-42/+53
2021-09-09update lockfileastro@0.20.5@astrojs/markdown-support@0.3.1Gravatar Fred K. Schott 1-9/+9
2021-09-09Version Packages (#1303)Gravatar github-actions[bot] 29-53/+42
2021-09-09[ci] collect statsGravatar FredKSchott 2-1/+2
2021-09-08Update netlify deploy instructions for `.nvmrc` syntax (#1337)Gravatar Caleb Jasik 1-1/+1
2021-09-08[ci] yarn formatGravatar jasikpark 1-1/+0