NBonaparte
ba2b4aad81
fix(nrf/spim): use OutputDrive
to set pin drives
2024-02-19 17:46:25 -08:00
Ulf Lilleengen
3739cc0699
fix warnings
2024-01-25 08:38:28 +01:00
Ulf Lilleengen
53ea850d28
rustfmt again
2024-01-24 21:23:54 +01:00
Ulf Lilleengen
4410aacafb
feat: add basic support for nRF51 chips to embassy-nrf
2024-01-24 21:23:54 +01:00
Dario Nieuwenhuis
2bc5e9523d
nrf/gpio: remove generics.
2024-01-22 21:32:10 +01:00
Dario Nieuwenhuis
495b8b739a
Change GPIO inherent methods back to &self
.
...
With the embedded-hal rc3 update I changed them to require `&mut self`, but
in retrospect I think `&self` is better, for extra flexibility.
This PR reverts the changes from the rc3 update to inherent methods.
2024-01-10 00:00:10 +01:00
Dario Nieuwenhuis
7fa954c027
nrf/gpio: add toggle.
2023-12-26 17:35:49 +01:00
Dario Nieuwenhuis
80c9d04bbd
stm32: add some docs.
2023-12-18 00:53:18 +01:00
Dario Nieuwenhuis
d81395fab3
Update embedded-hal to 1.0.0-rc.3
2023-12-14 16:19:32 +01:00
Dario Nieuwenhuis
c6989dfbca
Remove nightly and unstable-traits features in preparation for 1.75.
2023-11-29 17:26:33 +01:00
Dario Nieuwenhuis
036e6ae30c
Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. ( #1700 )
2023-07-28 13:23:22 +02:00
Dario Nieuwenhuis
b5cf332cc0
nrf: docs.
2023-02-01 01:17:41 +01:00
Joakim Hulthe
64e610fef7
Replace Level: Into<bool>
with From<Level>
...
This automatically implements Into<bool> for Level
2023-01-23 13:35:24 +01:00
Matthias Devlamynck
2c8080b0ae
Add Clone & Copy on embassy_nrf::gpio::Level
2022-12-29 17:26:49 +01:00
Ulf Lilleengen
72c2e985bb
Update embedded-hal versions and explicitly pin
2022-09-29 11:27:46 +02:00
Ulf Lilleengen
3e155d2ec3
nRF documentation warning fixes
2022-08-22 16:37:35 +02:00
Dario Nieuwenhuis
f02ba35482
Remove PeripheralRef::into_inner()
2022-07-23 14:27:45 +02:00
Dario Nieuwenhuis
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00
Dario Nieuwenhuis
be6408e202
Rename unsafe_impl_unborrow to impl_unborrow
2022-07-23 01:33:22 +02:00
Grant Miller
bff0ad9286
Update embassy-rp
2022-07-23 01:33:22 +02:00
Grant Miller
65a82d02d1
WIP: Make unborrow safe to use
2022-07-23 01:33:22 +02:00
chemicstry
53e40860c1
Move all gpio logic to Flex
2022-07-13 02:45:37 +03:00
chemicstry
a335589f34
Change get_set_level to get_output_level
2022-07-13 02:25:09 +03:00
chemicstry
8cebbde101
Add convenience GPIO functions to NRF
2022-07-13 02:21:42 +03:00
Ulf Lilleengen
ca59c1ff35
Add more API docs for embassy-cortex-m and embassy-nrf
2022-06-23 13:17:56 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Dario Nieuwenhuis
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
Dario Nieuwenhuis
29402fa76b
nrf/gpio: add input+output to Flex, for OpenDrain.
2022-05-03 00:52:48 +02:00
Dario Nieuwenhuis
6d994351a6
nrf/gpio: Make Input is_high/is_low public.
2022-03-17 23:27:55 +01:00
Dario Nieuwenhuis
6de02bb23e
nrf: remove OptionalPin
2022-02-12 01:07:02 +01:00
Dario Nieuwenhuis
7997687f3b
nrf: impl embedded-hal 1.0 and embedded-hal-async traits.
2022-01-13 23:56:39 +01:00
Dario Nieuwenhuis
c432d036c7
nrf/gpiote: expose all functionality as inherent methods.
2022-01-13 23:56:39 +01:00
Dario Nieuwenhuis
3ca01cba8d
nrf/gpio: Rename FlexPin to Flex.
...
FlexPin sounds like it's an owned pin singleton, like AnyPin or NoPin.
2022-01-13 23:56:39 +01:00
Dario Nieuwenhuis
22bc1e4ae1
nrf/gpio: add infallible inherent methods, remove some duplication.
...
This implements Input and Output using FlexPin, to avoid some code duplication.
2021-12-20 00:55:18 +01:00
Ulf Lilleengen
2bbd1ddb8a
Remove unneeded rustfmt::skip
2021-12-16 11:37:53 +01:00
Dario Nieuwenhuis
153b1bbdbf
nrf/gpiote: remove PortInput, move impls to Input.
2021-12-14 13:23:40 +01:00
Dario Nieuwenhuis
663141b4e4
nrf: add initial nrf5340 support
2021-10-28 03:36:25 +02:00
Dario Nieuwenhuis
a2e7c24e00
Clippy fixes
2021-10-18 01:05:29 +02:00
Dion Dokter
2c2c284482
Undoing unnecessary changes
2021-10-12 11:55:38 +02:00
Dion Dokter
20674f7126
Initial support for nrf9160
2021-10-11 10:39:38 +02:00
Dario Nieuwenhuis
7bfb763e09
Rename embassy-extras to embassy-hal-common
2021-07-29 13:44:51 +02:00
Dario Nieuwenhuis
b449f6de9d
nrf/twim: deconfigure pins on drop
2021-05-26 18:23:10 +02:00
Dario Nieuwenhuis
105c8504b6
Mark Unborrow as unsafe to implement
2021-05-19 23:29:33 +02:00
Rukai
149ddf2f29
Fix warnings
2021-05-17 19:48:58 +10:00
Dario Nieuwenhuis
a5ad79927e
nrf: add Unborrow<Target = Self>
bound to all instance traits
2021-05-17 01:01:31 +02:00
Dario Nieuwenhuis
bd9589d0ce
nrf: add support for nrf52805, nrf52811, nrf52820
2021-05-17 00:57:20 +02:00
Richard Dodd
9d427a1ba4
Address issues in PR
...
Also add some documentation.
2021-05-05 18:33:45 +01:00
Richard Dodd
0b3ccca69b
Add a pin variant that can change between disconnected/input/output.
...
I'm in no way attached to the name and encourage better suggestions.
2021-05-05 14:46:51 +01:00
Dario Nieuwenhuis
97ca54fa66
Rename PeripheralBorrow to Unborrow
2021-04-14 19:59:52 +02:00
Dario Nieuwenhuis
402f7f1886
nrf/gpio: remove DummyPin
2021-04-10 01:48:37 +02:00