Skip to content

Commit f0237d0

Browse files
committed
Bumped version of dependant crates, updated examples to work with new crates
1 parent a372a82 commit f0237d0

File tree

12 files changed

+45
-111
lines changed

12 files changed

+45
-111
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
77

8+
## [v0.2.4] - 2018-10-32
9+
10+
### Fixed
11+
- Updated examples and bumped dependancies.
12+
813
## [v0.2.3] - 2018-10-06
914

1015
### Fixed
@@ -49,7 +54,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4954

5055
- Initial release
5156

52-
[Unreleased]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.3...HEAD
57+
[Unreleased]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.4...HEAD
58+
[v0.2.4]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.3...v0.2.4
5359
[v0.2.3]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.2...v0.2.3
5460
[v0.2.2]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.1...v0.2.2
5561
[v0.2.1]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.0...v0.2.1

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stm32l432xx-hal"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
authors = ["Scott Mabin <[email protected]>"]
55
description = "Hardware abstraction layer for the stm32l432xx chips"
66
keywords = ["no-std", "stm32l432xx", "stm32l432kc", "embedded", "embedded-hal"]
@@ -15,7 +15,7 @@ exclude = [
1515
]
1616

1717
[dependencies]
18-
cortex-m = "0.5.2"
18+
cortex-m = "0.5.7"
1919
nb = "0.1.1"
2020

2121
[dependencies.cast]
@@ -31,13 +31,13 @@ version = "0.2.1"
3131
features = ["unproven"]
3232

3333
[dependencies.stm32l4]
34-
version = "0.2.1"
34+
version = "0.3.2"
3535
features = ["stm32l4x2", "rt"]
3636

3737
[dev-dependencies]
38-
panic-semihosting = "0.3.0"
39-
cortex-m-semihosting = "0.3.0"
40-
cortex-m-rt = "0.5.1"
38+
panic-semihosting = "0.5.0"
39+
cortex-m-semihosting = "0.3.1"
40+
cortex-m-rt = "0.6.5"
4141

4242
[profile.dev]
4343
incremental = false

examples/blinky.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ use rt::ExceptionFrame;
2323
use core::fmt::Write;
2424
use sh::hio;
2525

26-
entry!(main);
27-
26+
#[entry]
2827
fn main() -> ! {
2928

3029
let mut hstdout = hio::hstdout().unwrap();
@@ -61,14 +60,7 @@ fn main() -> ! {
6160
}
6261
}
6362

64-
exception!(HardFault, hard_fault);
65-
66-
fn hard_fault(ef: &ExceptionFrame) -> ! {
63+
#[exception]
64+
fn HardFault(ef: &ExceptionFrame) -> ! {
6765
panic!("{:#?}", ef);
68-
}
69-
70-
exception!(*, default_handler);
71-
72-
fn default_handler(irqn: i16) {
73-
panic!("Unhandled exception (IRQn = {})", irqn);
74-
}
66+
}

examples/pll_config.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ use hal::stm32l4::stm32l4x2;
2424
use hal::rcc::PllConfig;
2525
use rt::ExceptionFrame;
2626

