micropython/ports/nrf/modules/machine
robert-hh 7ea192af05 nrf/modules/machine/uart: Add timeout keyword options and "any" method.
Changes in this commit:
- Add the timeout and timeout_char keyword options.
- Make uart.read() non-blocking.
- Add uart.any().
- Add ioctl MP_STREAM_POLL handling.
- Change uart.write() into non-busy waiting. uart.write() still waits until
  all data has been sent, but calls MICROPY_EVENT_POLL_HOOK while waiting.
  uart.write() uses DMA for transfer.  One option would be to add a small
  local buffer, such that transfers up to the size of the buffer could be
  done without waiting.
- As a side effect to the change of uart.write(), uart.txdone() and ioctl
  flush now report/wait correctly for the end of transmission.
- Change machine_hard_uart_buf_t in machine_hard_uart_obj_t to an instance
  of that struct, rather than a pointer to one.
2023-03-20 16:08:35 +11:00
..
adc.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
adc.h nrf/adc: Allow for external use of new and value read function. 2018-07-18 17:12:26 +10:00
i2c.c nrf: Rename machine I2C, PWM, SPI, UART types consistently across ports. 2022-10-22 12:58:54 +11:00
i2c.h nrf: Rename machine I2C, PWM, SPI, UART types consistently across ports. 2022-10-22 12:58:54 +11:00
modmachine.c py/gc: Make gc_dump_info/gc_dump_alloc_table take a printer as argument. 2023-03-10 10:58:10 +11:00
modmachine.h nrf/modmachine: Add machine.bootloader() and make it customisable. 2022-06-17 13:37:44 +10:00
pin.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pin.h nrf: Remove port member from Pin object 2018-07-18 17:12:26 +10:00
pwm.c nrf/modules/machine/pwm: Support using all 4 channels of a PWM module. 2023-03-10 10:44:02 +11:00
pwm.h nrf/modules/machine/pwm: Use extmod/machine_pwm.c for PWM module. 2023-03-10 10:43:55 +11:00
rtcounter.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
rtcounter.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
soft_pwm.c nrf/modules/machine/soft_pwm: Add PWM for nrf51x boards using soft PWM. 2023-03-10 10:44:02 +11:00
spi.c nrf: Rename machine I2C, PWM, SPI, UART types consistently across ports. 2022-10-22 12:58:54 +11:00
spi.h nrf: Rename machine I2C, PWM, SPI, UART types consistently across ports. 2022-10-22 12:58:54 +11:00
temp.c py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
temp.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
timer.c nrf: Rename MICROPY_PY_MACHINE_TIMER to MICROPY_PY_MACHINE_TIMER_NRF. 2022-10-27 14:30:58 +11:00
timer.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
uart.c nrf/modules/machine/uart: Add timeout keyword options and "any" method. 2023-03-20 16:08:35 +11:00
uart.h nrf/modules/machine/uart: Add timeout keyword options and "any" method. 2023-03-20 16:08:35 +11:00