embassy/examples/nrf52840/src/bin
Dario Nieuwenhuis ccc224c81f nrf/buffered_uarte: remove PeripheralMutex, make it work without rts/cts.
> dirbaio: so I was checking how zephyr does UARTE RX on nRF
> dirbaio: because currently we have the ugly "restart DMA on line idle to flush it" hack
> dirbaio: because according to the docs "For each byte received over the RXD line, an RXDRDY event will be generated. This event is likely to occur before the corresponding data has been transferred to Data RAM."
> dirbaio: so as I understood it, the only way to guarantee the data is actually transferred to RAM is to stop+restart DMA
> dirbaio: well, guess what?
> dirbaio: they just count RXDRDY's, and process that amount of data without restarting DMA
> dirbaio: with a timer configured as counter https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/serial/uart_nrfx_uarte.c#L650-L692
> dirbaio: 🤔🤷⁉️
> dirbaio: someone saying you can do the "hook up rxdrdy to a counter" trick, someone else saying it's wrong 🤪 https://devzone.nordicsemi.com/f/nordic-q-a/28420/uarte-in-circular-mode

So we're going to do just that!

- BufferedUarte is lock-free now. No PeripheralMutex.
- The "restart DMA on line idle to flush it" hack is GONE. This means
  - It'll work correctly without RTS/CTS now.
  - It'll have better throughput when using RTS/CTS.
2023-03-04 15:12:49 +01:00
..
awaitable_timer.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
blinky.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
buffered_uart.rs nrf/buffered_uarte: remove PeripheralMutex, make it work without rts/cts. 2023-03-04 15:12:49 +01:00
channel.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
channel_sender_receiver.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
executor_fairness_test.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
gpiote_channel.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
gpiote_port.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
i2s_effect.rs nrf: docs. 2023-02-01 01:17:41 +01:00
i2s_monitor.rs nrf: docs. 2023-02-01 01:17:41 +01:00
i2s_waveform.rs nrf: docs. 2023-02-01 01:17:41 +01:00
lora_p2p_report.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
lora_p2p_sense.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
manually_create_executor.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
multiprio.rs cortex-m/executor: don't use the owned interrupts system. 2023-02-28 23:07:20 +01:00
mutex.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
nvmc.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pdm.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
ppi.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pubsub.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm_double_sequence.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm_sequence.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm_sequence_ppi.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm_sequence_ws2812b.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
pwm_servo.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
qdec.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
qspi.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
qspi_lowpower.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
raw_spawn.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
rng.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
saadc.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
saadc_continuous.rs nrf: docs. 2023-02-01 01:17:41 +01:00
self_spawn.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
self_spawn_current_executor.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
spim.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
spis.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
temp.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
timer.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
twim.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
twim_lowpower.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
twis.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
uart.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
uart_idle.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
uart_split.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00
usb_ethernet.rs Example fixes. 2023-03-01 01:32:42 +01:00
usb_hid_keyboard.rs usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers. 2023-02-08 00:17:08 +01:00
usb_hid_mouse.rs usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers. 2023-02-08 00:17:08 +01:00
usb_serial.rs usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers. 2023-02-08 00:17:08 +01:00
usb_serial_multitask.rs usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers. 2023-02-08 00:17:08 +01:00
usb_serial_winusb.rs usb: use InterfaceNumber in msos. 2023-02-08 00:30:53 +01:00
wdt.rs Rename examples/nrf to examples/nrf52840 2023-01-09 22:30:02 +01:00