aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/rng.rs
Commit message (Collapse)AuthorAgeFilesLines
* nrf/rng: erase instance genericsDario Nieuwenhuis2025-09-281-26/+30
|
* nrf/rng: add Blocking/Async Mode param.Dario Nieuwenhuis2025-05-211-26/+52
| | | | | This allows avoiding creating the irq handler if you're only going to use it in blocking mode.
* Add rand-core v0.9 support.Dario Nieuwenhuis2025-05-181-13/+34
| | | | Co-Authored-By: Aurélien Jacobs <[email protected]>
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-7/+5
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-14/+14
|
* nrf: remove mod sealed.Dario Nieuwenhuis2024-04-051-45/+36
|
* nrf: Use .is_empty() instead of .len() == 0Priit Laes2024-02-171-1/+1
|
* nightly fmtUlf Lilleengen2024-01-251-2/+1
|
* fix: make inner state send as it's protected critical sectionUlf Lilleengen2024-01-251-0/+2
|
* cargo fmtUlf Lilleengen2024-01-241-4/+2
|
* fix: remove portable-atomic from rngUlf Lilleengen2024-01-241-59/+66
|
* rustfmt againUlf Lilleengen2024-01-241-1/+1
|
* rustfmtUlf Lilleengen2024-01-241-1/+1
|
* feat: add basic support for nRF51 chips to embassy-nrfUlf Lilleengen2024-01-241-1/+1
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-2/+2
| | | | internal use only. (#1700)
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-5/+5
| | | | | | | | | | | | - Move typelevel interrupts to a special-purpose mod: `embassy_xx::interrupt::typelevel`. - Reexport the PAC interrupt enum in `embassy_xx::interrupt`. This has a few advantages: - The `embassy_xx::interrupt` module is now more "standard". - It works with `cortex-m` functions for manipulating interrupts, for example. - It works with RTIC. - the interrupt enum allows holding value that can be "any interrupt at runtime", this can't be done with typelevel irqs. - When "const-generics on enums" is stable, we can remove the typelevel interrupts without disruptive changes to `embassy_xx::interrupt`.
* cortex-m: remove owned interrupts.Dario Nieuwenhuis2023-06-011-4/+3
|
* nrf/rng: make available on all chips, use Instance trait, switch to new ↵Dario Nieuwenhuis2023-03-061-71/+122
| | | | interrupt binding.
* nrf: docs.Dario Nieuwenhuis2023-02-011-1/+5
|
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-1/+1
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-1/+1
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-5/+5
|
* WIP: Make unborrow safe to useGrant Miller2022-07-231-8/+3
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-10/+4
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-2/+2
| | | | | | - 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`.
* nrf/rng: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-131-64/+51
|
* Remove unsafe from new on RNDhuntc2022-01-061-1/+1
| | | | Unsafe is not required here given that all futures are required to live longer than their global peripheral instances. There are other occurrences of unsafe being used on new that should be removed. I started to do that but then went down a bit of a rabbit hole.
* Remove unneeded rustfmt::skipUlf Lilleengen2021-12-161-2/+4
|
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-2/+2
|
* Rename embassy-extras to embassy-hal-commonDario Nieuwenhuis2021-07-291-1/+1
|
* fix: check if `new_ptr == end`, not the old pointerLiam Murphy2021-06-301-2/+2
|
* Use atomics to share state instead of a `RefCell`Liam Murphy2021-06-301-57/+83
|
* Don't wake the future for every byte in `fill_bytes`Liam Murphy2021-06-301-14/+78
|
* Move initialisation inside of futureLiam Murphy2021-06-301-3/+3
|
* Add an nRF RNG driverLiam Murphy2021-06-291-0/+154
Resolves #187 Like the stm32 driver, this has both a non-blocking and blocking API, and implements `rand_core::RngCore` for the blocking API.