summaryrefslogtreecommitdiff
path: root/embassy-nrf
AgeCommit message (Collapse)Author
2022-06-18Remove the authors field from Cargo.tomlsDario Nieuwenhuis
It currently contains whoever was first to write some code for the crate, even if many more people have contributed to it later. The field is "sort of" deprecated, it was made optional recently: https://rust-lang.github.io/rfcs/3052-optional-authors-field.html Due the the reasons listed there I believe removing it is better than setting it to generic fluff like "The Embassy contributors".
2022-06-18Update to 2021 edition. (#820)Dario Nieuwenhuis
2022-06-18Update rust nightly. (#819)Dario Nieuwenhuis
2022-06-12Run rustfmt.Dario Nieuwenhuis
2022-06-12Add embassy-cortex-m crate.Dario Nieuwenhuis
- 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`.
2022-06-09common/PeripheralMutex: remove unsafe API. (#802)Dario Nieuwenhuis
Following the project's decision that "leak unsafe" APIs are not marked as "unsafe", update PeripheralMutex to accept non-'static state without unsafe. Fixes #801
2022-06-07nrf/twim: allow zero length transfers.Dario Nieuwenhuis
2022-05-31Merge #788bors[bot]
788: Misc USB improvements, for stm32 r=Dirbaio a=Dirbaio See individual commit messages. These changes help implementing the driver for STM32 USBD (#709) Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-05-30usb: make ControlPipe accept, reject async.Dario Nieuwenhuis
2022-05-30usb: add first, last params to ControlPipe data_in, data_out.Dario Nieuwenhuis
2022-05-30usb: remove is_stalled, set_stalled from Endpoint.Dario Nieuwenhuis
They're unused, and I believe it's not allowed for classes to stall EPs on their own?
2022-05-29Update embedded-hal-async to 0.1.0-alpha.1Dario Nieuwenhuis
2022-05-26Revert "Fix irq pend behavior"chemicstry
This reverts commit 9a447f1359ebaabc486ed4eb364eb3dd7b5275c9.
2022-05-26Fix irq pend behaviorchemicstry
2022-05-26Implement BufRead for nrf BufferedUartechemicstry
2022-05-19Update embedded-io to 0.3Dario Nieuwenhuis
2022-05-14nrf/buffered_uarte: fix out of bounds on read.Dario Nieuwenhuis
2022-05-12Merge #768bors[bot]
768: nrf/usb: fix control out transfers getting corrupted due to ep0rcvout sticking from earlier. r=Dirbaio a=Dirbaio bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-05-12nrf/usb: fix control out transfers getting corrupted due to ep0rcvout ↵Dario Nieuwenhuis
sticking from earlier.
2022-05-12usb: parse request in embassy-usb instead of the driver.Dario Nieuwenhuis
2022-05-12Remove OnDrop handler, start sampling in newHenrik Alsér
2022-05-12Merge branch 'embassy-rs:master' into qdecHenrik Alsér
2022-05-10usb: merge `alloc_control_pipe` and `into_bus` into `start`.Dario Nieuwenhuis
This prevents calling `alloc_control_pipe` twice at compile time, which was always an error.
2022-05-09usb: remove address arg from endpoint allocation.Dario Nieuwenhuis
2022-05-07Merge branch 'embassy-rs:master' into qdecHenrik Alsér
2022-05-07Replace embassy::io with embedded_io.Dario Nieuwenhuis
2022-05-07Add qdec moduleHenrik Alsér
2022-05-03nrf/twim: add blocking methods variants with timeout.Dario Nieuwenhuis
2022-05-03nrf/twim: add option for high drive.Dario Nieuwenhuis
2022-05-03nrf/gpio: add input+output to Flex, for OpenDrain.Dario Nieuwenhuis
2022-04-27Add split method to UarteWithIdleZoey Riordan
2022-04-23Merge pull request #722 from embassy-rs/usb-altsettingsDario Nieuwenhuis
usb: builtin handling of interface alternate settings
2022-04-23nrf: autoenable defmt in deps.Dario Nieuwenhuis
2022-04-23usb: builtin handling of interface alternate settingsDario Nieuwenhuis
The stack reads its own descriptors to figure out which endpoints are used in which alt settings, and enables/disables them as needed. The ControlHandler has a callback so it can get notified of alternate setting changes, which is purely informative (it doesn't have to do anything).
2022-04-22Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis
This temporarily removes support for the async UART trait, since it's not yet in embedded-hal-async.
2022-04-19Add embedded-storage trait impls for QSPIUlf Lilleengen
* Adds implementations of embedded-storage and embedded-storage-async for QSPI * Add blocking implementations of QSPI * Use blocking implementation in new() and embedded-storage impls * Use async implementation in embedded-storage-async impls * Add FLASH_SIZE const generic parameter * Own IRQ in Qspi to disable it on drop
2022-04-13Make Driver::disable async and fix commentalexmoon
2022-04-13Remove dead code on nrf5340alexmoon
2022-04-13Add DeviceStateHandler, DeviceCommand channel, and remote wakeup supportalexmoon
2022-04-09Unify ReadError and WriteError into EndpointErroralexmoon
2022-04-08Add saadc::VddhDiv5Inputalexmoon
2022-04-07Merge #657bors[bot]
657: Async usb stack r=Dirbaio a=Dirbaio TODO - [x] Make it work on nRF - [x] Add a way for classes to handle their own EP0 control requests - thanks `@alexmoon!` - [x] Handle CONTROL OUT requests with data. - [ ] Impl AsyncRead/AsyncWrite for CDC ACM -- will do later, it's not trivial - [x] Cleanup unwraps/asserts/panics - [x] Cleanup logs (make everything trace/debug, not info) - [ ] Port synopsys-usb-otg - [ ] Port stm32-usbd - [ ] Add more classes? HID, MSD? Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net> Co-authored-by: alexmoon <alex.r.moon@gmail.com>
2022-04-07Fix spurious ControlPipe::data_in errorsalexmoon
2022-04-07Async-ify Driver::enable and UsbDeviceBuilder::buildalexmoon
2022-04-07Reexport unborrow macro in HALsMatous Hybl
2022-04-06usb: abort control data in/out on reset or when receiving another SETUP.Dario Nieuwenhuis
This removes the horrible timeout hack.
2022-04-06Add basic device state handling for endpoints.alexmoon
2022-04-06Simplify hid output report handlingalexmoon
2022-04-06Reduce memory overhead and simplify logic for merging endpoint and control ↵alexmoon
request output reports.
2022-04-06usb: centralize all control logging in control.rsDario Nieuwenhuis