summaryrefslogtreecommitdiff
path: root/ports/raspberrypi/common-hal/busio/UART.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2021-02-25A few minor fixes for corner casesScott Shawcroft
* Always clear the peripheral interrupt so we don't hang when full * Store the ringbuf in the object so it gets collected when we're alive * Make UART objects have a finaliser so they are deinit when their memory is freed * Copy bytes into the ringbuf from the FIFO after we read to ensure the interrupt is enabled ASAP * Copy bytes into the ringbuf from the FIFO before measuring our rx available because the interrupt is based on a threshold (not > 0). For example, a single byte won't trigger an interrupt.
2021-02-25more uart improvementsmicroDev
- address suggested changes - refine uart instance availibility checks - improve pin validation and rx buffer handling
2021-02-25implement suggested changesmicroDev
- add internal buffering - rtc initialization fix
2021-02-19uart implementation for rp2040microDev
2021-01-26Raise an error on UART useScott Shawcroft
2021-01-20Add initial RP2040 supportScott Shawcroft
The RP2040 is new microcontroller from Raspberry Pi that features two Cortex M0s and eight PIO state machines that are good for crunching lots of data. It has 264k RAM and a built in UF2 bootloader too. Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf