Skip to content

Commit 9712823

Browse files
committed
Applied a healthy dose of warning cleanup
Signed-off-by: Daniel Egger <[email protected]>
1 parent f09a7cb commit 9712823

19 files changed

+249
-53
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1919

2020
- Removed superfluous use statements
2121
- Re-added Send ability for U(S)ART Rx/Tx
22+
- Made crate to compile without features
23+
- Eliminated a lot of unused warnings
2224

2325
### Fixed
2426

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ API for the STMicro STM32F0xx family of microcontrollers. It replaces the
66
[stm32f042-hal][] by a more ubiqitous version suitable for additional families.
77

88
Currently supported configuration are:
9-
* stm32f042
109
* stm32f030
1110
* stm32f030x4
1211
* stm32f030x6
1312
* stm32f030x8
1413
* stm32f030xc
14+
* stm32f042
1515
* stm32f070
1616
* stm32f070x6
1717
* stm32f070xb

examples/blinky.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/blinky_delay.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/blinky_multiple.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/blinky_timer.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/flash_systick.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/led_hal_button_irq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![no_main]
22
#![no_std]
33

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;
@@ -84,7 +85,6 @@ fn main() -> ! {
8485
}
8586
}
8687

87-
8888
// Define an interupt handler, i.e. function to call when interrupt occurs. Here if our external
8989
// interrupt trips when the button is pressed and will light the LED for a second
9090
#[interrupt]

examples/serial_echo.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

examples/spi_hal_apa102c.rs

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

4+
#[allow(unused)]
45
use panic_halt;
56

67
use stm32f0xx_hal as hal;

0 commit comments

Comments
 (0)