Commit Graph

943 Commits

Author SHA1 Message Date
Cyril Marpaud
34362b77cc
fix: typo 2024-04-17 12:56:18 +02:00
Alex Moon
34668bae5c Add wait_disabled method to embassy_nrf::usb::Endpoint 2024-04-16 12:14:22 -04:00
Priit Laes
fcb270bced nrf: Add basic CHANGELOG summarizing changes in embassy-nrf 2024-04-10 11:02:35 +03:00
Dario Nieuwenhuis
ab85eb4b60 nrf: remove mod sealed. 2024-04-05 00:48:46 +02:00
DeepSOIC
10597e3b4d nRF52840/config: add dcdc voltage parameter
address #2700
2024-03-21 23:56:35 +01:00
Dario Nieuwenhuis
eca9aac194 Fix warnings in recent nightly. 2024-03-20 16:39:09 +01:00
Dario Nieuwenhuis
3d842dac85 fmt: disable "unused" warnings. 2024-03-20 14:53:19 +01:00
Erik Bånvik
bb73d6b3fe Fixed suggestions, added nRF51 to BLE 2024-03-05 15:01:05 +01:00
Erik Bånvik
5b5d54c0c7 Do not build radio for nrf5340-app 2024-03-05 11:58:32 +01:00
Erik Bånvik
5408f21e99 Fixed nrf51 radio build 2024-03-05 11:47:06 +01:00
Erik Bånvik
bc258b322b Support nearly all nRF5 RADIOs 2024-03-05 11:39:15 +01:00
Erik Bånvik
84935fbfab More formatting 2024-03-05 01:06:04 +01:00
Erik Bånvik
c00f014f18 Some more unifying, documentation 2024-03-05 01:03:10 +01:00
Erik Bånvik
0c4c996339 Fixed formatting 2024-03-03 02:16:20 +01:00
Erik Bånvik
047b20cee4 Export Error in BLE module 2024-03-03 01:12:08 +01:00
Erik Bånvik
8eac5d07f6 Remove Event, which was mostly used for debugging 2024-02-29 09:50:28 +01:00
Erik Bånvik
f0753998bc Clear all interrupts 2024-02-29 02:02:01 +01:00
Erik Bånvik
35febae570 Fixed missing nrf52840 in Event 2024-02-29 01:31:07 +01:00
Erik Bånvik
4294bc5e4b Added IEEE 802.15.4 radio 2024-02-28 22:36:31 +01:00
Ulf Lilleengen
b806800f23
Merge pull request #2351 from jewel-rs/feat/radio
[embassry_nrf]: add BLE Radio driver
2024-02-28 14:40:18 +00:00
Guilherme S. Salustiano
368b3a9aaf fix: radio error 2024-02-28 14:54:54 +01:00
Dario Nieuwenhuis
140848c503
Merge pull request #2630 from plaes/nrf-spim-reduce-spam
nrf: spim: Hide the "Copying SPIM tx buffer into RAM for DMA" traces
2024-02-27 11:34:35 +00:00
Priit Laes
137855418a nrf: Bump embedded-storage-async to 0.4.1 2024-02-27 10:40:10 +02:00
Priit Laes
0bcbca9e5b nrf: spim: Hide the "Copying SPIM tx buffer into RAM for DMA" traces
Now that SPIM driver seems to be properly working, hide the trace logs
which occur whenever tx buffer needs to be copied into RAM.
2024-02-27 10:37:45 +02:00
Dario Nieuwenhuis
6a977d2ae9 nrf/uarte: prevent accidentally driving tx pin on rxonly uart if it was left in PSEL. 2024-02-22 00:07:09 +01:00
Dario Nieuwenhuis
2feed96c91 nrf/uart: Add support for rx-only or tx-only BufferedUart. 2024-02-21 23:23:04 +01:00
Dario Nieuwenhuis
4fbe18f821 nrf/uart: share waker state between buffered and nonbuffered. 2024-02-21 22:29:37 +01:00
Dario Nieuwenhuis
1f17fdf84e nrf/buffered_uart: refactor so rx/tx halves are independent. 2024-02-21 22:13:35 +01:00
Dario Nieuwenhuis
c2e429205d nrf/uart: add split_by_ref. 2024-02-21 21:48:48 +01:00
Dario Nieuwenhuis
111306ac0c nrf/buffered_uart: simplify split lifetimes. 2024-02-21 19:09:58 +01:00
Dario Nieuwenhuis
280f60654b
Merge pull request #2596 from NBonaparte/nrf-spi-drive
feat(nrf/spim): allow specifying drive of SPI pins
2024-02-20 13:48:50 +00:00
NBonaparte
ba2b4aad81 fix(nrf/spim): use OutputDrive to set pin drives 2024-02-19 17:46:25 -08:00
NBonaparte
6ecac3bc95 feat(nrf/spim): allow specifying drive of SPI pins 2024-02-18 19:37:35 -08:00
Priit Laes
8507b0ad30 nrf: Remove useless lifetimes 2024-02-17 13:30:19 +02:00
Priit Laes
7f2f701c87 nrf: Remove useless returns 2024-02-17 13:30:19 +02:00
Priit Laes
580ab48451 nrf: More nits cleaned up - useless cast and struct item 2024-02-17 13:30:19 +02:00
Priit Laes
a8710e943d nrf: Drop needless let 2024-02-17 13:30:19 +02:00
Priit Laes
bb2fb59a87 nrf: Remove useless borrows 2024-02-17 13:30:19 +02:00
Priit Laes
1aa999c2a8 nrf: Use .is_empty() instead of .len() == 0 2024-02-17 13:30:19 +02:00
Dario Nieuwenhuis
6b0e4dfb2d
Merge pull request #2584 from ohrlabs/fix-pdm-gain
embassy-nrf: Fix PDM gain register value derivation
2024-02-17 01:47:18 +00:00
Frank Plowman
7d11119168
embassy-nrf: Don't break lines; make rustfmt happy 2024-02-16 20:47:19 +00:00
Frank Plowman
07987aea4e
embassy-nrf: Fix various typos and make style more consistent 2024-02-16 20:45:58 +00:00
Frank Plowman
c5f39d5c89
embassy-nrf: Use fully-qualified core::mem::transmute 2024-02-16 20:42:14 +00:00
Frank Plowman
bcb0be21c1
embassy-nrf: Fix PDM gain register value derivation
Co-authored-by: Sol Harter <sol@glowinthedark.co.uk>
2024-02-16 17:24:58 +00:00
Priit Laes
50b8100fd3 nrf: Implement chunked DMA transfers for SPIM peripheral
On some chips (notably nrf52832), the maximum DMA transfer is 255
bytes, which has caused subtle issues while interfacing with various
devices over SPI bus.
2024-02-15 12:34:51 +02:00
Guilherme S. Salustiano
b4f0f57538 remove first person comments 2024-02-12 13:21:01 +01:00
Guilherme S. Salustiano
fdb15b2054 add comments about buffer unsound 2024-02-10 08:58:31 +01:00
Guilherme S. Salustiano
40282c2666 add buffer input on transmit/receive 2024-02-10 08:49:14 +01:00
Guilherme S. Salustiano
3773928425 apply clippy sugestions 2024-02-10 08:18:32 +01:00
Guilherme S. Salustiano
802bdd1af8 remove first person comments and assert disable state when it's necessary 2024-02-10 08:09:08 +01:00
Priit Laes
27411658d9 nrf: spim/spis: Add size checks for EasyDMA buffer
On most nRF chips, maximum buffer size for EasyDMA is 255, thus
we never got any data when attempting to use 256 bytes as RX/TX buffer.
2024-02-08 21:48:41 +02:00
Guilherme S. Salustiano
9527d1d934 remove radio implementation on chips not tested 2024-02-07 18:35:03 +01:00
Guilherme S. Salustiano
ea8bfb4f38 remove some supports 2024-02-07 18:25:06 +01:00
Guilherme S. Salustiano
3ad45655ec ci rerun 2024-02-07 18:22:47 +01:00
Guilherme S. Salustiano
add7894314 remove radio feature 2024-02-07 18:21:08 +01:00
Guilherme S. Salustiano
5f1b80d40b remove jewel dependency 2024-02-07 18:04:29 +01:00
Guilherme S. Salustiano
d408056a66 remove default on radio 2024-02-07 17:16:46 +01:00
Guilherme S. Salustiano
847b8be814 feat/implement ble radio on nrf 2024-02-07 15:38:39 +01:00
Dario Nieuwenhuis
ad7d4494fa
Merge pull request #2502 from jbeaurivage/nrf-uarte-errors
NRF: handle `uarte` RX errors
2024-02-05 23:36:42 +00:00
Justin Beaurivage
2575f597cc Address @Dirbaio's comments 2024-02-05 18:05:59 -05:00
Dario Nieuwenhuis
d5d86b866f nrf/gpiote: add support for nrf51. 2024-02-04 21:36:19 +01:00
Justin Beaurivage
cc12eb9680 Rustfmt 2024-01-31 14:20:06 -05:00
Justin Beaurivage
d364447a34 Add error handling to UarteRxWithIdle 2024-01-31 14:16:58 -05:00
Dario Nieuwenhuis
68be63c0e8
Merge pull request #2469 from embassy-rs/nrf51-basic-support
feat: add basic support for nRF51 chips to embassy-nrf
2024-01-31 00:20:40 +00:00
Justin Beaurivage
7ff21e8b8b Handle Uarte RX errors 2024-01-30 17:06:57 -05:00
Martin Marmsoler
319b0fe3d7 Do not wait when the pwm is disabled
Reason: because in this case no seqend event is raised and therefore an infinity loop occurs
2024-01-27 18:21:40 +01:00
Martin Marmsoler
b08a0955c3 implement retriving duty.
Description: When disabling the pwm and enabling again, it is required to restart the sequence. If the previous duty is not known, it is not possible to turn on the pwm again
2024-01-27 18:21:40 +01:00
Matthew Tran
6efb5fd284 nrf/spi: add bit order config 2024-01-26 22:38:03 -06:00
Martin Marmsoler
2809d3bd45 add is_enabled() function 2024-01-26 22:09:49 +01:00
Martin Marmsoler
c26e62e4f4 add documentation 2024-01-26 21:24:14 +01:00
Martin Marmsoler
dd2577fcf0 use constant for the pwm clock
Description: So it can be used outside of the crate to calculate max duty
2024-01-26 20:55:53 +01:00
Ulf Lilleengen
531645e5d4 docs: mention nrf51 2024-01-26 09:11:17 +01:00
Ulf Lilleengen
1263d28595 nightly fmt 2024-01-25 08:39:25 +01:00
Ulf Lilleengen
3739cc0699 fix warnings 2024-01-25 08:38:28 +01:00
Ulf Lilleengen
1989c229f9 fix: make inner state send as it's protected critical section 2024-01-25 08:38:01 +01:00
Ulf Lilleengen
db0f4a0b91 cleanup 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
7d961a7f44 cargo fmt 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
3ac52b2c48 remove portable-atomic dependency 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
00d66cce1d modify time driver to not require portable-atomic 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
6126183db8 fix: remove portable-atomic from rng 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
53ea850d28 rustfmt again 2024-01-24 21:23:54 +01:00
Ulf Lilleengen
2a810a1a6a rustfmt 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
4c23f197b3 Fix invalid "async" crates.io category. 2024-01-12 00:39:01 +01:00
Dario Nieuwenhuis
6a1c415a4c Complete cargo.tomls more. 2024-01-12 00:32:47 +01:00
Dario Nieuwenhuis
9f6517e408 stm32,nrf: add warning on docs.rs directing the user to docs.embassy.dev. 2024-01-11 23:43:17 +01:00
Dario Nieuwenhuis
5304994363 Add docs.rs metadata to all crates. 2024-01-11 23:17:02 +01:00
Dario Nieuwenhuis
22197320ff bump embassy-time 0.3, embassy-executor 0.5, embassy-net 0.4. 2024-01-11 23:01:24 +01:00
Dario Nieuwenhuis
e18d673721 More readme fixes. 2024-01-11 21:23:07 +01:00
Dario Nieuwenhuis
b0b1ef9181
Merge pull request #2436 from embassy-rs/embassy-nrf-docs-nrf91-example
Embassy nrf docs and nrf91 example
2024-01-11 19:52:18 +00:00
Ulf Lilleengen
4cc2648547 change title 2024-01-11 20:34:30 +01:00
Ulf Lilleengen
9a269803bd restructure 2024-01-11 20:32:07 +01:00
Ulf Lilleengen
46602903f5 note on timer 2024-01-11 19:26:49 +01:00
Ulf Lilleengen
f9e274e057 docs: more docs on nrf 2024-01-11 19:21:33 +01:00
Dario Nieuwenhuis
b452a6bcf6 Centralize license and MSRV boilerplate into the repo readme. 2024-01-11 18:18:35 +01:00
Dario Nieuwenhuis
15f94fb0fc time: split driver into a separate embassy-time-driver crate. 2024-01-11 16:56:08 +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
c9ac39df94 Update embedded-hal to v1.0 2024-01-09 23:37:14 +01:00
ftilde
eb70d744a9 Expose rx_delay in nrf qspi config 2024-01-05 20:12:28 +01:00