| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | nrf/saadc: nrf52820 doesn't have it. | Dario Nieuwenhuis | 2021-10-11 | 1 | -3/+0 | |
| | | | ||||||
| * | | Conflates the negative and positive types as they are the same, and renames ↵ | huntc | 2021-10-11 | 1 | -66/+26 | |
| | | | | | | | | | pin to input as they can be more than pins | |||||
| * | | Removed the NotConnected as it isn't used. | huntc | 2021-10-11 | 1 | -14/+0 | |
| | | | ||||||
| * | | No use case understood for NotConnected, so hiding it for now | huntc | 2021-10-11 | 1 | -2/+1 | |
| | | | ||||||
| * | | No need for unwrap | huntc | 2021-10-11 | 1 | -2/+1 | |
| | | | ||||||
| * | | Need to borrow the pins for the lifetime of the config, and subsequently the ↵ | huntc | 2021-10-11 | 1 | -5/+9 | |
| | | | | | | | | | one shot. | |||||
| * | | Extend SAADC one shot support | huntc | 2021-10-09 | 1 | -39/+136 | |
| |/ | | | | | | | | 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 Nieuwenhuis | 2021-10-07 | 1 | -20/+2 | |
| | | ||||||
| * | embassy: Refactor module structure to remove kitchen-sink `util`. | Dario Nieuwenhuis | 2021-09-11 | 10 | -14/+25 | |
| | | ||||||
| * | Remove trait_alias, allow(incomplete_features). | Dario Nieuwenhuis | 2021-09-03 | 1 | -1/+0 | |
| | | | | | trait_alias seems unused. no idea why it's there. | |||||
| * | Merge pull request #382 from fnafnio/typestate_nrf_timer | Dario Nieuwenhuis | 2021-09-02 | 3 | -49/+74 | |
| |\ | | | | | Typestate nrf timer | |||||
| | * | removed type aliases | f_punk | 2021-09-02 | 3 | -16/+15 | |
| | | | | | | | | | | | NotAwaitable as default generic param added awaitable_timer example | |||||
| | * | moved CC::wait to awaitable typestate | f_punk | 2021-09-01 | 1 | -34/+34 | |
| | | | ||||||
| | * | added typestate to nrf-Timer | f_punk | 2021-09-01 | 3 | -15/+41 | |
| | | | | | | | | | | | useful for hooking up the PPI to an Event without needing interrupt tested with buffered_uart example on nRF52840-DK | |||||
| * | | nrf/saadc: don't use wake_on_interrupt. | Dario Nieuwenhuis | 2021-09-01 | 1 | -13/+23 | |
| |/ | ||||||
| * | time: allow storing state inside the driver struct. | Dario Nieuwenhuis | 2021-08-25 | 1 | -37/+18 | |
| | | ||||||
| * | Expose EASY_DMA_SIZE. | Richard Dodd | 2021-08-22 | 8 | -0/+9 | |
| | | ||||||
| * | nrf: make gpiote and time-driver optional via cargo features. | Dario Nieuwenhuis | 2021-08-20 | 1 | -0/+8 | |
| | | ||||||
| * | nrf/wdt: add handle steal | Dario Nieuwenhuis | 2021-08-20 | 1 | -0/+8 | |
| | | ||||||
| * | nrf/time: allow configuring the rtc irq prio | Dario Nieuwenhuis | 2021-08-18 | 2 | -5/+9 | |
| | | ||||||
| * | nrf: add WDT driver | Dario Nieuwenhuis | 2021-08-07 | 9 | -0/+175 | |
| | | ||||||
| * | time_driver: use regular fn ptr -> raw ptr casts | Dario Nieuwenhuis | 2021-08-05 | 1 | -4/+1 | |
| | | ||||||
| * | time: replace dyn clock/alarm with a global Driver trait | Dario Nieuwenhuis | 2021-08-05 | 2 | -121/+126 | |
| | | ||||||
| * | Update nightly, remove removed features. | Dario Nieuwenhuis | 2021-08-04 | 1 | -2/+0 | |
| | | ||||||
| * | common: Initialize PeripheralMutex state with closure to ensure it's done ↵ | Dario Nieuwenhuis | 2021-08-02 | 1 | -16/+14 | |
| | | | | | in-place. | |||||
| * | hal-common: remove Pin in PeripheralMutex | Dario Nieuwenhuis | 2021-08-02 | 1 | -52/+46 | |
| | | ||||||
| * | Rename embassy-extras to embassy-hal-common | Dario Nieuwenhuis | 2021-07-29 | 20 | -22/+22 | |
| | | ||||||
| * | Merge pull request #277 from Liamolucko/fix-peripheral-ub | Dario Nieuwenhuis | 2021-07-29 | 3 | -15/+17 | |
| |\ | | | | | extras: Fix UB in `Peripheral` | |||||
| | * | Replace `PeripheralStateUnchecked` with `register_interrupt_unchecked` | Liam Murphy | 2021-07-29 | 1 | -7/+6 | |
| | | | ||||||
| | * | Remove critical sections from `PeripheralMutex` interrupt handler by ↵ | Liam Murphy | 2021-07-27 | 1 | -9/+11 | |
| | | | | | | | | | | | | | | | | | checking the interrupt's priority on startup. Since `PeripheralMutex` is the only way to safely maintain state across interrupts, and it no longer allows setting the interrupt's priority, the priority changing isn't a concern. This also prevents other causes of UB due to the interrupt being exposed during `with`, and allowing enabling the interrupt and setting its context to a bogus pointer. | |||||
| | * | Add `Send/Sync` bounds to `PeripheralState` | Liam Murphy | 2021-07-24 | 2 | -2/+2 | |
| | | | ||||||
| | * | extras: Fix UB in `Peripheral` | Liam Murphy | 2021-07-05 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Peripheral` assumed that interrupts can't be preempted, when they can be preempted by higher priority interrupts. So I put the interrupt handler inside a critical section, and also added checks for whether the state had been dropped before the critical section was entered. I also added a `'static` bound to `PeripheralState`, since `Pin` only guarantees that the memory it directly references will not be invalidated. It doesn't guarantee that memory its pointee references also won't be invalidated. There were already some implementations of `PeripheralState` that weren't `'static`, though, so I added an unsafe `PeripheralStateUnchecked` trait and forwarded the `unsafe` to the constructors of the implementors. | |||||
| * | | Formatting. | Bob McWhirter | 2021-07-23 | 1 | -1/+1 | |
| | | | ||||||
| * | | Split up the nRF impls for SPI traits. | Bob McWhirter | 2021-07-23 | 1 | -7/+16 | |
| | | | ||||||
| * | | all hals: reexport PAC if `unstable-pac` feature is set. | Dario Nieuwenhuis | 2021-07-14 | 1 | -0/+4 | |
| |/ | ||||||
| * | nrf/gpio: fix unused warning on chips without ports | Dario Nieuwenhuis | 2021-07-05 | 1 | -5/+5 | |
| | | ||||||
| * | Merge pull request #262 from Liamolucko/nrf-rng | Dario Nieuwenhuis | 2021-07-01 | 9 | -0/+266 | |
| |\ | | | | | Add an nRF RNG driver | |||||
| | * | fix: check if `new_ptr == end`, not the old pointer | Liam Murphy | 2021-06-30 | 1 | -2/+2 | |
| | | | ||||||
| | * | Use atomics to share state instead of a `RefCell` | Liam Murphy | 2021-06-30 | 1 | -57/+83 | |
| | | | ||||||
| | * | Don't wake the future for every byte in `fill_bytes` | Liam Murphy | 2021-06-30 | 1 | -14/+78 | |
| | | | ||||||
| | * | Move initialisation inside of future | Liam Murphy | 2021-06-30 | 1 | -3/+3 | |
| | | | ||||||
| | * | Add an nRF RNG driver | Liam Murphy | 2021-06-29 | 9 | -0/+176 | |
| | | | | | | | | | | | | | Resolves #187 Like the stm32 driver, this has both a non-blocking and blocking API, and implements `rand_core::RngCore` for the blocking API. | |||||
| * | | Correctly unset bits | Liam Murphy | 2021-06-29 | 1 | -2/+2 | |
| | | | ||||||
| * | | Write bits directly to intenset/clr + shorts | Liam Murphy | 2021-06-29 | 1 | -147/+18 | |
| | | | ||||||
| * | | Handle differences between PACs | Liam Murphy | 2021-06-29 | 1 | -15/+7 | |
| | | | ||||||
| * | | Don't include extended timer support on chips without it | Liam Murphy | 2021-06-29 | 1 | -0/+84 | |
| | | | ||||||
| * | | Fix `Cc::event_compare` | Liam Murphy | 2021-06-29 | 1 | -1/+1 | |
| | | | ||||||
| * | | Get rid of the TODO about variant names, stop the timer before setting ↵ | Liam Murphy | 2021-06-29 | 1 | -8/+12 | |
| | | | | | | | | | BITMODE and set a default frequency. | |||||
| * | | Fix `Cc::wait` never resolving and refactor some APIs | Liam Murphy | 2021-06-29 | 3 | -67/+49 | |
| | | | | | | | | | I think the interrupt was getting immediately re-triggered as soon as the handler exited, so I disabled the interrupt in the handler. | |||||
| * | | Add an nRF Timer driver | Liam Murphy | 2021-06-26 | 3 | -48/+405 | |
| |/ | | | | Resolves #189 | |||||
