Skip to content

Commit 6a29306

Browse files
committed
update deps
1 parent fce6276 commit 6a29306

File tree

9 files changed

+51
-43
lines changed

9 files changed

+51
-43
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
- extend visibility of gpio/marker to crate since i2s module require it [#490]
1818
- Bump `synopsys-usb-otg` to `0.3.0` [#508]
1919
- Bump `embedded-hal` to `1.0.0-alpha.8` [#510]
20+
- Update `bxcan`, `rtic` and other dependencies [#519]
2021

2122
### Removed
2223
- `i2s-audio-out-dma.rs` example, too difficult to fix.
@@ -43,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4344
[#514]: https://github.com/stm32-rs/stm32f4xx-hal/pull/514
4445
[#515]: https://github.com/stm32-rs/stm32f4xx-hal/pull/515
4546
[#517]: https://github.com/stm32-rs/stm32f4xx-hal/pull/517
47+
[#519]: https://github.com/stm32-rs/stm32f4xx-hal/pull/519
4648

4749
## [v0.13.2] - 2022-05-16
4850

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ targets = ["thumbv7em-none-eabihf"]
2828

2929
[dependencies]
3030
defmt = { version = "0.3.1", optional = true }
31-
bxcan = { version = "0.6", optional = true }
31+
bxcan = { version = "0.7", optional = true }
3232
cortex-m = "0.7.4"
33-
cortex-m-rt = "0.7"
33+
cortex-m-rt = "0.7.1"
3434
nb = "1"
35-
rand_core = "0.6"
35+
rand_core = "0.6.3"
3636
stm32f4 = "0.15.1"
3737
synopsys-usb-otg = { version = "0.3.0", features = ["cortex-m"], optional = true }
3838
sdio-host = { version = "0.6.0", optional = true }
@@ -41,15 +41,15 @@ bare-metal = { version = "1" }
4141
void = { default-features = false, version = "1.0.2" }
4242
embedded-hal = { features = ["unproven"], version = "0.2.7" }
4343
display-interface = { version = "0.4.1", optional = true }
44-
fugit = "0.3.5"
44+
fugit = "0.3.6"
4545
fugit-timer = "0.1.3"
4646
rtic-monotonic = { version = "1.0", optional = true }
4747
systick-monotonic = { version = "1.0", optional = true }
4848
bitflags = "1.3.2"
4949
embedded-storage = "0.2"
5050

5151
[dependencies.time]
52-
version = "0.3"
52+
version = "0.3.14"
5353
default-features = false
5454

5555
[dependencies.embedded-hal-one]
@@ -62,22 +62,22 @@ optional = true
6262

6363
[dev-dependencies]
6464
defmt-rtt = "0.3.2"
65-
panic-semihosting = "0.5.3"
66-
cortex-m-semihosting = "0.3.3"
67-
heapless = "0.7.5"
65+
panic-semihosting = "0.6.0"
66+
cortex-m-semihosting = "0.5.0"
67+
heapless = "0.7.16"
6868
panic-halt = "0.2.0"
69-
ssd1306 = "0.7.0"
69+
ssd1306 = "0.7.1"
7070
embedded-graphics = "0.7.1"
71-
usb-device = "0.2.5"
72-
usbd-serial = "0.1.0"
71+
usb-device = "0.2.9"
72+
usbd-serial = "0.1.1"
7373
micromath = "2"
74-
cortex-m-rtic = "1.0"
74+
cortex-m-rtic = "1.1.3"
7575
dwt-systick-monotonic = "1.0"
76-
st7789 = "0.6.1"
76+
st7789 = "0.7.0"
7777
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
7878
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
79-
display-interface-spi = "0.4"
80-
ist7920 = "0.1.0"
79+
display-interface-spi = "0.4.1"
80+
ist7920 = "0.1.1"
8181
smart-leds = "0.3.0"
8282
ws2812-spi = { version = "0.4.0", features = [] }
8383
hd44780-driver = "0.4.0"

examples/can-send.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use panic_halt as _;
88

99
use bxcan::filter::Mask32;
10-
use bxcan::{Frame, StandardId};
10+
use bxcan::{Fifo, Frame, StandardId};
1111
use cortex_m_rt::entry;
1212
use nb::block;
1313
use stm32f4xx_hal::{pac, prelude::*};
@@ -41,7 +41,7 @@ fn main() -> ! {
4141

4242
// Configure filters so that can frames can be received.
4343
let mut filters = can1.modify_filters();
44-
filters.enable_bank(0, Mask32::accept_all());
44+
filters.enable_bank(0, Fifo::Fifo0, Mask32::accept_all());
4545

4646
let _can2 = {
4747
let tx = gpiob.pb13.into_alternate();
@@ -59,7 +59,7 @@ fn main() -> ! {
5959
// Split them equally between CAN1 and CAN2.
6060
filters.set_split(14);
6161
let mut slave_filters = filters.slave_filters();
62-
slave_filters.enable_bank(14, Mask32::accept_all());
62+
slave_filters.enable_bank(14, Fifo::Fifo0, Mask32::accept_all());
6363
can2
6464
};
6565

examples/dynamic_gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn main() -> ! {
3636
loop {
3737
pin.make_floating_input();
3838
block!(timer.wait()).unwrap();
39-
hprintln!("{}", pin.is_high().unwrap()).unwrap();
39+
hprintln!("{}", pin.is_high().unwrap());
4040

4141
pin.make_push_pull_output_in_state(PinState::High);
4242
block!(timer.wait()).unwrap();

examples/f413disco_lcd_ferris.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,6 @@ fn main() -> ! {
740740
// We're not using the "tearing" signal from the display
741741
let mut _te = gpiob.pb14.into_floating_input();
742742

743-
// Enable backlight
744-
gpioe.pe5.into_push_pull_output().set_high();
745-
746743
// Get delay provider
747744
let mut delay = cp.SYST.delay(&clocks);
748745

@@ -754,7 +751,13 @@ fn main() -> ! {
754751
let (_fsmc, interface) = FsmcLcd::new(p.FSMC, lcd_pins, &read_timing, &write_timing);
755752

756753
// Pass display-interface instance ST7789 driver to setup a new display
757-
let mut disp = ST7789::new(interface, rst, 240, 240);
754+
let mut disp = ST7789::new(
755+
interface,
756+
Some(rst),
757+
Some(gpioe.pe5.into_push_pull_output()),
758+
240,
759+
240,
760+
);
758761

759762
// Initialise the display and clear the screen
760763
disp.init(&mut delay).unwrap();

examples/sd.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn main() -> ! {
4242
let cmd = gpiod.pd2.into_alternate().internal_pull_up(true);
4343
let mut sdio: Sdio<SdCard> = Sdio::new(device.SDIO, (clk, cmd, d0, d1, d2, d3), &clocks);
4444

45-
hprintln!("Waiting for card...").ok();
45+
hprintln!("Waiting for card...");
4646

4747
// Wait for card to be ready
4848
loop {
@@ -55,20 +55,20 @@ fn main() -> ! {
5555
}
5656

5757
let nblocks = sdio.card().map(|c| c.block_count()).unwrap_or(0);
58-
hprintln!("Card detected: nbr of blocks: {:?}", nblocks).ok();
58+
hprintln!("Card detected: nbr of blocks: {:?}", nblocks);
5959

6060
// Read a block from the card and print the data
6161
let mut block = [0u8; 512];
6262

6363
match sdio.read_block(0, &mut block) {
6464
Ok(()) => (),
6565
Err(err) => {
66-
hprintln!("Failed to read block: {:?}", err).ok();
66+
hprintln!("Failed to read block: {:?}", err);
6767
}
6868
}
6969

7070
for b in block.iter() {
71-
hprint!("{:X} ", b).ok();
71+
hprint!("{:X} ", b);
7272
}
7373

7474
loop {

examples/st7789-lcd.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,17 @@ fn main() -> ! {
103103
// https://github.com/STMicroelectronics/STM32CubeF4/blob/e084518f363e04344dc37822210a75e87377b200/Drivers/BSP/Components/st7789h2/st7789h2.c
104104

105105
// Add LCD controller driver
106-
let mut lcd = ST7789::new(interface, lcd_reset, 240, 240);
106+
let mut lcd = ST7789::new(
107+
interface,
108+
Some(lcd_reset),
109+
Some(backlight_control),
110+
240,
111+
240,
112+
);
107113
// Initialise the display and clear the screen
108114
lcd.init(&mut delay).unwrap();
109115
lcd.clear(Rgb565::BLACK).unwrap();
110116

111-
// Turn on backlight
112-
backlight_control.set_high();
113-
114117
// Draw some circles
115118
let test_colors = [
116119
Rgb565::new(0x4e >> 3, 0x79 >> 2, 0xa7 >> 3),

examples/timer-periph.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,32 @@ fn main() -> ! {
3030
let mut timer = dp.TIM1.counter_ms(&clocks);
3131
timer.start(1.secs()).unwrap();
3232

33-
hprintln!("hello!").unwrap();
33+
hprintln!("hello!");
3434
// wait until timer expires
3535
nb::block!(timer.wait()).unwrap();
36-
hprintln!("timer expired 1").unwrap();
36+
hprintln!("timer expired 1");
3737

3838
// the function counter_ms() creates a periodic timer, so it is automatically
3939
// restarted
4040
nb::block!(timer.wait()).unwrap();
41-
hprintln!("timer expired 2").unwrap();
41+
hprintln!("timer expired 2");
4242

4343
// cancel current timer
4444
timer.cancel().unwrap();
4545

4646
// start it again
4747
timer.start(1.secs()).unwrap();
4848
nb::block!(timer.wait()).unwrap();
49-
hprintln!("timer expired 3").unwrap();
49+
hprintln!("timer expired 3");
5050

5151
timer.cancel().unwrap();
5252
let cancel_outcome = timer.cancel();
5353
assert_eq!(cancel_outcome, Err(Error::Disabled));
54-
hprintln!("ehy, you cannot cancel a timer two times!").unwrap();
54+
hprintln!("ehy, you cannot cancel a timer two times!");
5555
// this time the timer was not restarted, therefore this function should
5656
// wait forever
5757
nb::block!(timer.wait()).unwrap();
5858
// you should never see this print
59-
hprintln!("if you see this there is something wrong").unwrap();
59+
hprintln!("if you see this there is something wrong");
6060
panic!();
6161
}

examples/timer-syst.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,32 @@ fn main() -> ! {
3131
let mut timer = cp.SYST.counter_us(&clocks);
3232
timer.start(42.millis()).unwrap();
3333

34-
hprintln!("hello!").unwrap();
34+
hprintln!("hello!");
3535
// wait until timer expires
3636
nb::block!(timer.wait()).unwrap();
37-
hprintln!("timer expired 1").unwrap();
37+
hprintln!("timer expired 1");
3838

3939
// the function syst() creates a periodic timer, so it is automatically
4040
// restarted
4141
nb::block!(timer.wait()).unwrap();
42-
hprintln!("timer expired 2").unwrap();
42+
hprintln!("timer expired 2");
4343

4444
// cancel current timer
4545
timer.cancel().unwrap();
4646

4747
// start it again
4848
timer.start(42.millis()).unwrap();
4949
nb::block!(timer.wait()).unwrap();
50-
hprintln!("timer expired 3").unwrap();
50+
hprintln!("timer expired 3");
5151

5252
timer.cancel().unwrap();
5353
let cancel_outcome = timer.cancel();
5454
assert_eq!(cancel_outcome, Err(Error::Disabled));
55-
hprintln!("ehy, you cannot cancel a timer two times!").unwrap();
55+
hprintln!("ehy, you cannot cancel a timer two times!");
5656
// this time the timer was not restarted, therefore this function should
5757
// wait forever
5858
nb::block!(timer.wait()).unwrap();
5959
// you should never see this print
60-
hprintln!("if you see this there is something wrong").unwrap();
60+
hprintln!("if you see this there is something wrong");
6161
panic!();
6262
}

0 commit comments

Comments
 (0)