aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDirk Stolle <[email protected]>2023-05-08 23:25:01 +0200
committerDirk Stolle <[email protected]>2023-05-08 23:25:01 +0200
commit0584312ef0324d2ac67dbb9517176fabf628eec9 (patch)
tree1b6e67474474fad99e7035a8e8898f4fb78656ad /examples
parentd0703f83dbe0099c3dca0c912d873365a2188018 (diff)
Fix some typos
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf52840/src/bin/pubsub.rs4
-rw-r--r--examples/nrf52840/src/bin/usb_serial.rs2
-rw-r--r--examples/nrf52840/src/bin/usb_serial_multitask.rs2
-rw-r--r--examples/nrf52840/src/bin/usb_serial_winusb.rs2
-rw-r--r--examples/rp/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32f0/src/bin/button_controlled_blink.rs4
-rw-r--r--examples/stm32f4/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32f7/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32h5/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32h7/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32l4/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32u5/src/bin/usb_serial.rs2
-rw-r--r--examples/stm32wl/src/bin/uart_async.rs2
13 files changed, 15 insertions, 15 deletions
diff --git a/examples/nrf52840/src/bin/pubsub.rs b/examples/nrf52840/src/bin/pubsub.rs
index 688e6d075..cca60ebc9 100644
--- a/examples/nrf52840/src/bin/pubsub.rs
+++ b/examples/nrf52840/src/bin/pubsub.rs
@@ -74,9 +74,9 @@ async fn fast_logger(mut messages: Subscriber<'static, ThreadModeRawMutex, Messa
74} 74}
75 75
76/// A logger task that awaits the messages, but also does some other work. 76/// A logger task that awaits the messages, but also does some other work.
77/// Because of this, depeding on how the messages were published, the subscriber might miss some messages 77/// Because of this, depending on how the messages were published, the subscriber might miss some messages.
78/// 78///
79/// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics 79/// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics.
80#[embassy_executor::task] 80#[embassy_executor::task]
81async fn slow_logger(mut messages: DynSubscriber<'static, Message>) { 81async fn slow_logger(mut messages: DynSubscriber<'static, Message>) {
82 loop { 82 loop {
diff --git a/examples/nrf52840/src/bin/usb_serial.rs b/examples/nrf52840/src/bin/usb_serial.rs
index 9727a4f57..dc95cde84 100644
--- a/examples/nrf52840/src/bin/usb_serial.rs
+++ b/examples/nrf52840/src/bin/usb_serial.rs
@@ -40,7 +40,7 @@ async fn main(_spawner: Spawner) {
40 config.max_power = 100; 40 config.max_power = 100;
41 config.max_packet_size_0 = 64; 41 config.max_packet_size_0 = 64;
42 42
43 // Required for windows compatiblity. 43 // Required for windows compatibility.
44 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 44 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
45 config.device_class = 0xEF; 45 config.device_class = 0xEF;
46 config.device_sub_class = 0x02; 46 config.device_sub_class = 0x02;
diff --git a/examples/nrf52840/src/bin/usb_serial_multitask.rs b/examples/nrf52840/src/bin/usb_serial_multitask.rs
index 6da2c2a2f..ac22d9499 100644
--- a/examples/nrf52840/src/bin/usb_serial_multitask.rs
+++ b/examples/nrf52840/src/bin/usb_serial_multitask.rs
@@ -66,7 +66,7 @@ async fn main(spawner: Spawner) {
66 config.max_power = 100; 66 config.max_power = 100;
67 config.max_packet_size_0 = 64; 67 config.max_packet_size_0 = 64;
68 68
69 // Required for windows compatiblity. 69 // Required for windows compatibility.
70 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 70 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
71 config.device_class = 0xEF; 71 config.device_class = 0xEF;
72 config.device_sub_class = 0x02; 72 config.device_sub_class = 0x02;
diff --git a/examples/nrf52840/src/bin/usb_serial_winusb.rs b/examples/nrf52840/src/bin/usb_serial_winusb.rs
index 6e4f71a48..1d39d3841 100644
--- a/examples/nrf52840/src/bin/usb_serial_winusb.rs
+++ b/examples/nrf52840/src/bin/usb_serial_winusb.rs
@@ -45,7 +45,7 @@ async fn main(_spawner: Spawner) {
45 config.max_power = 100; 45 config.max_power = 100;
46 config.max_packet_size_0 = 64; 46 config.max_packet_size_0 = 64;
47 47
48 // Required for windows compatiblity. 48 // Required for windows compatibility.
49 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 49 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
50 config.device_class = 0xEF; 50 config.device_class = 0xEF;
51 config.device_sub_class = 0x02; 51 config.device_sub_class = 0x02;
diff --git a/examples/rp/src/bin/usb_serial.rs b/examples/rp/src/bin/usb_serial.rs
index a991082ee..8160a1875 100644
--- a/examples/rp/src/bin/usb_serial.rs
+++ b/examples/rp/src/bin/usb_serial.rs
@@ -30,7 +30,7 @@ async fn main(_spawner: Spawner) {
30 config.max_power = 100; 30 config.max_power = 100;
31 config.max_packet_size_0 = 64; 31 config.max_packet_size_0 = 64;
32 32
33 // Required for windows compatiblity. 33 // Required for windows compatibility.
34 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 34 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
35 config.device_class = 0xEF; 35 config.device_class = 0xEF;
36 config.device_sub_class = 0x02; 36 config.device_sub_class = 0x02;
diff --git a/examples/stm32f0/src/bin/button_controlled_blink.rs b/examples/stm32f0/src/bin/button_controlled_blink.rs
index e1f223433..f362c53f5 100644
--- a/examples/stm32f0/src/bin/button_controlled_blink.rs
+++ b/examples/stm32f0/src/bin/button_controlled_blink.rs
@@ -17,8 +17,8 @@ static BLINK_MS: AtomicU32 = AtomicU32::new(0);
17 17
18#[embassy_executor::task] 18#[embassy_executor::task]
19async fn led_task(led: AnyPin) { 19async fn led_task(led: AnyPin) {
20 // Configure the LED pin as a push pull ouput and obtain handler. 20 // Configure the LED pin as a push pull output and obtain handler.
21 // On the Nucleo F091RC theres an on-board LED connected to pin PA5. 21 // On the Nucleo F091RC there's an on-board LED connected to pin PA5.
22 let mut led = Output::new(led, Level::Low, Speed::Low); 22 let mut led = Output::new(led, Level::Low, Speed::Low);
23 23
24 loop { 24 loop {
diff --git a/examples/stm32f4/src/bin/usb_serial.rs b/examples/stm32f4/src/bin/usb_serial.rs
index baabc1a2d..d2b1dca43 100644
--- a/examples/stm32f4/src/bin/usb_serial.rs
+++ b/examples/stm32f4/src/bin/usb_serial.rs
@@ -34,7 +34,7 @@ async fn main(_spawner: Spawner) {
34 config.product = Some("USB-serial example"); 34 config.product = Some("USB-serial example");
35 config.serial_number = Some("12345678"); 35 config.serial_number = Some("12345678");
36 36
37 // Required for windows compatiblity. 37 // Required for windows compatibility.
38 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 38 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
39 config.device_class = 0xEF; 39 config.device_class = 0xEF;
40 config.device_sub_class = 0x02; 40 config.device_sub_class = 0x02;
diff --git a/examples/stm32f7/src/bin/usb_serial.rs b/examples/stm32f7/src/bin/usb_serial.rs
index 5fd9d2ec9..dca90d9cb 100644
--- a/examples/stm32f7/src/bin/usb_serial.rs
+++ b/examples/stm32f7/src/bin/usb_serial.rs
@@ -35,7 +35,7 @@ async fn main(_spawner: Spawner) {
35 config.product = Some("USB-serial example"); 35 config.product = Some("USB-serial example");
36 config.serial_number = Some("12345678"); 36 config.serial_number = Some("12345678");
37 37
38 // Required for windows compatiblity. 38 // Required for windows compatibility.
39 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 39 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
40 config.device_class = 0xEF; 40 config.device_class = 0xEF;
41 config.device_sub_class = 0x02; 41 config.device_sub_class = 0x02;
diff --git a/examples/stm32h5/src/bin/usb_serial.rs b/examples/stm32h5/src/bin/usb_serial.rs
index 6af269c1d..4f987cbd1 100644
--- a/examples/stm32h5/src/bin/usb_serial.rs
+++ b/examples/stm32h5/src/bin/usb_serial.rs
@@ -57,7 +57,7 @@ async fn main(_spawner: Spawner) {
57 config.product = Some("USB-serial example"); 57 config.product = Some("USB-serial example");
58 config.serial_number = Some("12345678"); 58 config.serial_number = Some("12345678");
59 59
60 // Required for windows compatiblity. 60 // Required for windows compatibility.
61 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 61 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
62 config.device_class = 0xEF; 62 config.device_class = 0xEF;
63 config.device_sub_class = 0x02; 63 config.device_sub_class = 0x02;
diff --git a/examples/stm32h7/src/bin/usb_serial.rs b/examples/stm32h7/src/bin/usb_serial.rs
index 9ef520ae2..475af116d 100644
--- a/examples/stm32h7/src/bin/usb_serial.rs
+++ b/examples/stm32h7/src/bin/usb_serial.rs
@@ -34,7 +34,7 @@ async fn main(_spawner: Spawner) {
34 config.product = Some("USB-serial example"); 34 config.product = Some("USB-serial example");
35 config.serial_number = Some("12345678"); 35 config.serial_number = Some("12345678");
36 36
37 // Required for windows compatiblity. 37 // Required for windows compatibility.
38 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 38 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
39 config.device_class = 0xEF; 39 config.device_class = 0xEF;
40 config.device_sub_class = 0x02; 40 config.device_sub_class = 0x02;
diff --git a/examples/stm32l4/src/bin/usb_serial.rs b/examples/stm32l4/src/bin/usb_serial.rs
index 663f60d52..bdb290e63 100644
--- a/examples/stm32l4/src/bin/usb_serial.rs
+++ b/examples/stm32l4/src/bin/usb_serial.rs
@@ -36,7 +36,7 @@ async fn main(_spawner: Spawner) {
36 config.product = Some("USB-serial example"); 36 config.product = Some("USB-serial example");
37 config.serial_number = Some("12345678"); 37 config.serial_number = Some("12345678");
38 38
39 // Required for windows compatiblity. 39 // Required for windows compatibility.
40 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 40 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
41 config.device_class = 0xEF; 41 config.device_class = 0xEF;
42 config.device_sub_class = 0x02; 42 config.device_sub_class = 0x02;
diff --git a/examples/stm32u5/src/bin/usb_serial.rs b/examples/stm32u5/src/bin/usb_serial.rs
index 8cd3bf2f4..4882cd2e0 100644
--- a/examples/stm32u5/src/bin/usb_serial.rs
+++ b/examples/stm32u5/src/bin/usb_serial.rs
@@ -36,7 +36,7 @@ async fn main(_spawner: Spawner) {
36 config.product = Some("USB-serial example"); 36 config.product = Some("USB-serial example");
37 config.serial_number = Some("12345678"); 37 config.serial_number = Some("12345678");
38 38
39 // Required for windows compatiblity. 39 // Required for windows compatibility.
40 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help 40 // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help
41 config.device_class = 0xEF; 41 config.device_class = 0xEF;
42 config.device_sub_class = 0x02; 42 config.device_sub_class = 0x02;
diff --git a/examples/stm32wl/src/bin/uart_async.rs b/examples/stm32wl/src/bin/uart_async.rs
index f12fec4c8..ac8766af6 100644
--- a/examples/stm32wl/src/bin/uart_async.rs
+++ b/examples/stm32wl/src/bin/uart_async.rs
@@ -48,7 +48,7 @@ async fn main(_spawner: Spawner) {
48 //Write suc. 48 //Write suc.
49 } 49 }
50 Err(..) => { 50 Err(..) => {
51 //Wasnt able to write 51 //Wasn't able to write
52 } 52 }
53 } 53 }
54 } 54 }