Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 44601a8

Browse files
committed
Use new stm32f042 and cortex-m-rt crate, got rid of macro reexport
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
1 parent cb4f4c0 commit 44601a8

10 files changed

+12
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ keywords = [
1616
license = "0BSD"
1717
name = "stm32f042-hal"
1818
repository = "https://github.com/therealprof/stm32f042-hal"
19-
version = "0.3.6"
19+
version = "0.3.7"
2020

2121
[dependencies]
22-
bare-metal = "0.1.1"
22+
bare-metal = "0.1.2"
2323
cortex-m = "0.4.3"
2424
nb = "0.1.1"
25+
panic-abort = "0.1.1"
2526

2627
[dependencies.cast]
2728
default-features = false
@@ -33,7 +34,7 @@ version = "0.1.2"
3334

3435
[dependencies.stm32f042]
3536
features = ["rt"]
36-
version = "0.5.2"
37+
version = "0.5.3"
3738

3839
[dev-dependencies]
3940
ina260 = "0.1.1"

examples/blinky.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(used)]
22
#![no_std]
33

4+
extern crate panic_abort;
45
extern crate stm32f042_hal as hal;
56

67
use hal::prelude::*;

examples/blinky_delay.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(used)]
22
#![no_std]
33

4+
extern crate panic_abort;
45
extern crate stm32f042_hal as hal;
56
use hal::prelude::*;
67
use hal::stm32f042;

examples/flash_systick.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(used)]
22
#![no_std]
33

4+
extern crate panic_abort;
45
extern crate stm32f042_hal as hal;
56
use hal::gpio::*;
67
use hal::prelude::*;

examples/i2c_hal_ina260reader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(const_fn)]
33
#![no_std]
44

5+
extern crate panic_abort;
56
extern crate embedded_hal;
67
use embedded_hal::blocking::i2c::Write;
78

examples/i2c_hal_ina260serial.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(const_fn)]
33
#![no_std]
44

5+
extern crate panic_abort;
56
extern crate cortex_m;
67
extern crate embedded_hal;
78
extern crate stm32f042_hal as hal;

examples/i2c_hal_ssd1306alphabeter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(const_fn)]
33
#![no_std]
44

5+
extern crate panic_abort;
56
extern crate embedded_hal;
67
use embedded_hal::blocking::i2c::Write;
78

examples/serial_echo.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(used)]
22
#![no_std]
33

4+
extern crate panic_abort;
45
extern crate stm32f042_hal as hal;
56

67
use hal::prelude::*;

examples/spi_hal_apa102c.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![deny(warnings)]
33
#![no_std]
44

5+
extern crate panic_abort;
56
extern crate cortex_m;
67
extern crate stm32f042_hal as hal;
78

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_std]
22
#![cfg_attr(feature = "rt", feature(global_asm))]
3-
#![cfg_attr(feature = "rt", feature(macro_reexport))]
43
#![cfg_attr(feature = "rt", feature(used))]
54
#![feature(const_fn)]
65
#![allow(non_camel_case_types)]

0 commit comments

Comments
 (0)