aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf/src
Commit message (Collapse)AuthorAgeFilesLines
...
* nrf: add NVMC driver.Dario Nieuwenhuis2021-10-221-0/+44
|
* Specify unit in log outputUlf Lilleengen2021-10-191-1/+1
|
* Add support for temperature sensor peripheralUlf Lilleengen2021-10-191-0/+26
| | | | | | * Add TEMP peripheral to all nRF52 chips * Add async HAL for reading temperature values * Add example application reading temperature values
* Use types to strengthen the buffer dimensioninghuntc2021-10-181-6/+4
|
* Removed the Mode enum and factored out into two functions so that we can ↵huntc2021-10-181-2/+2
| | | | assert channel limits
* We have to reduce the buffer size to cater for the number of channels to scanhuntc2021-10-181-2/+2
|
* We must allow the run handler to mutate statehuntc2021-10-181-2/+17
| | | | The handler may well need to close over and mutate state
* Implements continuous sampling for the nRF SAADChuntc2021-10-182-2/+51
| | | | | | Implements continuous sampling for the nRF SAADC and also renames `OneShot` to `Saadc`. The one-shot behaviour is retained with the `sample` method and a new `run_sampler` method is provided for efficiently (i.e. zero copying) sampler processing. A double buffer is used for continuously sampling, which wlll be swapped once sampling has taken place. A sample frequency is provided and will set the internal timer of the SAADC when there is just the one channel being sampled. Otherwise, PPI will be used to hook up the TIMER peripheral to drive the sampling task.
* Extend SAADC one shot supporthuntc2021-10-091-4/+6
| | | | | | | | One-shot mode now permits the sampling of differential pins, and the sampling of multiple pins simultaneously. A new ChannelConfig structure has been introduced so that multiple channels can be configured individually. Further, the `sample` method now accepts a buffer into which samples are written. Along the way, I've reset some default configuration to align with Nordic's settings in their nrfx saadc driver. Specifically, the channel gain defaults to 6 (from 4) and the time defaults to 10us (from 20us).
* nrf/saadc: remove Sample trait.Dario Nieuwenhuis2021-10-071-1/+1
|
* embassy/channel: switch to use MutexKindDario Nieuwenhuis2021-09-131-3/+4
|
* embassy: Refactor module structure to remove kitchen-sink `util`.Dario Nieuwenhuis2021-09-111-3/+2
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-0321-21/+0
| | | | trait_alias seems unused. no idea why it's there.
* Merge pull request #382 from fnafnio/typestate_nrf_timerDario Nieuwenhuis2021-09-021-0/+29
|\ | | | | Typestate nrf timer
| * removed type aliasesf_punk2021-09-021-0/+29
| | | | | | | | | | NotAwaitable as default generic param added awaitable_timer example
* | nrf/saadc: add exampleDario Nieuwenhuis2021-09-011-0/+25
|/
* Improve executor naming. Add docs.Dario Nieuwenhuis2021-08-311-3/+3
|
* nrf/wdt: add handle stealDario Nieuwenhuis2021-08-201-1/+1
|
* nrf: add WDT driverDario Nieuwenhuis2021-08-071-0/+46
|
* examples: Consistently use unwrap! in favor of .unwrap()Ben Gamari2021-08-059-32/+34
| | | | | Unfortunately errors from `embedded_graphics` and `core` doesn't provide the necessary instances currently.
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-0510-42/+9
|
* Update nightly, remove removed features.Dario Nieuwenhuis2021-08-0418-36/+0
|
* rustfmt everythingDario Nieuwenhuis2021-08-041-1/+0
|
* hal-common: remove Pin in PeripheralMutexDario Nieuwenhuis2021-08-021-0/+3
|
* Provides a cleaner construction of the channel with the common "new" naminghuntc2021-07-151-1/+2
|
* Use of a NoopMutexhuntc2021-07-151-4/+4
|
* Remove the cell and traithuntc2021-07-151-4/+4
| | | | At the expense of exposing the channel types again. We do this as we want to avoid using dyn traits given their overhead for embedded environments.
* Replace UnsafeCellhuntc2021-07-151-5/+3
| | | | Using a new ChannelCell so that there's no leaking of the abstraction
* Reduces the types on sender and receiverhuntc2021-07-151-3/+5
| | | | In exchange for an UnsafeCell being passed into split
* Multi Producer Single Consumer channelhuntc2021-07-151-0/+64
| | | | An MPSC inspired by Tokio and Crossbeam. The MPSC is designed to support both single and multi core processors, with only single core implemented at this time. The allocation of the channel’s buffer is inspired by the const generic parameters that Heapless provides.
* Update RNG exampleLiam Murphy2021-06-301-4/+17
|
* Add an nRF RNG driverLiam Murphy2021-06-291-0/+30
| | | | | | Resolves #187 Like the stm32 driver, this has both a non-blocking and blocking API, and implements `rand_core::RngCore` for the blocking API.
* Move examples to a subdirectoryDario Nieuwenhuis2021-06-0218-0/+1153