summaryrefslogtreecommitdiff
path: root/ports/raspberrypi/common-hal/busio
AgeCommit message (Collapse)Author
2021-03-17RP2040: Only bitbang 0-byte writesPhil Howard
The I2C.c for RP2040 included a special case for writes <=2 bytes to match the MicroPython implementation, however RP2040 does support 1 and 2 byte reads, with only 0 bytes being the exception. Signed-off-by: Philip Howard <phil@pimoroni.com>
2021-03-15run code formatting scriptmicroDev
2021-03-03add 1sec timeouts for I2C read and writeDan Halbert
2021-03-02works on nearly all sensorsDan Halbert
2021-03-02Merge remote-tracking branch 'adafruit/main' into rp2040-i2c-short-writesDan Halbert
2021-03-02wipDan Halbert
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-02-18Initial fix, but bitbangio timing may be offDan Halbert
2021-02-03Initial commit. Edited error messages in .c filesBiffoBear
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