Commit Graph

2904 Commits

Author SHA1 Message Date
9a873d1dbf Ensure that the sampling is stopped
Ensures that nRF saadc sampling is stopped and is awaited prior to exiting the two sampling methods. Not doing so causes a potential power drain and the potential for dropped buffer writes when having finished continuous sampling.
2022-08-26 14:40:20 +10:00
1125d57842 Merge #924
924: Ensure interrupt::take works without embassy-executor r=lulf a=lulf

Add "rtos-trace-interrupt" feature flag on embassy-macros and enable it
for embassy-executor, to ensure that the interrupt::take! macro can be
used without depending on embassy-executor.

Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-08-25 10:46:56 +00:00
045ae2c29f Ensure interrupt::take works without embassy-executor
Add "rtos-trace-interrupt" feature flag on embassy-macros and enable it
for embassy-executor, to ensure that the interrupt::take! macro can be
used without depending on embassy-executor.
2022-08-25 12:46:24 +02:00
529535194d Merge #926
926: nrf: PPI fixes r=Dirbaio a=Dirbaio

- Feature-gate DPPI-only stuff that should be feature-gated
- Fix unsoundness due to Task/Event ptr being public: this meant you could construct a Task/Event with an arbitrary pointer and then safely call `Ppi::new_*` which would blindly write to it. Now you have to go through `Task/Event::new_unchecked` which is unsafe, with the right safety contract.

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-24 00:05:38 +00:00
91a9168a32 nrf/ppi: fix unsoundness due to task/event ptrs being public. 2022-08-24 01:54:27 +02:00
02562ed87d nrf/ppi: feature-gate dppi stuff. 2022-08-24 01:52:15 +02:00
9947e27ee1 Merge #925
925: Enable 'std' feature on critical-section for WASM r=Dirbaio a=lulf

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.

Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-08-23 18:41:34 +00:00
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
6530c179b2 Merge pull request #923 from lulf/doc-warnings2
Fix warnings after crate split
2022-08-23 14:30:10 +02:00
b6bc627b24 Add README for embassy-futures 2022-08-23 14:05:17 +02:00
189d4137cc Add readme for embassy-time 2022-08-23 13:58:57 +02:00
7b3ae0446c Remove cargo doc from CI 2022-08-23 13:55:21 +02:00
06011f67b2 Add README for embassy-sync 2022-08-23 13:54:40 +02:00
7b97e52886 Add doc build to CI for warning-free modules 2022-08-23 08:37:52 +02:00
0bb64c2f53 Fix warnings after crate split 2022-08-23 08:37:38 +02:00
cb9f0ef5b8 Merge #922
922: split `embassy-util` into `embassy-futures`, `embassy-sync`. r=Dirbaio a=Dirbaio



Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-22 20:18:40 +00:00
5677b13a86 sync: flatten module structure. 2022-08-22 22:18:13 +02:00
21072bee48 split embassy-util into embassy-futures, embassy-sync. 2022-08-22 22:18:13 +02:00
61356181b2 Merge #918
918: Doc warnings r=Dirbaio a=lulf

Fixing a few doc warnings in embassy-executor, embassy-time, embassy-usb and embassy-nrf. There are more left, but I need a break :D 



Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-08-22 14:43:56 +00:00
3e155d2ec3 nRF documentation warning fixes 2022-08-22 16:37:35 +02:00
5fddff849e Remove warnings for embassy-time 2022-08-22 16:33:39 +02:00
f2daad20ab Remove warnings 2022-08-22 16:33:39 +02:00
53fbd0efb3 Merge #921
921: rp: fix nvic prio bits (it's 2, not 3) r=Dirbaio a=Dirbaio

bors r+

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-22 14:30:06 +00:00
f48391a685 rp: fix nvic prio bits (it's 2, not 3) 2022-08-22 16:29:34 +02:00
381ac97746 Merge #920
920: Remove Forever, switch to static_cell. r=Dirbaio a=Dirbaio



Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-22 14:12:13 +00:00
478f472784 Remove Forever, switch to static_cell. 2022-08-22 16:11:40 +02:00
1b95990258 Merge #897
897: Add support for `rtos-trace` behind a feature flag r=lulf a=quentinmit

This allows SystemView to be used to profile the behavior of the user's application.

Co-authored-by: Quentin Smith <quentin@mit.edu>
2022-08-21 13:18:04 +00:00
614b894ff8 Switch to crates.io version of systemview-target 2022-08-20 14:16:06 -04:00
b7d77985cf Merge #916
916: Lpuart hil r=Dirbaio a=Dirbaio

depends on #915 

bors r+

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-20 01:44:06 +00:00
461cce255e tests/stm32: add lpuart test on stm32wb55 2022-08-20 03:42:55 +02:00
872e0026ea Merge #915
915: Implement support for LPUART r=Dirbaio a=FrozenDroid

Turns out zero commits is not quite enough to get it implemented (#800), so let's try it again ;)

Co-authored-by: Vincent Stakenburg <v.stakenburg@cosinuss.nl>
2022-08-20 00:55:45 +00:00
0c7ad54793 Fetch systemview-target from upstream git 2022-08-19 11:58:45 -04:00
52c1e48edb update stm32-data 2022-08-19 15:31:26 +02:00
51359e7d24 fix lpuart implementation when there isn't one present 2022-08-19 15:27:11 +02:00
a833e02363 implement support for LPUART 2022-08-19 12:05:19 +02:00
5ce18f4915 Fix package name for the new nrf-rtos-trace example 2022-08-19 00:54:53 -04:00
71e468681b Merge branch 'master' of https://github.com/embassy-rs/embassy into rtos-trace 2022-08-19 00:53:41 -04:00
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
3572da29c8 Merge #912
912: net: update atomic-pool, atomic-polyfill. r=Dirbaio a=Dirbaio

bors r+

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-18 12:46:02 +00:00
ce407474a7 net: update atomic-pool, atomic-polyfill. 2022-08-18 14:45:07 +02:00
0f74f870b0 Fix rp uart example 2022-08-18 14:01:37 +02:00
1ea52d3442 Merge #911
911: hal-common: Remove unused dep r=Dirbaio a=Dirbaio

bors r+

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-18 09:11:28 +00:00
fe38d240e5 hal-common: Remove unused dep 2022-08-18 11:10:51 +02:00
d52c7ded49 Implement remaining logic for blocking UART. async is still todo, awaiting DMA 2022-08-18 10:23:29 +02:00
2edf532f8d Move rtos-trace example to a separate project to simplify Cargo.toml 2022-08-18 01:38:58 -04:00
be55d2a39e Merge #909
909: Split embassy-time from embassy-executor. r=Dirbaio a=Dirbaio

For now this will fail to link unless you enable `embassy-executor/integrated-timers`. i'll add an executor-independent timer queue to `embassy-time` later.

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-17 23:22:52 +00:00
5daa173ce4 Split embassy-time from embassy-executor. 2022-08-18 01:22:30 +02:00
1c5b54a482 Merge #908
908: Remove HAL initialization from #[embassy_executor::main] macro. r=Dirbaio a=Dirbaio



Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-17 20:27:42 +00:00
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
fc6e1e06b3 Remove HAL initialization from #[embassy::main] macro. 2022-08-17 22:16:46 +02:00