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
bors[bot]
24ab21a7dd
Merge #913
...
913: (embassy-rp): Add DMA implementation r=Dirbaio a=MathiasKoch
This PR adds everything necessary to do peripheral to memory DMA & memory to memory DMA operations.
It also adds async UART read & write, powered by DMA
Co-authored-by: Mathias <mk@blackbird.online>
2022-08-26 10:57:10 +00:00
Dario Nieuwenhuis
a730e2cd0f
rp: add usb device support.
2022-08-25 00:03:55 +02:00
Quentin Smith
2900ab79e7
Merge remote-tracking branch 'origin/master' into nrf-pdm
2022-08-23 23:01:51 -04:00
Ulf Lilleengen
bd4ae2e952
Enable 'std' feature on critical-section for WASM
...
This fixes the WASM support which was failing due to missing
critical-section implementation. This also upgrades the bindgen
dependency and ensures that tooling works.
2022-08-23 20:00:34 +02:00
Mathias
36cf719a18
Merge branch 'master' of https://github.com/embassy-rs/embassy into embassy-rp/dma
2022-08-23 13:24:52 +02:00
Dario Nieuwenhuis
9218aff498
Update Embassy.
2022-08-23 01:06:14 +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
945449b10f
Update Embassy.
2022-08-22 17:26:05 +02:00
Dario Nieuwenhuis
478f472784
Remove Forever, switch to static_cell.
2022-08-22 16:11:40 +02:00
Quentin Smith
14eae9ca06
Optimize pdm_continuous example
2022-08-21 12:40:51 -04:00
Quentin Smith
64154fec8c
Demonstrate FFT in example
2022-08-21 02:43:13 -04:00
Quentin Smith
ed97e61dbe
PDM clock frequency control
2022-08-21 02:16:26 -04:00
Quentin Smith
3d26573c6b
Discard the first N samples due to transients
2022-08-21 01:44:04 -04:00
Quentin Smith
0963b5f92c
Add continuous PDM sampling with example
2022-08-20 17:58:54 -04:00
Quentin Smith
530f192acc
Set gain at runtime
2022-08-20 17:08:29 -04:00
Quentin Smith
a46f33b214
Initial PDM driver
2022-08-20 16:37:51 -04:00
Quentin Smith
614b894ff8
Switch to crates.io version of systemview-target
2022-08-20 14:16:06 -04:00
Daniel Bevenius
6b4555a6a7
Add comments about Country Locale Matrix (CLM)
...
This commit add comments about what CLM stands for.
The motivation of this is that I think it helps understanding the code
for users who are new to the codebase (like me).
2022-08-20 10:52:45 +02:00
Quentin Smith
0c7ad54793
Fetch systemview-target from upstream git
2022-08-19 11:58:45 -04:00
Mathias
a29972413b
Fix uart rp2040 blocking example
2022-08-19 08:48:52 +02:00
Quentin Smith
5ce18f4915
Fix package name for the new nrf-rtos-trace example
2022-08-19 00:54:53 -04:00
Quentin Smith
71e468681b
Merge branch 'master' of https://github.com/embassy-rs/embassy into rtos-trace
2022-08-19 00:53:41 -04:00
bors[bot]
aefa5275a2
Merge #910
...
910: (embassy-rp): Implement remaining logic for blocking UART r=lulf a=MathiasKoch
async read/write is still `todo!()`, awaiting DMA implementation.
Co-authored-by: Mathias <mk@blackbird.online>
2022-08-18 18:36:27 +00:00
Mathias
0f74f870b0
Fix rp uart example
2022-08-18 14:01:37 +02:00
Quentin Smith
2edf532f8d
Move rtos-trace example to a separate project to simplify Cargo.toml
2022-08-18 01:38:58 -04: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
67edea4168
Update to critical-section 1.0, atomic-polyfill 1.0
2022-08-17 19:01:56 +02:00
Quentin Smith
7dfe119fe0
Run cargo fmt
2022-08-16 01:47:18 -04:00
Quentin Smith
cd561b19ef
Allow rtos_trace example to be used without log
2022-08-16 01:20:07 -04:00
Quentin Smith
c1d8c8cf36
Add example of rtos-trace / SystemView
2022-08-16 01:17:28 -04:00
Dario Nieuwenhuis
f76815d642
Update Embassy.
2022-08-13 15:37:30 +02:00
Artur Kowalski
865a91976c
Add UDP example app
2022-08-10 20:13:10 +02:00
bors[bot]
0e524247fa
Merge #896
...
896: Implement I2C pullup configuration r=lulf a=chemicstry
I wasn't sure if I should put frequency into config struct, so left it separate as in SPI periph.
Also added Copy derives to gpio types, not sure why they weren't?
Co-authored-by: chemicstry <chemicstry@gmail.com>
2022-08-10 10:08:27 +00:00
chemicstry
6498324b58
Implement I2C pullup configuration
2022-08-09 22:13:35 +03:00
Ulf Lilleengen
2e76b13a4c
Add example using embedded-nal-async traits
2022-08-09 14:44:18 +02:00
Ulf Lilleengen
80c1551153
Wrap buffers in a single state type
2022-08-09 14:43:55 +02:00
Ulf Lilleengen
18671b94ba
Implement embedded-nal-async traits for embassy-net
2022-08-08 16:51:34 +02:00
chemicstry
8a25906eff
Add DACv1 example for F4
2022-08-04 03:31:59 +03:00
chemicstry
d990740dd5
Restore F1 example chip
2022-08-04 03:07:42 +03:00
chemicstry
5f01e56728
Merge v1, v2 DAC and update register definitions
2022-08-04 03:02:57 +03:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
chemicstry
046778fc53
Improve ADC configuration options
2022-07-27 01:17:26 +03:00
Dario Nieuwenhuis
b5ff7c5d60
rename PwmPin::new_chX, update examples.
2022-07-23 16:16:29 +02:00
Dario Nieuwenhuis
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00