aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf
Commit message (Collapse)AuthorAgeFilesLines
...
* nrf: sequencepwm rename top to max_duty for consistancyJacob Rosenthal2021-11-111-1/+1
|
* fixJacob Rosenthal2021-11-111-2/+2
|
* fixJacob Rosenthal2021-11-111-2/+8
|
* pwm_sequence consume bufferJacob Rosenthal2021-11-111-7/+1
|
* Merge #455bors[bot]2021-11-114-2/+213
|\ | | | | | | | | | | | | | | | | | | 455: simple_playback api from nrf sdk r=Dirbaio a=jacobrosenthal Port of the nrf_drv_pwm_simple_playback call from the nordic sdk that allows you to set up a sequence to play across leds with no interaction necessary using the 'shorts' registers to trigger looping sequences Co-authored-by: Jacob Rosenthal <[email protected]>
| * remove unstable feature and dependency, and make pwm_sequence a near mirror ↵Jacob Rosenthal2021-11-103-59/+87
| | | | | | | | of pwm example
| * fix examples for mut self set_dutyJacob Rosenthal2021-11-103-3/+3
| |
| * make SequenceConfig struct is consistent with other Config structs, that are ↵Jacob Rosenthal2021-11-032-26/+23
| | | | | | | | always non_exhaustive and have a Default
| * rename to SimplePwm and SequencePwmJacob Rosenthal2021-11-035-11/+12
| |
| * restore example and add set_time_stretch apiJacob Rosenthal2021-11-032-29/+132
| |
| * rename error enum againJacob Rosenthal2021-11-022-2/+2
| |
| * seperate start from pwmseq::newJacob Rosenthal2021-11-012-3/+3
| |
| * seperate sequence from duty cycle pwm structJacob Rosenthal2021-11-012-7/+11
| |
| * led dimming example, dont need to keep all examples, just covering ground to ↵Jacob Rosenthal2021-11-011-0/+47
| | | | | | | | test api
| * generalize new and change pwm example to a servoJacob Rosenthal2021-11-011-82/+29
| |
| * better not as a constructor?Jacob Rosenthal2021-11-012-12/+10
| |
| * reduce complexity of loopmodeJacob Rosenthal2021-11-012-3/+3
| |
| * documentationJacob Rosenthal2021-11-012-2/+2
| |
| * stop->sequence_stopJacob Rosenthal2021-10-311-1/+1
| |
| * add ability to configure loop count from 1 to infiniteJacob Rosenthal2021-10-302-11/+14
| |
| * a runtime generated sin table exampleJacob Rosenthal2021-10-292-0/+42
| |
| * simplify api, more interesting exampleJacob Rosenthal2021-10-291-7/+7
| |
| * simple_playback api from nrf sdkJacob Rosenthal2021-10-291-0/+41
| |
* | Replace rustflags with build.rs extra-link-args.Dario Nieuwenhuis2021-11-072-12/+4
|/ | | | | | | | | | | | Rustflags apply to ALL the crates in the graph, while we only need them for the toplevel crate which is the only one getting linked. Rustflags are not equal for all crates, this caused cargo to re-build the same dependency crate multiple times uselessly. After this change, deps are reused more, making builds faster. Note that this only applies when sharing the target/ dir for multiple crates in the repo which is not the default.
* Fixed examplesDion Dokter2021-10-262-4/+2
|
* Another redo using the feedback.Dion Dokter2021-10-263-18/+14
| | | | | PPI is now split up into PPI and DPPI under the name 'interconnect'. The tasks and events are tracked and reset in the drop function.
* Fixed examples and added defmt format to the new error typesDion Dokter2021-10-262-4/+4
|
* - Added _ppi and _dppi to distinguish between the new and the old peripheral.Dion Dokter2021-10-261-9/+9
| | | | | | - Removed ConfigurableChannel and added capacity numbers to the channels - Replaced the PPI api with a new one using the DPPI terminology (publish & subscribe) - Updated all tasks and event registers for DPPI
* nrf: add NVMC driver.Dario Nieuwenhuis2021-10-222-0/+45
|
* 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
|
* Update lots of depsDario Nieuwenhuis2021-09-111-4/+4
|
* 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: make gpiote and time-driver optional via cargo features.Dario Nieuwenhuis2021-08-201-1/+1
|
* nrf/wdt: add handle stealDario Nieuwenhuis2021-08-201-1/+1
|
* nrf: update to cortex-m-rt 0.7Dario Nieuwenhuis2021-08-191-1/+1
|
* nrf: add WDT driverDario Nieuwenhuis2021-08-071-0/+46
|