aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/modules/ROOT/pages/getting_started.adoc2
-rw-r--r--embassy-hal-common/src/atomic_ring_buffer.rs4
-rw-r--r--embassy-nrf/src/nvmc.rs2
-rw-r--r--embassy-nrf/src/twim.rs2
-rw-r--r--embassy-nrf/src/twis.rs14
-rw-r--r--embassy-rp/src/flash.rs2
-rw-r--r--embassy-rp/src/i2c.rs2
-rw-r--r--embassy-rp/src/uart/buffered.rs2
-rw-r--r--embassy-rp/src/uart/mod.rs4
-rw-r--r--embassy-stm32/src/time_driver.rs2
-rw-r--r--embassy-stm32/src/usart/mod.rs6
-rw-r--r--embassy-usb-driver/src/lib.rs2
-rw-r--r--embassy-usb/src/class/cdc_ncm/mod.rs4
-rw-r--r--embassy-usb/src/class/hid.rs2
-rw-r--r--embassy-usb/src/msos.rs2
-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
28 files changed, 41 insertions, 41 deletions
diff --git a/docs/modules/ROOT/pages/getting_started.adoc b/docs/modules/ROOT/pages/getting_started.adoc
index 9015d7845..881e449b6 100644
--- a/docs/modules/ROOT/pages/getting_started.adoc
+++ b/docs/modules/ROOT/pages/getting_started.adoc
@@ -49,7 +49,7 @@ cd examples/nrf52840
49cargo run --bin blinky --release 49cargo run --bin blinky --release
50---- 50----
51 51
52== Whats next? 52== What's next?
53 53
54Congratulations, you have your first Embassy application running! Here are some alternatives on where to go from here: 54Congratulations, you have your first Embassy application running! Here are some alternatives on where to go from here:
55 55
diff --git a/embassy-hal-common/src/atomic_ring_buffer.rs b/embassy-hal-common/src/atomic_ring_buffer.rs
index afd3ce1de..0eb39cb33 100644
--- a/embassy-hal-common/src/atomic_ring_buffer.rs
+++ b/embassy-hal-common/src/atomic_ring_buffer.rs
@@ -133,7 +133,7 @@ impl<'a> Writer<'a> {
133 133
134 /// Push one data byte. 134 /// Push one data byte.
135 /// 135 ///
136 /// Returns true if pushed succesfully. 136 /// Returns true if pushed successfully.
137 pub fn push_one(&mut self, val: u8) -> bool { 137 pub fn push_one(&mut self, val: u8) -> bool {
138 let n = self.push(|f| match f { 138 let n = self.push(|f| match f {
139 [] => 0, 139 [] => 0,
@@ -265,7 +265,7 @@ impl<'a> Reader<'a> {
265 265
266 /// Pop one data byte. 266 /// Pop one data byte.
267 /// 267 ///
268 /// Returns true if popped succesfully. 268 /// Returns true if popped successfully.
269 pub fn pop_one(&mut self) -> Option<u8> { 269 pub fn pop_one(&mut self) -> Option<u8> {
270 let mut res = None; 270 let mut res = None;
271 self.pop(|f| match f { 271 self.pop(|f| match f {
diff --git a/embassy-nrf/src/nvmc.rs b/embassy-nrf/src/nvmc.rs
index 6f48853d5..91a5a272f 100644
--- a/embassy-nrf/src/nvmc.rs
+++ b/embassy-nrf/src/nvmc.rs
@@ -24,7 +24,7 @@ pub const FLASH_SIZE: usize = crate::chip::FLASH_SIZE;
24#[derive(Debug, Copy, Clone, PartialEq, Eq)] 24#[derive(Debug, Copy, Clone, PartialEq, Eq)]
25#[cfg_attr(feature = "defmt", derive(defmt::Format))] 25#[cfg_attr(feature = "defmt", derive(defmt::Format))]
26pub enum Error { 26pub enum Error {
27 /// Opration using a location not in flash. 27 /// Operation using a location not in flash.
28 OutOfBounds, 28 OutOfBounds,
29 /// Unaligned operation or using unaligned buffers. 29 /// Unaligned operation or using unaligned buffers.
30 Unaligned, 30 Unaligned,
diff --git a/embassy-nrf/src/twim.rs b/embassy-nrf/src/twim.rs
index 9ae569609..cab36884f 100644
--- a/embassy-nrf/src/twim.rs
+++ b/embassy-nrf/src/twim.rs
@@ -336,7 +336,7 @@ impl<'d, T: Instance> Twim<'d, T> {
336 return Poll::Ready(()); 336 return Poll::Ready(());
337 } 337 }
338 338
339 // stop if an error occured 339 // stop if an error occurred
340 if r.events_error.read().bits() != 0 { 340 if r.events_error.read().bits() != 0 {
341 r.events_error.reset(); 341 r.events_error.reset();
342 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 342 r.tasks_stop.write(|w| unsafe { w.bits(1) });
diff --git a/embassy-nrf/src/twis.rs b/embassy-nrf/src/twis.rs
index bfa30b044..f68a9940a 100644
--- a/embassy-nrf/src/twis.rs
+++ b/embassy-nrf/src/twis.rs
@@ -320,7 +320,7 @@ impl<'d, T: Instance> Twis<'d, T> {
320 fn blocking_listen_wait_end(&mut self, status: Status) -> Result<Command, Error> { 320 fn blocking_listen_wait_end(&mut self, status: Status) -> Result<Command, Error> {
321 let r = T::regs(); 321 let r = T::regs();
322 loop { 322 loop {
323 // stop if an error occured 323 // stop if an error occurred
324 if r.events_error.read().bits() != 0 { 324 if r.events_error.read().bits() != 0 {
325 r.events_error.reset(); 325 r.events_error.reset();
326 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 326 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -346,7 +346,7 @@ impl<'d, T: Instance> Twis<'d, T> {
346 fn blocking_wait(&mut self) -> Result<usize, Error> { 346 fn blocking_wait(&mut self) -> Result<usize, Error> {
347 let r = T::regs(); 347 let r = T::regs();
348 loop { 348 loop {
349 // stop if an error occured 349 // stop if an error occurred
350 if r.events_error.read().bits() != 0 { 350 if r.events_error.read().bits() != 0 {
351 r.events_error.reset(); 351 r.events_error.reset();
352 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 352 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -372,7 +372,7 @@ impl<'d, T: Instance> Twis<'d, T> {
372 let r = T::regs(); 372 let r = T::regs();
373 let deadline = Instant::now() + timeout; 373 let deadline = Instant::now() + timeout;
374 loop { 374 loop {
375 // stop if an error occured 375 // stop if an error occurred
376 if r.events_error.read().bits() != 0 { 376 if r.events_error.read().bits() != 0 {
377 r.events_error.reset(); 377 r.events_error.reset();
378 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 378 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -432,7 +432,7 @@ impl<'d, T: Instance> Twis<'d, T> {
432 let r = T::regs(); 432 let r = T::regs();
433 let deadline = Instant::now() + timeout; 433 let deadline = Instant::now() + timeout;
434 loop { 434 loop {
435 // stop if an error occured 435 // stop if an error occurred
436 if r.events_error.read().bits() != 0 { 436 if r.events_error.read().bits() != 0 {
437 r.events_error.reset(); 437 r.events_error.reset();
438 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 438 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -465,7 +465,7 @@ impl<'d, T: Instance> Twis<'d, T> {
465 465
466 s.waker.register(cx.waker()); 466 s.waker.register(cx.waker());
467 467
468 // stop if an error occured 468 // stop if an error occurred
469 if r.events_error.read().bits() != 0 { 469 if r.events_error.read().bits() != 0 {
470 r.events_error.reset(); 470 r.events_error.reset();
471 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 471 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -495,7 +495,7 @@ impl<'d, T: Instance> Twis<'d, T> {
495 495
496 s.waker.register(cx.waker()); 496 s.waker.register(cx.waker());
497 497
498 // stop if an error occured 498 // stop if an error occurred
499 if r.events_error.read().bits() != 0 { 499 if r.events_error.read().bits() != 0 {
500 r.events_error.reset(); 500 r.events_error.reset();
501 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 501 r.tasks_stop.write(|w| unsafe { w.bits(1) });
@@ -522,7 +522,7 @@ impl<'d, T: Instance> Twis<'d, T> {
522 522
523 s.waker.register(cx.waker()); 523 s.waker.register(cx.waker());
524 524
525 // stop if an error occured 525 // stop if an error occurred
526 if r.events_error.read().bits() != 0 { 526 if r.events_error.read().bits() != 0 {
527 r.events_error.reset(); 527 r.events_error.reset();
528 r.tasks_stop.write(|w| unsafe { w.bits(1) }); 528 r.tasks_stop.write(|w| unsafe { w.bits(1) });
diff --git a/embassy-rp/src/flash.rs b/embassy-rp/src/flash.rs
index 6ab05ff0b..51c7af913 100644
--- a/embassy-rp/src/flash.rs
+++ b/embassy-rp/src/flash.rs
@@ -25,7 +25,7 @@ pub const ERASE_SIZE: usize = 4096;
25#[derive(Debug, Copy, Clone, PartialEq, Eq)] 25#[derive(Debug, Copy, Clone, PartialEq, Eq)]
26#[cfg_attr(feature = "defmt", derive(defmt::Format))] 26#[cfg_attr(feature = "defmt", derive(defmt::Format))]
27pub enum Error { 27pub enum Error {
28 /// Opration using a location not in flash. 28 /// Operation using a location not in flash.
29 OutOfBounds, 29 OutOfBounds,
30 /// Unaligned operation or using unaligned buffers. 30 /// Unaligned operation or using unaligned buffers.
31 Unaligned, 31 Unaligned,
diff --git a/embassy-rp/src/i2c.rs b/embassy-rp/src/i2c.rs
index cd5364393..d5dc94406 100644
--- a/embassy-rp/src/i2c.rs
+++ b/embassy-rp/src/i2c.rs
@@ -551,7 +551,7 @@ impl<'d, T: Instance + 'd, M: Mode> I2c<'d, T, M> {
551 551
552 if abort_reason.is_err() || (send_stop && last) { 552 if abort_reason.is_err() || (send_stop && last) {
553 // If the transaction was aborted or if it completed 553 // If the transaction was aborted or if it completed
554 // successfully wait until the STOP condition has occured. 554 // successfully wait until the STOP condition has occurred.
555 555
556 while !p.ic_raw_intr_stat().read().stop_det() {} 556 while !p.ic_raw_intr_stat().read().stop_det() {}
557 557
diff --git a/embassy-rp/src/uart/buffered.rs b/embassy-rp/src/uart/buffered.rs
index 59fec8f1b..9d3de1bd8 100644
--- a/embassy-rp/src/uart/buffered.rs
+++ b/embassy-rp/src/uart/buffered.rs
@@ -544,7 +544,7 @@ pub(crate) unsafe fn on_interrupt<T: Instance>(_: *mut ()) {
544 s.rx_waker.wake(); 544 s.rx_waker.wake();
545 } 545 }
546 // Disable any further RX interrupts when the buffer becomes full or 546 // Disable any further RX interrupts when the buffer becomes full or
547 // errors have occured. this lets us buffer additional errors in the 547 // errors have occurred. This lets us buffer additional errors in the
548 // fifo without needing more error storage locations, and most applications 548 // fifo without needing more error storage locations, and most applications
549 // will want to do a full reset of their uart state anyway once an error 549 // will want to do a full reset of their uart state anyway once an error
550 // has happened. 550 // has happened.
diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs
index 4084c158a..a0ee6b4ce 100644
--- a/embassy-rp/src/uart/mod.rs
+++ b/embassy-rp/src/uart/mod.rs
@@ -231,7 +231,7 @@ impl<'d, T: Instance> UartTx<'d, T, Async> {
231} 231}
232 232
233impl<'d, T: Instance, M: Mode> UartRx<'d, T, M> { 233impl<'d, T: Instance, M: Mode> UartRx<'d, T, M> {
234 /// Create a new DMA-enabled UART which can only recieve data 234 /// Create a new DMA-enabled UART which can only receive data
235 pub fn new( 235 pub fn new(
236 _uart: impl Peripheral<P = T> + 'd, 236 _uart: impl Peripheral<P = T> + 'd,
237 rx: impl Peripheral<P = impl RxPin<T>> + 'd, 237 rx: impl Peripheral<P = impl RxPin<T>> + 'd,
@@ -690,7 +690,7 @@ impl<'d, T: Instance, M: Mode> Uart<'d, T, M> {
690 self.tx.send_break(bits).await 690 self.tx.send_break(bits).await
691 } 691 }
692 692
693 /// Split the Uart into a transmitter and receiver, which is particuarly 693 /// Split the Uart into a transmitter and receiver, which is particularly
694 /// useful when having two tasks correlating to transmitting and receiving. 694 /// useful when having two tasks correlating to transmitting and receiving.
695 pub fn split(self) -> (UartTx<'d, T, M>, UartRx<'d, T, M>) { 695 pub fn split(self) -> (UartTx<'d, T, M>, UartRx<'d, T, M>) {
696 (self.tx, self.rx) 696 (self.tx, self.rx)
diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs
index 8e84570a4..d45c90dd8 100644
--- a/embassy-stm32/src/time_driver.rs
+++ b/embassy-stm32/src/time_driver.rs
@@ -250,7 +250,7 @@ impl RtcDriver {
250 // Call after clearing alarm, so the callback can set another alarm. 250 // Call after clearing alarm, so the callback can set another alarm.
251 251
252 // safety: 252 // safety:
253 // - we can ignore the possiblity of `f` being unset (null) because of the safety contract of `allocate_alarm`. 253 // - we can ignore the possibility of `f` being unset (null) because of the safety contract of `allocate_alarm`.
254 // - other than that we only store valid function pointers into alarm.callback 254 // - other than that we only store valid function pointers into alarm.callback
255 let f: fn(*mut ()) = unsafe { mem::transmute(alarm.callback.get()) }; 255 let f: fn(*mut ()) = unsafe { mem::transmute(alarm.callback.get()) };
256 f(alarm.ctx.get()); 256 f(alarm.ctx.get());
diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs
index dbce668c2..e946762af 100644
--- a/embassy-stm32/src/usart/mod.rs
+++ b/embassy-stm32/src/usart/mod.rs
@@ -112,7 +112,7 @@ pub struct UartRx<'d, T: BasicInstance, RxDma = NoDma> {
112} 112}
113 113
114impl<'d, T: BasicInstance, TxDma> UartTx<'d, T, TxDma> { 114impl<'d, T: BasicInstance, TxDma> UartTx<'d, T, TxDma> {
115 /// usefull if you only want Uart Tx. It saves 1 pin and consumes a little less power 115 /// Useful if you only want Uart Tx. It saves 1 pin and consumes a little less power.
116 pub fn new( 116 pub fn new(
117 peri: impl Peripheral<P = T> + 'd, 117 peri: impl Peripheral<P = T> + 'd,
118 tx: impl Peripheral<P = impl TxPin<T>> + 'd, 118 tx: impl Peripheral<P = impl TxPin<T>> + 'd,
@@ -210,7 +210,7 @@ impl<'d, T: BasicInstance, TxDma> UartTx<'d, T, TxDma> {
210} 210}
211 211
212impl<'d, T: BasicInstance, RxDma> UartRx<'d, T, RxDma> { 212impl<'d, T: BasicInstance, RxDma> UartRx<'d, T, RxDma> {
213 /// usefull if you only want Uart Rx. It saves 1 pin and consumes a little less power 213 /// Useful if you only want Uart Rx. It saves 1 pin and consumes a little less power.
214 pub fn new( 214 pub fn new(
215 peri: impl Peripheral<P = T> + 'd, 215 peri: impl Peripheral<P = T> + 'd,
216 irq: impl Peripheral<P = T::Interrupt> + 'd, 216 irq: impl Peripheral<P = T::Interrupt> + 'd,
@@ -757,7 +757,7 @@ impl<'d, T: BasicInstance, TxDma, RxDma> Uart<'d, T, TxDma, RxDma> {
757 } 757 }
758 758
759 /// Split the Uart into a transmitter and receiver, which is 759 /// Split the Uart into a transmitter and receiver, which is
760 /// particuarly useful when having two tasks correlating to 760 /// particularly useful when having two tasks correlating to
761 /// transmitting and receiving. 761 /// transmitting and receiving.
762 pub fn split(self) -> (UartTx<'d, T, TxDma>, UartRx<'d, T, RxDma>) { 762 pub fn split(self) -> (UartTx<'d, T, TxDma>, UartRx<'d, T, RxDma>) {
763 (self.tx, self.rx) 763 (self.tx, self.rx)
diff --git a/embassy-usb-driver/src/lib.rs b/embassy-usb-driver/src/lib.rs
index e8f71a2dc..2c05f94f7 100644
--- a/embassy-usb-driver/src/lib.rs
+++ b/embassy-usb-driver/src/lib.rs
@@ -97,7 +97,7 @@ impl EndpointAddress {
97 } 97 }
98} 98}
99 99
100/// Infomation for an endpoint. 100/// Information for an endpoint.
101#[derive(Copy, Clone, Eq, PartialEq, Debug)] 101#[derive(Copy, Clone, Eq, PartialEq, Debug)]
102#[cfg_attr(feature = "defmt", derive(defmt::Format))] 102#[cfg_attr(feature = "defmt", derive(defmt::Format))]
103pub struct EndpointInfo { 103pub struct EndpointInfo {
diff --git a/embassy-usb/src/class/cdc_ncm/mod.rs b/embassy-usb/src/class/cdc_ncm/mod.rs
index 262499ccb..d5556dd0b 100644
--- a/embassy-usb/src/class/cdc_ncm/mod.rs
+++ b/embassy-usb/src/class/cdc_ncm/mod.rs
@@ -370,7 +370,7 @@ pub struct Sender<'d, D: Driver<'d>> {
370impl<'d, D: Driver<'d>> Sender<'d, D> { 370impl<'d, D: Driver<'d>> Sender<'d, D> {
371 /// Write a packet. 371 /// Write a packet.
372 /// 372 ///
373 /// This waits until the packet is succesfully stored in the CDC-NCM endpoint buffers. 373 /// This waits until the packet is successfully stored in the CDC-NCM endpoint buffers.
374 pub async fn write_packet(&mut self, data: &[u8]) -> Result<(), EndpointError> { 374 pub async fn write_packet(&mut self, data: &[u8]) -> Result<(), EndpointError> {
375 let seq = self.seq; 375 let seq = self.seq;
376 self.seq = self.seq.wrapping_add(1); 376 self.seq = self.seq.wrapping_add(1);
@@ -436,7 +436,7 @@ pub struct Receiver<'d, D: Driver<'d>> {
436impl<'d, D: Driver<'d>> Receiver<'d, D> { 436impl<'d, D: Driver<'d>> Receiver<'d, D> {
437 /// Write a network packet. 437 /// Write a network packet.
438 /// 438 ///
439 /// This waits until a packet is succesfully received from the endpoint buffers. 439 /// This waits until a packet is successfully received from the endpoint buffers.
440 pub async fn read_packet(&mut self, buf: &mut [u8]) -> Result<usize, EndpointError> { 440 pub async fn read_packet(&mut self, buf: &mut [u8]) -> Result<usize, EndpointError> {
441 // Retry loop 441 // Retry loop
442 loop { 442 loop {
diff --git a/embassy-usb/src/class/hid.rs b/embassy-usb/src/class/hid.rs
index 03e4c1dbb..889d66ec5 100644
--- a/embassy-usb/src/class/hid.rs
+++ b/embassy-usb/src/class/hid.rs
@@ -165,7 +165,7 @@ impl<'d, D: Driver<'d>, const READ_N: usize, const WRITE_N: usize> HidReaderWrit
165 } 165 }
166 } 166 }
167 167
168 /// Splits into seperate readers/writers for input and output reports. 168 /// Splits into separate readers/writers for input and output reports.
169 pub fn split(self) -> (HidReader<'d, D, READ_N>, HidWriter<'d, D, WRITE_N>) { 169 pub fn split(self) -> (HidReader<'d, D, READ_N>, HidWriter<'d, D, WRITE_N>) {
170 (self.reader, self.writer) 170 (self.reader, self.writer)
171 } 171 }
diff --git a/embassy-usb/src/msos.rs b/embassy-usb/src/msos.rs
index 218d9931a..187b2ff8e 100644
--- a/embassy-usb/src/msos.rs
+++ b/embassy-usb/src/msos.rs
@@ -186,7 +186,7 @@ impl<'d> MsOsDescriptorWriter<'d> {
186 capability_type::PLATFORM, 186 capability_type::PLATFORM,
187 &[ 187 &[
188 0, // reserved 188 0, // reserved
189 // platform capability UUID, Microsoft OS 2.0 platform compabitility 189 // platform capability UUID, Microsoft OS 2.0 platform compatibility
190 0xdf, 190 0xdf,
191 0x60, 191 0x60,
192 0xdd, 192 0xdd,
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 }