Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# runner = "arm-none-eabi-gdb -q -x openocd.gdb"
# runner = "gdb-multiarch -q -x openocd.gdb"
# runner = "gdb -q -x openocd.gdb"
# runner = "probe-run --chip STM32F303VCTx --connect-under-reset"

rustflags = [
# LLD (shipped with the Rust toolchain) is used as the default linker
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ accelerometer = "0.12.0"
# For the stm32f303vc mcu
[dependencies.stm32f3xx-hal]
features = ["stm32f303xc", "rt"]
version = "0.7.0"
version = "0.8.0"

[dev-dependencies]
panic-halt = "0.2.0"
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ dual licensed as above, without any additional terms or conditions.

## Changelog

### Unreleased

- Bump HAL to 0.8.0 for getting back [`MonoTimer`](https://docs.rs/stm32f3xx-hal/0.8.0/stm32f3xx_hal/timer/struct.MonoTimer.html) which was accidentially droped with release 0.6.1 and came back with the latest release.

### 0.7.2

Implements the [Accelerometer trait](https://docs.rs/accelerometer/latest/accelerometer/trait.Accelerometer.html) from the [Accelerometer crate](https://crates.io/crates/accelerometer).
Expand Down Expand Up @@ -123,4 +127,4 @@ For details, see the [stm32f3xx-hal changelog](https://github.com/stm32-rs/stm32

### 0.3.2

- Re-export `lsm303dhlc` driver
- Re-export `lsm303dhlc` driver
7 changes: 4 additions & 3 deletions examples/blinky_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static TIM: Mutex<RefCell<Option<Timer<pac::TIM7>>>> = Mutex::new(RefCell::new(N
fn TIM7() {
free(|cs| {
if let Some(ref mut tim7) = TIM.borrow(cs).borrow_mut().deref_mut() {
tim7.clear_update_interrupt_flag()
tim7.clear_event(Event::Update);
}
});
}
Expand All @@ -39,8 +39,9 @@ fn main() -> ! {
let mut rcc = peripherals.RCC.constrain();

let clocks = rcc.cfgr.freeze(&mut flash.acr);
let mut timer = Timer::tim7(peripherals.TIM7, 2.Hz(), clocks, &mut rcc.apb1);
timer.listen(Event::Update);
let mut timer = Timer::new(peripherals.TIM7, clocks, &mut rcc.apb1);
timer.start(500u32.milliseconds());
timer.enable_interrupt(Event::Update);
free(|cs| {
TIM.borrow(cs).replace(Some(timer));
});
Expand Down