| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | Async-ify Driver::enable and UsbDeviceBuilder::build | alexmoon | 2022-04-07 | 4 | -4/+4 | |
| | | | ||||||
| | * | embassy-usb-hid bug fixes | alexmoon | 2022-04-06 | 1 | -2/+2 | |
| | | | ||||||
| | * | usb/serial: add multitask example. | Dario Nieuwenhuis | 2022-04-06 | 1 | -0/+122 | |
| | | | ||||||
| | * | usb/hid: add keyboard example. | Dario Nieuwenhuis | 2022-04-06 | 2 | -0/+148 | |
| | | | ||||||
| | * | usb/hid: update for endpoint state changes. | Dario Nieuwenhuis | 2022-04-06 | 1 | -24/+16 | |
| | | | ||||||
| | * | Add basic device state handling for endpoints. | alexmoon | 2022-04-06 | 1 | -7/+39 | |
| | | | ||||||
| | * | Simplify hid output report handling | alexmoon | 2022-04-06 | 1 | -2/+2 | |
| | | | ||||||
| | * | Remove output() and split() methods from HidClass when there is no out ↵ | alexmoon | 2022-04-06 | 1 | -1/+2 | |
| | | | | | | | | | endpoint, and route set_report requests for output reports to RequestHandler::set_report in that case. | |||||
| | * | Remove the feature report reader | alexmoon | 2022-04-06 | 1 | -3/+8 | |
| | | | ||||||
| | * | Async USB HID class | alexmoon | 2022-04-06 | 2 | -2/+135 | |
| | | | ||||||
| | * | usb-serial: make inner guts private. | Dario Nieuwenhuis | 2022-04-06 | 1 | -17/+7 | |
| | | | ||||||
| | * | examples/nrf: don't build usb stuff in stable. | Dario Nieuwenhuis | 2022-04-06 | 1 | -3/+3 | |
| | | | ||||||
| | * | usb: add -usb-serial crate, fix warnings and stable build. | Dario Nieuwenhuis | 2022-04-06 | 3 | -393/+4 | |
| | | | ||||||
| | * | Add a control_buf to UsbDevice | alexmoon | 2022-04-06 | 2 | -9/+12 | |
| | | | ||||||
| | * | Switch to ControlHandler owned bufs for control_in() | alexmoon | 2022-04-06 | 1 | -6/+8 | |
| | | | ||||||
| | * | Remove UnsafeCell from cdc_acm::Control | alexmoon | 2022-04-06 | 1 | -22/+31 | |
| | | | ||||||
| | * | usb: simplify buffer handling for Control IN transfers. | Dario Nieuwenhuis | 2022-04-06 | 1 | -9/+8 | |
| | | | ||||||
| | * | usb: nicer names for control structs. | Dario Nieuwenhuis | 2022-04-06 | 1 | -13/+7 | |
| | | | ||||||
| | * | usb: move all control-related stuff to `mod control`. | Dario Nieuwenhuis | 2022-04-06 | 1 | -3/+4 | |
| | | | ||||||
| | * | usb: associate ControlHandlers with interfaces, automatically route requests. | Dario Nieuwenhuis | 2022-04-06 | 1 | -35/+18 | |
| | | | ||||||
| | * | usb: add `add_class` to builder, so that `FooBarClass::new(&mut builder)` ↵ | Dario Nieuwenhuis | 2022-04-06 | 2 | -127/+91 | |
| | | | | | | | | | can set up everything. | |||||
| | * | Use trait objects instead of generics for UsbDevice::classes | alexmoon | 2022-04-06 | 2 | -69/+52 | |
| | | | ||||||
| | * | Add support for USB classes handling control requests. | alexmoon | 2022-04-06 | 2 | -16/+114 | |
| | | | ||||||
| | * | Add some comments on the example. | Dario Nieuwenhuis | 2022-04-06 | 1 | -1/+13 | |
| | | | ||||||
| | * | Working CDC-ACM device->host | Dario Nieuwenhuis | 2022-04-06 | 2 | -5/+15 | |
| | | | ||||||
| | * | Working CDC-ACM host->device | Dario Nieuwenhuis | 2022-04-06 | 2 | -9/+23 | |
| | | | ||||||
| | * | wip: experimental async usb stack | Dario Nieuwenhuis | 2022-04-06 | 5 | -158/+411 | |
| | | | ||||||
| * | | Merge #696 | bors[bot] | 2022-04-06 | 1 | -0/+44 | |
| |\ \ | |/ |/| | | | | | | | | | | | | | | | 696: Add async Mutex. r=Dirbaio a=Dirbaio What it says on the tin :) It allows sharing data between tasks when you want to `.await` stuff while holding it locked. Co-authored-by: Dario Nieuwenhuis <[email protected]> | |||||
| | * | Add async Mutex. | Dario Nieuwenhuis | 2022-04-06 | 1 | -0/+44 | |
| | | | ||||||
| * | | Simpler Channel. | Dario Nieuwenhuis | 2022-04-06 | 4 | -74/+106 | |
| |/ | | | | | | | - Allow initializing in a static, without Forever. - Remove ability to close, since in embedded enviromnents channels usually live forever and don't get closed. - Remove MPSC restriction, it's MPMC now. Rename "mpsc" to "channel". - `Sender` and `Receiver` are still available if you want to enforce a piece of code only has send/receive access, but are optional: you can send/receive directly into the Channel if you want. | |||||
| * | Use embassy/defmt-timestamp-uptime in all examples. | Dario Nieuwenhuis | 2022-04-02 | 35 | -143/+124 | |
| | | ||||||
| * | Update rust nightly, embedded-hal 1.0, embedded-hal-async. | Dario Nieuwenhuis | 2022-03-11 | 1 | -1/+1 | |
| | | ||||||
| * | Simplifies the API by taking in the TIMER and PPI channels | huntc | 2022-03-07 | 1 | -20/+6 | |
| | | ||||||
| * | Improve nRF Saadc sampling | huntc | 2022-03-07 | 1 | -17/+40 | |
| | | | | | | | | | | | Starting the sampling task prior to starting the SAADC peripheral can lead to unexpected buffer behaviour with multiple channels. We now provide an init callback at the point where the SAADC has started for the first time. This callback can be used to kick off sampling via PPI. We also need to trigger the SAADC to start sampling the next buffer when the previous one is ended so that we do not drop samples - the major benefit of double buffering. As a bonus we provide a calibrate method as it is recommended to use before starting up the sampling. The example has been updated to illustrate these new features. | |||||
| * | Merge #613 | bors[bot] | 2022-02-12 | 3 | -6/+9 | |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 613: Rust stable support r=Dirbaio a=Dirbaio This PR adds (limited) stable Rust support! The drawbacks are: - No `#[embassy::task]`, `#[embassy::main]`. (requires `type_alias_impl_trait`). You have to manually allocate the tasks somewhere they'll live forever. See [example](https://github.com/embassy-rs/embassy/blob/master/examples/nrf/src/bin/raw_spawn.rs) - No async trait impls (requires GATs). Note that the full API surface of HALs is still available through inherent methods: #552 #581 - Some stuff is not constructible in const (requires `const_fn_trait_bound`), although there's an (ugly) workaround for the generic `Mutex`. So it's not that bad in the end, it's fully usable for shipping production-ready firmwares. We'll still recommend nightly as the default, until GATs and `type_alias_impl_trait` are stable. Co-authored-by: Dario Nieuwenhuis <[email protected]> | |||||
| | * | embassy, embassy-nrf: add `nightly` Cargo feature to gate nightly-only features. | Dario Nieuwenhuis | 2022-02-12 | 1 | -0/+3 | |
| | | | ||||||
| | * | blocking_mutex: refactor to work on stable. No GATs, and can be constructed ↵ | Dario Nieuwenhuis | 2022-02-12 | 2 | -6/+6 | |
| | | | | | | | | | in const. | |||||
| * | | nrf: remove OptionalPin | Dario Nieuwenhuis | 2022-02-12 | 9 | -25/+10 | |
| |/ | ||||||
| * | Upgrade to embedded-storage 0.3.0 | Ulf Lilleengen | 2022-02-07 | 1 | -1/+1 | |
| | | ||||||
| * | Merge #591 | bors[bot] | 2022-02-05 | 4 | -17/+145 | |
| |\ | | | | | | | | | | | | | | | | | | | | | | | 591: PWM WS2812B example and flexible sequence config r=Dirbaio a=huntc I've permitted the PWM sequences to be mutated on stopping the PWM by associating them with a new `SingleSequencer` structure. This is so that we can perform effects on the LEDs (and other use-cases, I'm sure!). The example has been updated to illustrate the use of this by flashing a WS2812B LED. There's also a `Sequencer` structure for more sophisticated PWM interactions, along with a `pwm_double_sequence` example to illustrate. These changes should make it possible to attain all of the nRF PWM functionality available. Co-authored-by: huntc <[email protected]> | |||||
| | * | Further API simplification for the single seq scenario | huntc | 2022-02-05 | 3 | -9/+6 | |
| | | | ||||||
| | * | Removed unrequired clone | huntc | 2022-02-04 | 1 | -1/+1 | |
| | | | ||||||
| | * | Introduced the SingleSequencer and a more complex Sequencer | huntc | 2022-02-04 | 4 | -27/+62 | |
| | | | ||||||
| | * | Small correction to times | huntc | 2022-02-04 | 1 | -1/+1 | |
| | | | ||||||
| | * | Revert the use of forever | huntc | 2022-02-04 | 1 | -7/+2 | |
| | | | ||||||
| | * | Update another example | huntc | 2022-02-04 | 1 | -13/+14 | |
| | | | ||||||
| | * | Expose PWM | huntc | 2022-02-04 | 2 | -11/+17 | |
| | | | ||||||
| | * | Introduces a Sequences struct | huntc | 2022-02-04 | 1 | -21/+18 | |
| | | | ||||||
| | * | Some more doco | huntc | 2022-01-30 | 1 | -2/+2 | |
| | | | ||||||
| | * | Revert "Own the sequence buffer" | huntc | 2022-01-30 | 3 | -32/+36 | |
| | | | | | | | | | This reverts commit 482389a6911d8d3505872e6ad03d5b0af565eaf9. | |||||
