f48391a685
rp: fix nvic prio bits (it's 2, not 3)
2022-08-22 16:29:34 +02:00
295af2a057
Fix bit checking in DMA irq
2022-08-19 14:16:19 +02:00
331a64a4ea
Add back public dma::copy, and correct dma incr settings for read/write
2022-08-19 10:43:59 +02:00
140ef4febf
Add DMA_IRQ0 handling to Transfer
2022-08-19 09:48:58 +02:00
aa586fe1de
Simplify waker storage for DMA state
2022-08-18 21:27:37 +02:00
debff0980d
Don't increment read address in DMA copy from peripherals
2022-08-18 21:20:47 +02:00
1d49b3444f
Add DMA read + write functions
2022-08-18 21:09:50 +02:00
a7d6bc7ba5
Merge branch 'master' of https://github.com/embassy-rs/embassy into embassy-rp/dma
2022-08-18 21:08:57 +02: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
9c9b7b1a66
Remove unneeded NoDma struct
2022-08-18 20:34:55 +02:00
55a63a5417
Attempt to implement future for DMA transfer
2022-08-18 20:30:50 +02:00
3bbfc11f45
Stop active DMA transfer on drop
2022-08-18 20:30:24 +02:00
d35a1c9790
Preliminary DMA support for RP2040
2022-08-18 19:39:13 +02:00
0f74f870b0
Fix rp uart example
2022-08-18 14:01:37 +02:00
d52c7ded49
Implement remaining logic for blocking UART. async is still todo, awaiting DMA
2022-08-18 10:23:29 +02:00
5daa173ce4
Split embassy-time from embassy-executor.
2022-08-18 01:22:30 +02:00
fc6e1e06b3
Remove HAL initialization from #[embassy::main] macro.
2022-08-17 22:16:46 +02:00
67edea4168
Update to critical-section 1.0, atomic-polyfill 1.0
2022-08-17 19:01:56 +02:00
6c10fa44d0
rp/gpio: fix wait_for_* when multiple pins are in use.
2022-08-08 00:22:08 +02:00
89e2e25d6f
rp/gpio: remove unused lifetimes.
2022-08-07 23:25:50 +02:00
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
f02ba35482
Remove PeripheralRef::into_inner()
2022-07-23 14:27:45 +02:00
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00
8a9d2f59af
Update embassy-stm32
2022-07-23 02:40:13 +02:00
be6408e202
Rename unsafe_impl_unborrow to impl_unborrow
2022-07-23 01:33:22 +02:00
bff0ad9286
Update embassy-rp
2022-07-23 01:33:22 +02:00
e757b1882e
Add inline attribute to embassy-rp async functions
...
This commit adds the inline attribute to the recently added async gpio
functions. This is to enable cross-crate inlining and to be consistent
with the other functions implemented for Input and Flex.
2022-07-22 07:24:14 +02:00
aff840cf30
Fix build of embassy-rp on stable channel
2022-07-21 20:14:45 +00:00
8979959dd1
Add embedded_hal_async support for embassy-rp
...
This commit adds support for embedded-hal-async to the Embassy
Raspberry PI crate.
2022-07-14 13:52:22 +02:00
53e40860c1
Move all gpio logic to Flex
2022-07-13 02:45:37 +03:00
a335589f34
Change get_set_level to get_output_level
2022-07-13 02:25:09 +03:00
57002875d6
Add convenience GPIO functions to RP
2022-07-13 02:22:46 +03:00
5f43c1d37e
Merge #850
...
850: Shared buses with SetConfig r=Dirbaio a=kalkyl
Addresses issue #830
Co-authored-by: Henrik Alsér <henrik@mindbite.se >
2022-07-10 00:03:44 +00:00
baae64d911
Add embassy-embedded-hal nightly feature
2022-07-09 23:41:02 +02:00
5cc5961c94
rp/gpio: add Flex.
2022-07-09 02:14:30 +02:00
85e67d94ad
impl SetConfig for rp2040 SPI
2022-07-09 00:32:55 +02:00
948bb93dc2
docs: Add $COMMIT to git srclinks.
2022-06-26 23:55:38 +02:00
1f746e0939
Remove the authors field from Cargo.tomls
...
It currently contains whoever was first to write some code for the crate,
even if many more people have contributed to it later.
The field is "sort of" deprecated, it was made optional recently:
https://rust-lang.github.io/rfcs/3052-optional-authors-field.html
Due the the reasons listed there I believe removing it is better than
setting it to generic fluff like "The Embassy contributors".
2022-06-18 02:16:40 +02:00
88e36a70bd
Update to 2021 edition. ( #820 )
2022-06-18 02:15:48 +02:00
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
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
6320e30adf
Update embedded-hal-async to 0.1.0-alpha.1
2022-05-29 22:34:08 +02:00
027ab3371e
Impl OutputPin/StatefulOutputPin/ToggleableOutputPin
...
This commit implements embedded_hal_02::digital::v2 OutputPin,
StatefulOutputPin, and ToggleableOutputPin for embassy-rp.
2022-05-21 10:11:12 +02:00
c8461709e3
Add open-drain support for embassy-rp
...
This commit adds open-drain support for embassy-rp by adding a new type
named embassy_rp::gpio::OutputOpenDrain.
2022-05-21 10:11:06 +02:00
4b0dca1802
Add new lines between SIO methods
...
The commit adds new lines between the SIO functions which at least for
me improves readability and is consistent with the other methods in the
trait.
2022-05-19 13:45:40 +02:00
dd7a34fdc8
Merge pull request #773 from danbev/embassy-rp-ouput-drop
...
Impl drop for embassy-rp gpio Output
2022-05-19 07:13:13 +02:00
99c2defa76
squash! Impl ToggleableOutputPin for embassy-rp Output
...
Use value_xor as suggested in pull request feedback.
2022-05-19 06:07:14 +02:00
da97944322
Impl ToggleableOutputPin for embassy-rp Output
2022-05-19 05:33:42 +02:00
a3e0fcef0b
Impl drop for embassy-rp gpio Output
...
This commit implements drop for embassy-rp gpio Output which is
currently a todo.
2022-05-17 08:43:03 +02:00
0bb428dcc0
squash! Implement Output::is_set_low for embassy-rp
...
Add check for the bit of the current pin.
2022-05-11 18:33:13 +02:00