@@ -7,20 +7,34 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
- ## [ v0.7.0] - 2021-03-10
11
-
12
10
### Added
13
11
14
- - Replace custom time based units with types defined in the [ embedded-time] [ ] crate ([ #192 ] )
15
12
- Make ` Clocks ` ` ppre1() ` and ` ppre2() ` methods public, to get the current
16
13
Prescaler value. ([ #210 ] )
14
+ - Implement ` into_xxx ` methods for partially erased pins ([ #189 ] )
15
+ - Enable better GPIO internal resistor configuration ([ #189 ] )
16
+ - Support for GPIO output slew rate configuration ([ #189 ] )
17
+ - Support for GPIO interrupts ([ #189 ] )
17
18
18
- ### Breaking changes
19
+ ### Changed
19
20
21
+ - Added support for more CAN bit rates and modes. ([ #186 ] )
22
+ - The structure of ` gpio.rs ` is greatly changed. Generic ` Pin ` struct is used
23
+ for every GPIO pin now ([ #189 ] )
24
+
25
+ ### Fixed
26
+
27
+ - Delay based on systick no longer panics ([ #203 ] ) for to high values
28
+ and support longer delays ([ #208 ] )
29
+
30
+ ### Breaking Changes
31
+
32
+ - Replace custom time based units with types defined in the [ embedded-time] [ ]
33
+ crate ([ #192 ] )
20
34
- The ` rcc ` public API now expects time based units in ` Megahertz ` .
21
35
If the supplied frequency cannot be converted to ` Hertz ` the code
22
36
will ` panic ` . This will occur if the supplied ` Megahertz ` frequency
23
- cannot fit into ` u32::MAX ` when converting to ` Hertz `
37
+ cannot fit into ` u32::MAX ` when converting to ` Hertz ` ( [ # 192 ] )
24
38
25
39
``` rust
26
40
// The supplied frequencies must be in `MHz`.
@@ -34,21 +48,17 @@ let clocks = rcc
34
48
```
35
49
36
50
- Bump dependencies: ([ #211 ] )
37
- - ` stm32f3 ` dependency to 0.13.0
38
- - ` nb ` to 1.0
51
+ - ` stm32f3 ` dependency to 0.13
52
+ - ` nb ` to 1
39
53
- ` cortex-m ` to 0.7
40
54
- ` stm32-usbd ` to 0.6
41
55
- ` defmt ` to 0.2
42
-
43
- [ embedded-time ] : https://github.com/FluenTech/embedded-time/
44
- ### Changed
45
-
46
- - Added support for more CAN bit rates and modes. ([ #186 ] )
47
-
48
- ### Fixed
49
-
50
- - Delay based on systick no longer panics ([ #203 ] ) for to high values
51
- and support longer delays ([ #208 ] )
56
+ - ` into_afx ` methods are splitted into ` into_afx_push_pull ` and
57
+ ` into_afx_open_drain ` ([ #189 ] )
58
+ - GPIO output mode (` PushPull ` or ` OpenDrain ` ) is encoded into pin typestate
59
+ in alternate function mode ([ #189 ] )
60
+ - GPIO internal resistor configuration is no longer encoded into pin typestate
61
+ in input mode ([ #189 ] )
52
62
53
63
## [ v0.6.1] - 2020-12-10
54
64
@@ -69,8 +79,7 @@ let clocks = rcc
69
79
- Impls for all SPI pins for all ` stm32f302 ` sub-targets, ` stm32f303 `
70
80
subtargets, ` stm32f3x8 ` targets, ` stm32f334 ` , and ` stm32f373 `
71
81
([ #99 ] )
72
- - SPI4 peripheral for supported
73
- devices. ([ #99 ] )
82
+ - SPI4 peripheral for supported devices. ([ #99 ] )
74
83
- Support for I2C transfer of more than 255 bytes, and 0 byte write ([ #154 ] )
75
84
- Support for HSE bypass and CSS ([ #156 ] )
76
85
- Impls for missing I2C pin definitions ([ #164 ] )
@@ -85,9 +94,6 @@ let clocks = rcc
85
94
The support of this feature is subject to change as the development
86
95
of [ defmt] [ ] is advancing.
87
96
88
- [ defmt ] : https://github.com/knurling-rs/defmt
89
- [ filter ] : https://defmt.ferrous-systems.com/filtering.html
90
-
91
97
### Changed
92
98
93
99
- Introduced auto-generated GPIO mappings based on the STM32CubeMX database
@@ -99,8 +105,6 @@ let clocks = rcc
99
105
([ #152 ] )
100
106
- Wrong I2C clock source ([ #164 ] )
101
107
102
- [ #151 ] : https://github.com/stm32-rs/stm32f3xx-hal/issues/151
103
-
104
108
### Breaking Changes
105
109
106
110
- Removed impl for ` SckPin<SPI2> ` for ` PB13<AF5> ` from ` stm32f328 ` and
@@ -305,20 +309,21 @@ let clocks = rcc
305
309
306
310
- Support ` stm32f303 ` device
307
311
312
+ [ embedded-time ] : https://github.com/FluenTech/embedded-time/
313
+ [ defmt ] : https://github.com/knurling-rs/defmt
314
+ [ filter ] : https://defmt.ferrous-systems.com/filtering.html
315
+
308
316
[ #211 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/211
309
317
[ #210 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/210
310
318
[ #208 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/208
311
319
[ #203 ] : https://github.com/stm32-rs/stm32f3xx-hal/issues/203
312
320
[ #192 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/192
321
+ [ #189 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/189
313
322
[ #186 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/186
314
323
[ #184 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/184
315
324
[ #172 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/172
316
325
[ #170 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/170
317
326
[ #164 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/164
318
- [ #164 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/164
319
- [ #164 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/164
320
- [ #164 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/164
321
- [ #164 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/164
322
327
[ #156 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/156
323
328
[ #154 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/154
324
329
[ #152 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/152
@@ -333,30 +338,24 @@ let clocks = rcc
333
338
[ #101 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/101
334
339
[ #100 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/100
335
340
[ #99 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/99
336
- [ #99 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/99
337
- [ #99 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/99
338
341
[ #98 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/98
339
342
[ #97 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/97
340
343
[ #91 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/91
341
344
[ #86 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/86
342
- [ #86 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/86
343
345
[ #82 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/82
344
346
[ #75 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/75
345
347
[ #72 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/72
346
348
[ #70 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/70
347
349
[ #67 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/67
348
- [ #67 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/67
349
350
[ #60 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/60
350
351
[ #58 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/58
351
352
[ #56 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/56
352
353
[ #52 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/52
353
354
[ #50 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/50
354
- [ #50 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/50
355
355
[ #47 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/47
356
356
[ #42 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/42
357
357
[ #39 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/39
358
358
[ #35 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/18
359
- [ #35 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/35
360
359
[ #34 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/34
361
360
[ #33 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/33
362
361
[ #31 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/33
@@ -369,7 +368,6 @@ let clocks = rcc
369
368
[ #16 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/16
370
369
[ #14 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/14
371
370
[ #12 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/12
372
- [ #12 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/12
373
371
[ #11 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/11
374
372
[ #6 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/6
375
373
[ #4 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/4
0 commit comments