Dario Nieuwenhuis
f1e7205055
stm32/rtc: enable lse in examples.
2023-09-30 00:18:30 +02:00
Dario Nieuwenhuis
5d8817d109
stm32/usart: return error instead of panicking on bad baudrate.
2023-09-26 00:19:27 +02:00
ceekdee
7d5e62d4a7
Update for rust-lorawan and lora-phy version 2.
2023-09-24 10:33:03 -05:00
xoviat
11a78fb1e4
rcc: more cleanup
2023-09-08 18:20:58 -05:00
xoviat
3bf6081eb5
stm32: fix wl re-export
2023-08-27 09:41:31 -05:00
xoviat
6fc5c608f8
stm32/rtc: remove generics and segregate clock sel
2023-08-08 19:47:01 -05:00
xoviat
ae608cf2fa
stm32: fix rtc and examples
2023-08-06 12:06:29 -05:00
Dario Nieuwenhuis
4999b045df
stm32/rng: use bind_interrupts!.
2023-07-31 01:41:12 +02:00
Phil Markgraf
3bae533066
Enable RTC on STM32WL chips ( #1645 )
...
* Add clippy allow to not report if same then branch
* Support enabling RTC clock on STM32WL
* Add clippy allow to not report if same then branch
* Support enabling RTC clock on STM32WL
* Add rtc example for stm32wl
* Address code review feedback
2023-07-15 13:40:23 +02:00
Dario Nieuwenhuis
558918651e
stm32: update stm32-metapac.
2023-06-19 03:22:12 +02:00
Rasmus Melchior Jacobsen
8938d928f8
Fix examples
2023-05-25 22:36:56 +02:00
Rasmus Melchior Jacobsen
860b519f99
Let Flash<Async/Blocking> be a thing
2023-05-25 21:40:54 +02:00
Rasmus Melchior Jacobsen
7371eefa86
Align with new bind_interrupt
2023-05-25 20:07:42 +02:00
Rasmus Melchior Jacobsen
525e065474
Align examples
2023-05-25 20:07:42 +02:00
Rasmus Melchior Jacobsen
7477785bbb
Align examples
2023-05-25 20:07:41 +02:00
xoviat
b6ba1ea53a
stm32: move lora to bind_interrupts
2023-05-24 18:09:04 -05:00
Dario Nieuwenhuis
9f7392474b
Update Rust nightly.
2023-05-19 17:12:39 +02:00
Dirk Stolle
0584312ef0
Fix some typos
2023-05-08 23:25:01 +02:00
ceekdee
91612b7446
Simplify SUBGHZSPI configuration.
2023-05-04 09:45:18 -05:00
ceekdee
629e0ea595
Handle SUBGHZSPI as async.
2023-05-03 21:05:47 -05:00
ceekdee
f729d2d060
Deprecate original LoRa drivers. Update rust-lorawan releases.
2023-04-25 13:51:19 -05:00
ceekdee
73f25093c7
Add lora-phy examples.
2023-04-23 18:32:34 -05:00
ceekdee
02c86bca52
Add external LoRa physical layer functionality.
2023-04-21 01:20:46 -05:00
Ulf Lilleengen
63941432e3
Update to rust-lorawan with afit support
2023-04-15 01:00:12 +02:00
Rasmus Melchior Jacobsen
2a49e11cb0
Align flash examples
2023-04-05 10:55:31 +02:00
miathedev
a2712caab1
Add random example
2022-12-04 09:38:57 +01:00
miathedev
fc086fd4ba
Add uart async example
2022-11-01 10:38:02 +01:00
Mathias
a7fdeac560
Remove flash lock/unlock public API from stm32 flash, and perform the unlocking and locking automatically on erase and write operations
2022-09-30 06:00:46 +02:00
ivmarkov
c5ce02b30e
Remove default, reorder generic params
2022-09-25 09:40:36 +03:00
Dario Nieuwenhuis
897b72c872
Update Rust nightly.
...
Removes feature(generic_associated_types)
2022-09-22 16:38:14 +02:00
Ulf Lilleengen
6dab322c58
Use LP as default
2022-08-26 15:44:58 +02:00
Timo Kröger
f31116cafa
lora: Make some options configurable
...
Call `config()` only once at construction not with every RX and TX operation.
The Lora-E5 only supports HP mode, use that instead.
The nucleo board supports both HP and LP and should continue to work.
2022-08-26 15:44:58 +02:00
Timo Kröger
69d80c086d
lora: Use a trait for RF frontend switching
...
The Seeed Studio Lora-E5 module only has two control pins.
With the `RadioSwitch` trait the user can implement any method required
by the module/board to control the TX/RX direction of the radio frontend.
2022-08-26 15:44:58 +02:00
Timo Kröger
8e8106ef55
lora: Improve IRQ handling
...
* Interrupt handler only triggers a waker:
Do the actual interrupt processing which involves SUBGHZ SPI coms in the task.
* Do not require a static state for the constructor.
* Remove unsafe from construcor.
2022-08-26 15:44:57 +02:00
Timo Kröger
61c666212f
stm32wl: Do not require external SPI pins for SUBGHZ
...
For the Seeed Studio Lora-E5 those pins conflict with the radio frontend control GPIOS (PA4 and PA5).
2022-08-26 15:42:25 +02:00
Dario Nieuwenhuis
5677b13a86
sync: flatten module structure.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
21072bee48
split embassy-util
into embassy-futures
, embassy-sync
.
2022-08-22 22:18:13 +02:00
Dario Nieuwenhuis
5daa173ce4
Split embassy-time from embassy-executor.
2022-08-18 01:22:30 +02:00
Dario Nieuwenhuis
2e85eaf7d5
examples Remove the fn config()
idiom.
...
It was only useful for doing #[embassy_executor::main(config = "config()")]`. Now that
it's gone, it makes more sense to build the config in main directly.
2022-08-17 22:25:58 +02:00
Dario Nieuwenhuis
fc6e1e06b3
Remove HAL initialization from #[embassy::main] macro.
2022-08-17 22:16:46 +02:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
Ulf Lilleengen
daf3ea24d7
Document configuration options and handle optional downlink
2022-07-04 10:33:29 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Dario Nieuwenhuis
5085100df2
Add embassy-cortex-m crate.
...
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`.
- Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore)
- Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
2022-06-12 21:45:38 +02:00
Ulf Lilleengen
da61611f8f
Add bootloader to CI
2022-04-27 15:17:18 +02:00
Ulf Lilleengen
484e0acc63
Add stm32 flash + bootloader support
...
* Add flash drivers for L0, L1, L4, WB and WL. Not tested for WB, but
should be similar to WL.
* Add embassy-boot-stm32 for bootloading on STM32.
* Add flash examples and bootloader examples
* Update stm32-data
2022-04-27 15:17:18 +02:00
Ulf Lilleengen
2c0e28aa0c
Update to released lorawan crates
2022-04-26 19:06:15 +02:00
Ulf Lilleengen
86e52e67d0
Update to latest rust-lorawan version
2022-04-08 12:58:57 +02:00
Dario Nieuwenhuis
0c07d03754
Add missing stm32wl/stm32wb chips except stm32wle
2022-04-08 03:15:27 +02:00