| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Rename embassy-extras to embassy-hal-common | Dario Nieuwenhuis | 2021-07-29 | 10 | -2219/+0 |
| | | |||||
| * | Don't bother supporting creating a `PeripheralMutex` in an exception handler | Liam Murphy | 2021-07-29 | 1 | -31/+5 |
| | | |||||
| * | Replace `PeripheralStateUnchecked` with `register_interrupt_unchecked` | Liam Murphy | 2021-07-29 | 3 | -53/+74 |
| | | |||||
| * | Don't allow disabling interrupts wrapped by `PeripheralMutex` | Liam Murphy | 2021-07-28 | 2 | -36/+1 |
| | | |||||
| * | fix: interrupts with equal priority can't preempt each other | Liam Murphy | 2021-07-28 | 1 | -24/+4 |
| | | |||||
| * | Remove critical sections from `PeripheralMutex` interrupt handler by ↵ | Liam Murphy | 2021-07-27 | 3 | -35/+172 |
| | | | | | | | | | 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 | 3 | -22/+37 |
| | | |||||
| * | Fix stm32 ethernet | Liam Murphy | 2021-07-05 | 2 | -4/+4 |
| | | |||||
| * | Elide lifetimes on `Peripheral::state` | Liam Murphy | 2021-07-05 | 1 | -1/+1 |
| | | |||||
| * | extras: Fix UB in `Peripheral` | Liam Murphy | 2021-07-05 | 3 | -26/+82 |
| | | | | | | | | | | | | | | | | | | | `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. | ||||
| * | fmt: Add dunmy use to avoid "unused variable" errors when no log is enabled. | Dario Nieuwenhuis | 2021-06-07 | 1 | -16/+26 |
| | | |||||
| * | fmt: use absolute paths | Dario Nieuwenhuis | 2021-06-07 | 1 | -29/+29 |
| | | |||||
| * | fmt: make all macros `macro_rules` so scoping is consistent. | Dario Nieuwenhuis | 2021-06-07 | 2 | -47/+146 |
| | | |||||
| * | Mark Unborrow as unsafe to implement | Dario Nieuwenhuis | 2021-05-19 | 1 | -3/+3 |
| | | |||||
| * | impl Unborrow for &'a mut T | Dario Nieuwenhuis | 2021-05-19 | 1 | -16/+0 |
| | | | | | This plays nicer with user code that's generic over peripheral traits like `Instance` or `Pin`. | ||||
| * | Fix warnings | Rukai | 2021-05-17 | 1 | -1/+1 |
| | | |||||
| * | Add `init` fn. Initializes hw and returns Peripherals. | Dario Nieuwenhuis | 2021-05-17 | 1 | -7/+6 |
| | | |||||
| * | Add PriorityX enums to embassy-extras::interrupt | Dario Nieuwenhuis | 2021-05-11 | 2 | -0/+572 |
| | | |||||
| * | Use `critical_section` crate | Dario Nieuwenhuis | 2021-05-11 | 1 | -1/+1 |
| | | |||||
| * | Rename PeripheralBorrow to Unborrow | Dario Nieuwenhuis | 2021-04-14 | 1 | -4/+4 |
| | | |||||
| * | extras: fix build with defmt | Dario Nieuwenhuis | 2021-04-10 | 1 | -1/+1 |
| | | |||||
| * | Mark peripherals as taken | Ian McIntyre | 2021-04-01 | 1 | -0/+1 |
| | | |||||
| * | Fix unused import warnings | Dario Nieuwenhuis | 2021-03-29 | 1 | -1/+1 |
| | | |||||
| * | take clocks on peripheral take | xoviat | 2021-03-29 | 1 | -1/+1 |
| | | |||||
| * | cleanup and consolidate peripherals macro | xoviat | 2021-03-29 | 1 | -0/+39 |
| | | |||||
| * | extras: fix missing absolute path in impl_borrow | Dario Nieuwenhuis | 2021-03-29 | 1 | -2/+2 |
| | | |||||
| * | extras: add impl_unborrow macro | Dario Nieuwenhuis | 2021-03-29 | 1 | -0/+21 |
| | | |||||
| * | nrf/rtc: update to new api | Dario Nieuwenhuis | 2021-03-29 | 1 | -11/+12 |
| | | |||||
| * | Code size optimizations. | Dario Nieuwenhuis | 2021-03-29 | 2 | -13/+0 |
| | | |||||
| * | extras: add Peripheral with shared state (like PeripheralMutex but without ↵ | Dario Nieuwenhuis | 2021-03-29 | 2 | -0/+69 |
| | | | | | mutex) | ||||
| * | extras: add missing cfg to peripherals macro | Dario Nieuwenhuis | 2021-03-29 | 1 | -0/+1 |
| | | |||||
| * | nrf/uart: make rts/cts optional. | Dario Nieuwenhuis | 2021-03-29 | 1 | -1/+1 |
| | | |||||
| * | nrf: add unborrow! macro | Dario Nieuwenhuis | 2021-03-29 | 1 | -0/+9 |
| | | |||||
| * | nrf: nicer Peripherals api, add take() | Dario Nieuwenhuis | 2021-03-29 | 1 | -21/+51 |
| | | |||||
| * | extras: move peripherals from nrf to extras | Dario Nieuwenhuis | 2021-03-29 | 2 | -0/+46 |
| | | |||||
| * | Move USB to embassy-extras | Thales Fragoso | 2021-03-19 | 4 | -0/+903 |
| | | |||||
| * | USB: Use updated PeripheralMutex | Thales Fragoso | 2021-03-19 | 1 | -0/+6 |
| | | |||||
| * | peripheralmutex: separate interrupt registration to own method. | Dario Nieuwenhuis | 2021-03-18 | 1 | -12/+13 |
| | | |||||
| * | Remove free() from PeripheralMutex and all nrf drivers. | Dario Nieuwenhuis | 2021-03-18 | 1 | -57/+20 |
| | | |||||
| * | Allow unused stuff in fmt.rs | Dario Nieuwenhuis | 2021-03-18 | 1 | -0/+1 |
| | | |||||
| * | Do not export fmt macros. | Dario Nieuwenhuis | 2021-03-17 | 1 | -6/+0 |
| | | | | | This was introduced by accident by me struggling with the weird intra-crate macro importing system... | ||||
| * | Move nRF's util into a separate crate | Thales Fragoso | 2021-03-07 | 4 | -0/+335 |
