File tree 2 files changed +5
-26
lines changed
2 files changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+
12
+ - initial ` embedded-io ` support [ #725 ]
13
+
10
14
### Changed
11
15
12
16
- Use ` stm32f4-staging ` until ` stm32f4 ` is released [ #706 ]
13
17
14
18
[ #706 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/706
19
+ [ #725 ] : https://github.com/stm32-rs/stm32f4xx-hal/pull/725
15
20
16
21
## [ v0.21.0] - 2024-05-30
17
22
Original file line number Diff line number Diff line change @@ -126,32 +126,6 @@ mod io {
126
126
<USART as Instance >:: RegisterBlock : RegisterBlockImpl ,
127
127
USART : Deref < Target = <USART as Instance >:: RegisterBlock > ,
128
128
{
129
- /*
130
- fn write(&mut self, bytes: &[u8]) -> Result<usize, Self::Error> {
131
- let mut iter = bytes.iter();
132
- let Some(first) = iter.next() else {
133
- return Ok(0);
134
- };
135
- // block for first byte
136
- self.usart.write_u8(*first)?;
137
- let mut i = 1;
138
-
139
- // write more bytes if it's possible
140
- for byte in iter {
141
- match self.usart.write_u8(*byte) {
142
- Ok(_) => {
143
- i += 1;
144
- }
145
- Err(nb::Error::WouldBlock) => {
146
- return Ok(i);
147
- }
148
- Err(nb::Error::Other(e)) => {
149
- return Err(e);
150
- }
151
- }
152
- }
153
- Ok(i)
154
- }*/
155
129
fn write ( & mut self , bytes : & [ u8 ] ) -> Result < usize , Self :: Error > {
156
130
let mut i = 0 ;
157
131
for byte in bytes. iter ( ) {
You can’t perform that action at this time.
0 commit comments