aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/chips/nrf52840.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: improve nrf54 support using new nrf-pacUlf Lilleengen2025-10-281-32/+39
| | | | | | | | | | | | | * Update nrf-pac to version that modifies nrf52 register layout to match nrf54 to reduce the amount of cfg needed for nrf54 support. * Make the following peripherals available on nrf54: twim, twis, spim, spis, uart, buffered uarte, dppi, gpiote, pwm, saadc * Add examples tested on the nrf54 dk Some code is based on or copied from other pull requests, modified to match the new nrf-pac layout. Co-authored-by: Dmitry Tarnyagin <[email protected]>
* code review changesRobin Mueller2025-09-221-0/+2
|
* add basic RTC driver for nRFRobin Mueller2025-09-221-0/+4
|
* nrf53: add WDT supportMatthew Tran2025-04-201-0/+2
|
* nrf: Add NFCT driver.Dario Nieuwenhuis2024-11-201-0/+3
| | | | | Co-Authored-By: turbocool3r <[email protected]> Co-Authored-By: ferris <[email protected]>
* Update nrf-pac.Dario Nieuwenhuis2024-11-151-30/+30
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-1/+1
|
* add HAL and example for using nRF EGU peripheralUlf Lilleengen2024-06-181-0/+15
|
* remove radio featureGuilherme S. Salustiano2024-02-071-1/+0
|
* feat/implement ble radio on nrfGuilherme S. Salustiano2024-02-071-0/+6
|
* minimum build code for new APPROTECT is chip type-specificPeter Hansen2023-12-031-0/+1
|
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-1/+0
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-2/+2
| | | | internal use only. (#1700)
* Remove embassy-cortex-m crate, move stuff to embassy-hal-common.Dario Nieuwenhuis2023-06-091-1/+1
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-49/+45
| | | | | | | | | | | | - 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`.
* nrf/rng: make available on all chips, use Instance trait, switch to new ↵Dario Nieuwenhuis2023-03-061-0/+2
| | | | interrupt binding.
* nrf/qdec: make available on all chips, use Instance trait, switch to new ↵Dario Nieuwenhuis2023-03-061-0/+2
| | | | interrupt binding.
* nrf/pdm: make available on all chips, use Instance trait, switch to new ↵Dario Nieuwenhuis2023-03-061-0/+2
| | | | interrupt binding.
* nrf: add support for UICR configuration.Dario Nieuwenhuis2023-02-201-0/+8
| | | | | | | | | - APPROTECT enable/disable. Notably this fixes issues with nrf52-rev3 and nrf53 from locking itself at reset. - Use NFC pins as GPIO. - Use RESET pin as GPIO. NFC and RESET pins singletons are made available only when usable as GPIO, for compile-time checking.
* Merge #1049bors[bot]2022-12-091-1/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1049: embassy-nrf: Add I2S module r=lulf a=chris-zen This PR adds I2S support for the nrf52 series (`nrf52832`, `nrf52833`, `nrf52840`). We could only test it in a `nrf52840` in master mode for an output stream (see `i2s_waveform` example), using a clone of the [Adafruit I2S Stereo Decoder - UDA1334A](https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a/overview). We were wondering if this could be a welcome addition to embassy, as we are working on this very informally and don't have much free time for it. <img src="https://user-images.githubusercontent.com/932644/202316127-a8cf90ef-1e1a-4e1d-b796-961b8ad6cef5.png" width="600"> https://user-images.githubusercontent.com/932644/202316609-e53cd912-e463-4e01-839e-0bbdf37020da.mp4 Co-authored-by: `@brainstorm` <[email protected]> Co-authored-by: Christian Perez Llamas <[email protected]> Co-authored-by: Roman Valls Guimera <[email protected]>
| * Fix buildChristian Perez Llamas2022-11-191-1/+1
| |
| * Draft: Initial support for I2S with a working example.Christian Perez Llamas2022-11-091-0/+5
| | | | | | | | Co-authored-by: @brainstorm <[email protected]>
* | Merge #1056bors[bot]2022-11-221-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 1056: embassy-nrf: Add TWIS module r=Dirbaio a=kalkyl Verified to be working on nrf9160 Co-authored-by: kalkyl <[email protected]> Co-authored-by: Henrik Alsér <[email protected]>
| * | embassy-nrf: Add TWIS modulekalkyl2022-11-131-0/+3
| |/
* / embassy-nrf: Add SPIS moduleHenrik Alsér2022-11-051-0/+4
|/
* Update nrf pacsDion Dokter2022-10-261-8/+8
|
* add support for pdm microphones in nrf driverpbert2022-10-131-0/+3
|
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-171-1/+1
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-1/+2
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-1/+1
| | | | | | - 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`.
* Add qdec moduleHenrik Alsér2022-05-071-0/+3
|
* usb: add -usb-serial crate, fix warnings and stable build.Dario Nieuwenhuis2022-04-061-0/+1
|
* enable USB peripheral for relevant chipsJacob Rosenthal2021-12-151-0/+5
|
* cleanupJacob Rosenthal2021-12-141-1/+0
|
* dont expose embedded_hal_common::usbJacob Rosenthal2021-12-141-5/+0
|
* stub out the embassy registers for usbdJacob Rosenthal2021-12-131-0/+6
|
* Fewer channel traits, more cfg to make the system workDion Dokter2021-10-261-32/+32
|
* Another redo using the feedback.Dion Dokter2021-10-261-32/+32
| | | | | 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.
* - Added _ppi and _dppi to distinguish between the new and the old peripheral.Dion Dokter2021-10-261-32/+32
| | | | | | - 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-221-0/+5
|
* Add support for temperature sensor peripheralUlf Lilleengen2021-10-191-0/+3
| | | | | | * Add TEMP peripheral to all nRF52 chips * Add async HAL for reading temperature values * Add example application reading temperature values
* nrf/saadc: move chip-specific mappings to chips/Dario Nieuwenhuis2021-10-111-0/+9
|
* nrf/ppi: nrf52805 only has 10 configurable channels.Dario Nieuwenhuis2021-10-111-0/+33
|
* Expose EASY_DMA_SIZE.Richard Dodd2021-08-221-0/+1
|
* nrf: add WDT driverDario Nieuwenhuis2021-08-071-0/+3
|
* Rename embassy-extras to embassy-hal-commonDario Nieuwenhuis2021-07-291-1/+1
|
* Add an nRF RNG driverLiam Murphy2021-06-291-0/+3
| | | | | | Resolves #187 Like the stm32 driver, this has both a non-blocking and blocking API, and implements `rand_core::RngCore` for the blocking API.
* stm32: fix build, add ciDario Nieuwenhuis2021-05-171-0/+2
|
* nrf: add PWMDario Nieuwenhuis2021-05-171-0/+11
|
* nrf/gpiote: initialize automaticallyDario Nieuwenhuis2021-05-171-1/+0
|