27-
entry!(main);
28-
27+
#[entry]
2928
fn main() -> ! {
3029
let p = stm32l4x2::Peripherals::take().unwrap();
3130

@@ -75,14 +74,7 @@ fn main() -> ! {
7574
loop {}
7675
}
7776

78-
exception!(HardFault, hard_fault);
79-
80-
fn hard_fault(ef: &ExceptionFrame) -> ! {
77+
#[exception]
78+
fn HardFault(ef: &ExceptionFrame) -> ! {
8179
panic!("{:#?}", ef);
8280
}
83-
84-
exception!(*, default_handler);
85-
86-
fn default_handler(irqn: i16) {
87-
panic!("Unhandled exception (IRQn = {})", irqn);
88-
}

examples/rtc.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ use rt::ExceptionFrame;
2525
use core::fmt::Write;
2626
use sh::hio;
2727

28-
entry!(main);
29-
28+
#[entry]
3029
fn main() -> ! {
3130

3231
let mut hstdout = hio::hstdout().unwrap();
@@ -66,14 +65,7 @@ fn main() -> ! {
6665
loop {}
6766
}
6867

69-
exception!(HardFault, hard_fault);
70-
71-
fn hard_fault(ef: &ExceptionFrame) -> ! {
68+
#[exception]
69+
fn HardFault(ef: &ExceptionFrame) -> ! {
7270
panic!("{:#?}", ef);
73-
}
74-
75-
exception!(*, default_handler);
76-
77-
fn default_handler(irqn: i16) {
78-
panic!("Unhandled exception (IRQn = {})", irqn);
79-
}
71+
}

examples/serial.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ use hal::serial::Serial;
2323
use hal::stm32l4::stm32l4x2;
2424
use rt::ExceptionFrame;
2525

26-
entry!(main);
27-
26+
#[entry]
2827
fn main() -> ! {
2928
let p = stm32l4x2::Peripherals::take().unwrap();
3029

@@ -67,14 +66,7 @@ fn main() -> ! {
6766
loop {}
6867
}
6968

70-
exception!(HardFault, hard_fault);
71-
72-
fn hard_fault(ef: &ExceptionFrame) -> ! {
69+
#[exception]
70+
fn HardFault(ef: &ExceptionFrame) -> ! {
7371
panic!("{:#?}", ef);
7472
}
75-
76-
exception!(*, default_handler);
77-
78-
fn default_handler(irqn: i16) {
79-
panic!("Unhandled exception (IRQn = {})", irqn);
80-
}

examples/serial_dma.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ use hal::serial::Serial;
2525
use hal::stm32l4::stm32l4x2;
2626
use rt::ExceptionFrame;
2727

28-
entry!(main);
29-
28+
#[entry]
3029
fn main() -> ! {
3130
let p = stm32l4x2::Peripherals::take().unwrap();
3231

@@ -90,14 +89,7 @@ fn main() -> ! {
9089
loop {}
9190
}
9291

93-
exception!(HardFault, hard_fault);
94-
95-
fn hard_fault(ef: &ExceptionFrame) -> ! {
92+
#[exception]
93+
fn HardFault(ef: &ExceptionFrame) -> ! {
9694
panic!("{:#?}", ef);
9795
}
98-
99-
exception!(*, default_handler);
100-
101-
fn default_handler(irqn: i16) {
102-
panic!("Unhandled exception (IRQn = {})", irqn);
103-
}

examples/serial_dma_partial_peek.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ use hal::stm32l4::stm32l4x2;
2525
use rt::ExceptionFrame;
2626
use hal::delay::Delay;
2727

28-
entry!(main);
29-
28+
#[entry]
3029
fn main() -> ! {
3130
let p = stm32l4x2::Peripherals::take().unwrap();
3231
let cp = cortex_m::Peripherals::take().unwrap();
@@ -82,14 +81,7 @@ fn main() -> ! {
8281
loop {}
8382
}
8483

85-
exception!(HardFault, hard_fault);
86-
87-
fn hard_fault(ef: &ExceptionFrame) -> ! {
84+
#[exception]
85+
fn HardFault(ef: &ExceptionFrame) -> ! {
8886
panic!("{:#?}", ef);
8987
}
90-
91-
exception!(*, default_handler);
92-
93-
fn default_handler(irqn: i16) {
94-
panic!("Unhandled exception (IRQn = {})", irqn);
95-
}

examples/serial_vcom.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ use hal::serial::Serial;
2222
use hal::stm32l4::stm32l4x2;
2323
use rt::ExceptionFrame;
2424

25-
entry!(main);
26-
25+
#[entry]
2726
fn main() -> ! {
2827
let p = stm32l4x2::Peripherals::take().unwrap();
2928

@@ -71,14 +70,7 @@ fn main() -> ! {
7170
loop {}
7271
}
7372

74-
exception!(HardFault, hard_fault);
75-
76-
fn hard_fault(ef: &ExceptionFrame) -> ! {
73+
#[exception]
74+
fn HardFault(ef: &ExceptionFrame) -> ! {
7775
panic!("{:#?}", ef);
7876
}
79-
80-
exception!(*, default_handler);
81-
82-
fn default_handler(irqn: i16) {
83-
panic!("Unhandled exception (IRQn = {})", irqn);
84-
}

examples/spi_write.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ pub const MODE: Mode = Mode {
2424
polarity: Polarity::IdleLow,
2525
};
2626

27-
entry!(main);
28-
27+
#[entry]
2928
fn main() -> ! {
3029
let p = stm32l4x2::Peripherals::take().unwrap();
3130

@@ -82,14 +81,7 @@ fn main() -> ! {
8281
loop {}
8382
}
8483

85-
exception!(HardFault, hard_fault);
86-
87-
fn hard_fault(ef: &ExceptionFrame) -> ! {
84+
#[exception]
85+
fn HardFault(ef: &ExceptionFrame) -> ! {
8886
panic!("{:#?}", ef);
8987
}
90-
91-
exception!(*, default_handler);
92-
93-
fn default_handler(irqn: i16) {
94-
panic!("Unhandled exception (IRQn = {})", irqn);
95-
}

0 commit comments

Comments
 (0)