972cdd4265
rp/adc: rewrite the module
...
- don't require an irq binding for blocking-only adc
- abstract adc pins into an AnyPin like interface, erasing the actual
peripheral type at runtime.
- add pull-up/pull-down functions for adc pins
- add a test (mostly a copy of the example, to be honest)
- configure adc pads according to datasheet
- report conversion errors (although they seem exceedingly rare?)
- drop embedded-hal interfaces. embedded-hal channels can do neither
AnyPin nor pullup/pulldown without encoding both into the type
2023-07-07 17:46:35 +02:00
46a4600952
Merge pull request #1607 from MathiasKoch/embassy-stm32/rcc-rtc-l4
...
feature(embassy-stm32): L4 enable APB to allow RTC to work
2023-07-05 14:17:35 +00:00
27992d9c07
Merge pull request #1621 from rasmuspeders1/main
...
Remove bad semicolon in time driver example struct declaration
2023-07-05 15:45:27 +02:00
a0dc87d64e
Remove semicolon in time driver example struct declaration
...
The semicolon is not allowed with struct declarations with braces.
The doc test compiles fine for some reason!?
2023-07-05 14:07:05 +02:00
1255d8a8ce
Merge branch 'main' of https://github.com/embassy-rs/embassy into embassy-stm32/rcc-rtc-l4
2023-07-05 12:36:42 +02:00
3341b53eb4
Merge pull request #1619 from embassy-rs/nrf-time
...
nrf: build docs with `time` feature.
2023-07-04 22:40:52 +00:00
70c05c62e4
nrf: build docs with time
feature.
2023-07-05 00:35:22 +02:00
eb57bb298f
Merge pull request #1617 from xoviat/const-rcc
...
stm32/rcc: allow const-propagation
2023-07-04 22:31:55 +00:00
953c745ed8
stm32/rcc: allow const-propagation
2023-07-04 16:29:46 -05:00
ce73c29246
Merge pull request #1616 from embassy-rs/update-nightly
...
Update nightly
2023-07-04 19:44:55 +00:00
9c4df46c46
rustfmt.
2023-07-04 21:34:55 +02:00
2a035a24a6
Update nightly.
2023-07-04 20:15:30 +02:00
10c0174903
doc: upload statics too.
2023-07-04 20:15:30 +02:00
d26a247a32
Merge pull request #1615 from embassy-rs/update-eh2
...
update embedded-hal crates.
2023-07-04 18:03:05 +00:00
a101d9078d
update embedded-hal crates.
2023-07-04 19:59:36 +02:00
b2f843a4ce
Merge pull request #1614 from cumthugo/fix_queue_size
...
time: fix queue size
2023-07-04 13:17:14 +00:00
40d25da793
time: fix queue size
2023-07-04 21:13:31 +08:00
b956d5d06c
Merge pull request #1613 from diondokter/fix-nrf-spim-nightly
...
Fix nrf spim nightly error
2023-07-04 10:55:15 +00:00
0845eab8a0
Merge pull request #1612 from wyager/fmc-bank1-16bit
...
Add stm32 FMC support for bank 1 16-bit RAM
2023-07-04 10:45:17 +00:00
582c721aec
Add lifetimes to the functions
2023-07-04 11:48:59 +02:00
0c4180cdd0
fmt
2023-07-03 19:39:58 -04:00
d9824dfd64
Add bank 1 16 bit
2023-07-03 19:39:51 -04:00
60b2f075dc
Merge branch 'main' of https://github.com/embassy-rs/embassy into embassy-stm32/rcc-rtc-l4
2023-07-03 19:33:26 +02:00
99b4ea7c1d
Merge pull request #1609 from embassy-rs/fix-peripheral-deref
...
hal-common: require DerefMut for peripherals, not just Deref.
2023-07-02 20:20:47 +00:00
c9b9be5b81
hal-common: require DerefMut for peripherals, not just Deref.
...
Otherwise you can create multiple drivers on the same singleton like this:
```rust
let mut input = Input::new(&pin, Pull::None);
let mut output = Output::new(&pin, Level::Low, Speed::Low);
input.is_high();
output.set_high();
input.is_high();
output.set_high();
```
Thanks @pennae for reporting.
2023-07-02 22:16:01 +02:00
d372df7ddb
L4: Switch to MSI to prevent problems with PLL configuration, and enable power to AHB bus clock to allow RTC to run
2023-07-01 12:16:23 +02:00
ba43444292
Merge pull request #1601 from embassy-rs/net-release
...
Release embassy-net v0.1
embassy-net-driver-channel-v0.1.0
embassy-net-driver-v0.1.0
embassy-net-v0.1.0
2023-06-29 20:01:10 +02:00
6eac49186d
Release embassy-net v0.1
2023-06-29 19:55:32 +02:00
4feabb13bf
Merge pull request #1599 from ilikepi63/main
...
feature(1355): Add trigger to task, triggered + clear to Event
2023-06-29 15:53:11 +00:00
3f19879f41
PR Fixes
2023-06-29 17:44:46 +02:00
e90f47aba3
Fixed Pointer Updates
2023-06-29 17:37:51 +02:00
2aa2b843ce
feature(1355): Add trigger to task, triggered + clear to Event
2023-06-29 17:11:36 +02:00
fa2cda81db
Merge pull request #1598 from kaspar030/patch-1
...
embassy-boot/nrf/README.md: typo fix
2023-06-29 12:57:55 +00:00
837d3bcdbb
embassy-boot/nrf/README.md: typo fix
2023-06-29 14:43:31 +02:00
9f50f34547
Merge pull request #1597 from embassy-rs/usb-missing-reexports
...
usb: add missing builder reexports.
2023-06-29 10:24:25 +00:00
f0b17675d8
usb: add missing builder reexports.
...
Fixes #1176
cc #1596
2023-06-29 12:20:51 +02:00
6eb46c419c
Merge pull request #1565 from JuliDi/main
...
Implement DMA for DAC on STM32
2023-06-29 08:54:28 +00:00
96f1525ffe
Revert changes to dma.rs
2023-06-29 09:20:25 +02:00
01101e3df0
Update readme
2023-06-29 03:11:22 +02:00
b95e5a4ea6
Merge pull request #1595 from embassy-rs/probe-rs
...
Update probe-rs-cli -> probe-rs
2023-06-29 00:43:44 +00:00
f7ec579c18
Update probe-rs-cli -> probe-rs
2023-06-29 02:39:28 +02:00
4f0aca481f
Merge pull request #1594 from embassy-rs/update-rp-pac
...
Update rp-pac.
2023-06-29 00:15:13 +00:00
ce889900d6
Update rp-pac.
2023-06-29 02:09:51 +02:00
8a0a7c81b6
Merge pull request #1593 from embassy-rs/metapac-update
...
Update stm32-metapac, includes chiptool changes to use real Rust enums.
2023-06-29 00:06:44 +00:00
e892014b65
Update stm32-metapac, includes chiptool changes to use real Rust enums now.
2023-06-29 02:01:33 +02:00
8cbe5b8e20
Merge pull request #1592 from kevswims/feature/stm32g4-usb-crs
...
WIP: Working CRS USB Example
2023-06-28 22:55:11 +00:00
5666c56903
STM32G4: Add CRS support to RCC
...
Create working CRS USB Example
2023-06-28 16:53:16 -06:00
d5898c11eb
remove need for StaticCell in dac_dma example for stm32l4
2023-06-28 16:40:50 +02:00
daedfbbd87
add dma is_running change doc
2023-06-28 15:39:36 +02:00
bf7e24e9d7
revert to STM32L4S5VI
2023-06-28 15:37:29 +02:00