Commit Graph

6453 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
3b3b1ba346 Enable rust-analyzer proc-macros 2021-02-20 00:27:34 +01:00
Dario Nieuwenhuis
03ddc949a0 PeripheralMutex should be Unpin 2021-02-20 00:27:24 +01:00
Thales Fragoso
e16e3780fd Add missing interrupts for stm32f4 2021-02-17 19:41:23 -03:00
Thales Fragoso
fc7977bd9a Add remaining stm32f4 timers 2021-02-17 19:41:00 -03:00
Thales Fragoso
9d895a6383 Add RTC timer for stm32f4 2021-02-17 19:40:27 -03:00
Dario Nieuwenhuis
406f3b7cbf rtc: use SeqCst for periods. 2021-02-15 01:23:15 +01:00
Dario Nieuwenhuis
9d5e2d3881 SImplify rtc overflow handling 2021-02-15 01:01:45 +01:00
Dario Nieuwenhuis
e454969000
Merge pull request #46 from akiles/cm07
Update to cortex-m 0.7
2021-02-14 23:38:08 +01:00
Dario Nieuwenhuis
7321ddb0b3 Update to cortex-m 0.7 2021-02-14 23:26:50 +01:00
Dario Nieuwenhuis
957741c10f
Merge pull request #45 from thalesfragoso/remove-warn
Get rid of some warnings
2021-02-14 22:11:39 +01:00
Thales Fragoso
b69f72e055 Get rid of some warnings 2021-02-13 21:41:36 -03:00
Dario Nieuwenhuis
7d3878466c reexport smoltcp error/result 2021-02-12 01:48:21 +01:00
Dario Nieuwenhuis
a7797a918d nrf/gpiote: new api: switch to owned structs, implement WaitForHigh/WaitForLow. 2021-02-04 23:56:17 +01:00
Dario Nieuwenhuis
1879703153 CriticalSectionMutex should require Send. 2021-02-03 16:29:35 +01:00
Dario Nieuwenhuis
a7d1d02be0 Remove use of feature(const_in_array_repeat_expressions) 2021-02-03 05:25:25 +01:00
Dario Nieuwenhuis
803162f11b Actually add Ci 2021-02-03 05:17:29 +01:00
Dario Nieuwenhuis
10cd5bddc9 Add CI 2021-02-03 05:15:13 +01:00
Dario Nieuwenhuis
cb5931d583 🌈 2021-02-03 05:09:37 +01:00
Dario Nieuwenhuis
42c9a603bb Add embassy-std-examples 2021-02-03 05:05:05 +01:00
Dario Nieuwenhuis
cbea07716b Set alarm in std executor 2021-02-03 05:01:30 +01:00
Dario Nieuwenhuis
d71c4b4551 Make spawners Copy+Clone 2021-02-03 04:41:46 +01:00
Dario Nieuwenhuis
dc8240229b Remove set_alarm in std executor 2021-02-03 04:37:05 +01:00
Dario Nieuwenhuis
c8a79c151a Test embassy-std builds in CI 2021-02-03 04:30:20 +01:00
Dario Nieuwenhuis
4192e52629 Update embassy-std to new executor api 2021-02-03 04:30:11 +01:00
Dario Nieuwenhuis
edca627286
Merge pull request #44 from akiles/executor-v2
Executor API V2.
2021-02-03 03:47:40 +01:00
Dario Nieuwenhuis
aeaa34d7a1 Executor API V2.
- It's no longer possible to call run() reentrantly from within a task (soundness issue)
- it's now possible to spawn Send tasks across threads (SendSpawner, #37)
2021-02-02 05:20:41 +01:00
Dario Nieuwenhuis
d098952077 stm32f4/examples: add config and linker script so they're runnable. 2021-01-21 19:00:43 +01:00
Dario Nieuwenhuis
9240a1f437 stm32: add stm32f411 interrupts 2021-01-21 18:59:56 +01:00
Dario Nieuwenhuis
dd47bfbc2e stm32f4: Remove stm32f405 being default feature 2021-01-21 18:59:11 +01:00
Dario Nieuwenhuis
a44ab63341
Merge pull request #13 from xoviat/stm32-interrupt
Add EXTI interrupt handler for GPIO pins
2021-01-21 18:17:28 +01:00
xoviat
27cd3a03dc exti: add new ExtiPin driver 2021-01-21 11:08:38 -06:00
Dario Nieuwenhuis
57eabb372e
Merge pull request #31 from xoviat/interrupt-signal
add InterruptSignal
2021-01-21 18:04:13 +01:00
xoviat
e0183f4495 optimize interruptfuture
remove critical secitons, impl. Unpin
2021-01-21 10:59:14 -06:00
xoviat
6503f9dbf5 implement interruptfuture
converts an interrupt to a future
2021-01-21 10:22:30 -06:00
Dario Nieuwenhuis
27831124a7 Remove unused rtic dep 2021-01-21 01:07:04 +01:00
Dario Nieuwenhuis
5b897b6605 executor: Add 'raw' api to wake tasks through raw pointers. 2021-01-21 01:00:12 +01:00
Dario Nieuwenhuis
28b5d8e9f4
Merge pull request #26 from timokroeger/fix-irq-nr
Fix IRQ numbers
2021-01-17 18:52:43 +01:00
Timo Kröger
9f9d808948 Fix IRQ numbers
The raw enum values are not always equal to the interrupt number
fixes #23
2021-01-17 17:28:46 +01:00
Dario Nieuwenhuis
4e789c663c
Merge pull request #15 from akiles/gpio-wait
RFC: GPIO WaitForFoo traits
2021-01-15 23:06:07 +01:00
Dario Nieuwenhuis
28fe29fff3
Merge pull request #22 from xoviat/cleanup
minor cleanup to interface
2021-01-14 19:02:00 +01:00
xoviat
2b15a2674f minor cleanup to interface 2021-01-14 11:42:23 -06:00
Dario Nieuwenhuis
24d6b9ed6c Build stm32 and stm32-examples in test script.
Panic handler was missing, I had to add exaple_common.rs like in the nrf examples.
2021-01-14 00:53:05 +01:00
Dario Nieuwenhuis
0204d4e812
Merge pull request #17 from xoviat/implement-uart
implement uart on serial interface
2021-01-14 00:42:09 +01:00
xoviat
7adf99eff3 implement changes 2021-01-13 17:40:32 -06:00
Dario Nieuwenhuis
6963b314a2 nrf/rtc: fix race when setting alarms too close to now. 2021-01-13 03:17:58 +01:00
Dario Nieuwenhuis
5229a1991c nrf/rtc: use interrupt handler context for instance ptr 2021-01-13 03:17:42 +01:00
xoviat
c07f7467a0 Merge branch 'implement-uart' of ssh://github.com/xoviat/embassy into implement-uart 2021-01-12 14:00:39 -06:00
xoviat
914abdeb15 Merge branch 'master' of https://github.com/akiles/embassy into implement-uart 2021-01-12 14:00:12 -06:00
Dario Nieuwenhuis
7b94e06306 nrf/buffered_uarte: fix stop not actually waiting for stop 2021-01-11 11:24:34 +01:00
Dario Nieuwenhuis
41160c0d8d nrf/buffered_uarte: add set_baudrate 2021-01-11 10:40:37 +01:00