aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
Commit message (Collapse)AuthorAgeFilesLines
...
* usb: remove is_stalled, set_stalled from Endpoint.Dario Nieuwenhuis2022-05-301-41/+19
| | | | | They're unused, and I believe it's not allowed for classes to stall EPs on their own?
* Revert "Fix irq pend behavior"chemicstry2022-05-261-2/+2
| | | | This reverts commit 9a447f1359ebaabc486ed4eb364eb3dd7b5275c9.
* Fix irq pend behaviorchemicstry2022-05-261-2/+2
|
* Implement BufRead for nrf BufferedUartechemicstry2022-05-261-0/+42
|
* nrf/buffered_uarte: fix out of bounds on read.Dario Nieuwenhuis2022-05-141-1/+1
|
* Merge #768bors[bot]2022-05-121-23/+15
|\ | | | | | | | | | | | | | | 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 <[email protected]>
| * nrf/usb: fix control out transfers getting corrupted due to ep0rcvout ↵Dario Nieuwenhuis2022-05-121-14/+11
| | | | | | | | sticking from earlier.
| * usb: parse request in embassy-usb instead of the driver.Dario Nieuwenhuis2022-05-121-9/+4
| |
* | Remove OnDrop handler, start sampling in newHenrik Alsér2022-05-121-10/+4
| |
* | Merge branch 'embassy-rs:master' into qdecHenrik Alsér2022-05-121-65/+29
|\|
| * usb: merge `alloc_control_pipe` and `into_bus` into `start`.Dario Nieuwenhuis2022-05-101-33/+14
| | | | | | | | | | This prevents calling `alloc_control_pipe` twice at compile time, which was always an error.
| * usb: remove address arg from endpoint allocation.Dario Nieuwenhuis2022-05-091-38/+21
| |
* | Merge branch 'embassy-rs:master' into qdecHenrik Alsér2022-05-072-64/+81
|\|
| * Replace embassy::io with embedded_io.Dario Nieuwenhuis2022-05-072-64/+81
| |
* | Add qdec moduleHenrik Alsér2022-05-079-0/+245
|/
* nrf/twim: add blocking methods variants with timeout.Dario Nieuwenhuis2022-05-031-0/+124
|
* nrf/twim: add option for high drive.Dario Nieuwenhuis2022-05-031-2/+14
|
* nrf/gpio: add input+output to Flex, for OpenDrain.Dario Nieuwenhuis2022-05-031-25/+45
|
* Add split method to UarteWithIdleZoey Riordan2022-04-271-20/+49
|
* Merge pull request #722 from embassy-rs/usb-altsettingsDario Nieuwenhuis2022-04-231-43/+67
|\ | | | | usb: builtin handling of interface alternate settings
| * usb: builtin handling of interface alternate settingsDario Nieuwenhuis2022-04-231-43/+67
| | | | | | | | | | | | | | | | 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).
* | Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis2022-04-221-1/+1
|/ | | | | This temporarily removes support for the async UART trait, since it's not yet in embedded-hal-async.
* Add embedded-storage trait impls for QSPIUlf Lilleengen2022-04-191-30/+201
| | | | | | | | | | * 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
* Make Driver::disable async and fix commentalexmoon2022-04-131-3/+6
|
* Remove dead code on nrf5340alexmoon2022-04-131-0/+2
|
* Add DeviceStateHandler, DeviceCommand channel, and remote wakeup supportalexmoon2022-04-131-35/+69
|
* Unify ReadError and WriteError into EndpointErroralexmoon2022-04-091-13/+13
|
* Add saadc::VddhDiv5Inputalexmoon2022-04-081-0/+23
|
* Merge #657bors[bot]2022-04-076-22/+855
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Co-authored-by: alexmoon <[email protected]>
| * Fix spurious ControlPipe::data_in errorsalexmoon2022-04-071-6/+6
| |
| * Async-ify Driver::enable and UsbDeviceBuilder::buildalexmoon2022-04-071-23/+35
| |
| * usb: abort control data in/out on reset or when receiving another SETUP.Dario Nieuwenhuis2022-04-061-29/+42
| | | | | | | | This removes the horrible timeout hack.
| * Add basic device state handling for endpoints.alexmoon2022-04-061-51/+129
| |
| * Simplify hid output report handlingalexmoon2022-04-061-15/+5
| |
| * Reduce memory overhead and simplify logic for merging endpoint and control ↵alexmoon2022-04-061-5/+15
| | | | | | | | request output reports.
| * usb: centralize all control logging in control.rsDario Nieuwenhuis2022-04-061-2/+0
| |
| * nrf/usb: unify in/out wakers for ep0Dario Nieuwenhuis2022-04-061-11/+12
| |
| * Move data chunking from the driver to the libalexmoon2022-04-061-98/+55
| |
| * usb: cleanup and simplify error handling.Dario Nieuwenhuis2022-04-061-11/+7
| |
| * usb: cleanup logging.Dario Nieuwenhuis2022-04-061-8/+10
| |
| * usb: add -usb-serial crate, fix warnings and stable build.Dario Nieuwenhuis2022-04-066-4/+12
| |
| * Support multi-frame data phase control requestsalexmoon2022-04-061-29/+54
| |
| * Only copy through RAM when neededalexmoon2022-04-061-3/+9
| |
| * nrf/usb: fix wrong DMA read sizeDario Nieuwenhuis2022-04-061-1/+1
| |
| * Add support for USB classes handling control requests.alexmoon2022-04-061-152/+272
| |
| * nrf/usb: update where clause syntax.Dario Nieuwenhuis2022-04-061-12/+3
| |
| * Working CDC-ACM device->hostDario Nieuwenhuis2022-04-061-58/+100
| |
| * Working CDC-ACM host->deviceDario Nieuwenhuis2022-04-061-33/+176
| |
| * wip: experimental async usb stackDario Nieuwenhuis2022-04-061-23/+464
| |
* | Reexport unborrow macro in HALsMatous Hybl2022-04-071-0/+3
|/