aboutsummaryrefslogtreecommitdiff
path: root/examples/zero-tasks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zero-tasks.rs')
-rw-r--r--examples/zero-tasks.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/zero-tasks.rs b/examples/zero-tasks.rs
index 13201677..9176103d 100644
--- a/examples/zero-tasks.rs
+++ b/examples/zero-tasks.rs
@@ -1,7 +1,7 @@
//! Minimal example with zero tasks
-
#![deny(unsafe_code)]
-#![feature(proc_macro)] // IMPORTANT always include this feature gate
+// IMPORTANT always include this feature gate
+#![feature(proc_macro)]
#![no_std]
extern crate cortex_m_rtfm as rtfm; // IMPORTANT always do this rename
@@ -15,7 +15,7 @@ use rtfm::app;
// This macro will expand to a `main` function so you don't need to supply
// `main` yourself.
app! {
- // this is a path to the device crate
+ // this is the path to the device crate
device: stm32f103xx,
}
@@ -28,20 +28,14 @@ fn init(p: init::Peripherals) {
p.GPIOA;
p.RCC;
// ..
-
- // You'll hit this breakpoint first
- rtfm::bkpt();
}
// The idle loop.
//
-// This runs afterwards and has a priority of 0. All tasks can preempt this
+// This runs after `init` and has a priority of 0. All tasks can preempt this
// function. This function can never return so it must contain some sort of
// endless loop.
fn idle() -> ! {
- // And then this breakpoint
- rtfm::bkpt();
-
loop {
// This puts the processor to sleep until there's a task to service
rtfm::wfi();
ee Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js/ReadableStreamDefaultReader.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-10-26Update server.zigGravatar Jarred Sumner 1-1/+1
2022-10-26Make `"tls"` an explicit object we pass instead of implicit top-level optionsGravatar Jarred Sumner 2-9/+25
2022-10-26againnGravatar Jarred Sumner 3-6/+6
2022-10-26try againnGravatar Jarred Sumner 2-3/+2
2022-10-26Limit concurrency for MacOS Object actionsGravatar Ashcon Partovi 3-0/+3
2022-10-26temporary fixGravatar Jarred Sumner 4-4/+0
2022-10-26FixupGravatar Jarred Sumner 4-5/+5
2022-10-26Move this to dependencies so the .a files uploadGravatar Jarred Sumner 3-6/+4
2022-10-26Make these tests betterGravatar Jarred Sumner 1-2/+2
2022-10-26Limit concurrency for GitHub Actions due to issues with cache poisoningGravatar Ashcon Partovi 4-0/+4
2022-10-26Fix issue with `CryptoKey` and `SubtleCrypto` constructorsGravatar Jarred Sumner 2-27/+10
2022-10-26Minor fixes to README.md (#1395)Gravatar João Paquim 1-3/+3
2022-10-26Update Dev Containers extension name (#1393)Gravatar João Paquim 1-2/+2
2022-10-25Fix failing macOS buildGravatar Jarred Sumner 4-4/+7
2022-10-25Update MakefileGravatar Jarred Sumner 1-2/+1
2022-10-25Update MakefileGravatar Jarred Sumner 1-2/+1
2022-10-25Update MakefileGravatar Jarred Sumner 1-17/+12