summaryrefslogtreecommitdiff
path: root/ports/raspberrypi/common-hal
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-16Fixed formattinggamblor21
2021-03-15Merge branch 'main' into rp_dp_parallelMark
2021-03-15Merge pull request #4405 from DavePutz/issue_4237Scott Shawcroft
Issue 4237 - Changed initial setting in program_struct
2021-03-15run code formatting scriptmicroDev
2021-03-14Fixed initial settings for program_struct to allow more than 1 program per pioroot
2021-03-12Merge pull request #4262 from DavePutz/issue_4111Scott Shawcroft
Issue 4111 - Implement pulseio(pulsein) for RP2040
2021-03-12Added the correct filesDavePutz
2021-03-12Use StateMachine.c interrupt setup and simplify SM programDavePutz
2021-03-11Fix after rebasegamblor21
2021-03-11Changed frequency to match PIO having 2 instructionsgamblor21
2021-03-11Set frequency default 60Mhzgamblor21
2021-03-11Set the statemachine to never reset so REPL worksgamblor21
2021-03-11Updated to initalize pindirsgamblor21
2021-03-11Add frequency support to parallel busgamblor21
2021-03-11Removing debug info and clean upgamblor21
2021-03-11Initial commitgamblor21
2021-03-10raspberrypi: RTC: Ensure a time is setJeff Epler
Until a time is set, the RTC is not running, and rtc_get_datetime() returns false without assigning to the out-parameter. In CircuitPython, this would manifest as arbitrary values being returned, since uninitialized storage on the stack was being converted into a timestamp.
2021-03-09fix trailing whitespaceDavePutz
2021-03-09Moved pin wait to an initial execDavePutz
2021-03-09Update to agree with modified StateMachine.hDavePutz
2021-03-08Merge branch 'main' into issue_4111DavePutz
2021-03-08Added check for maxlenroot
2021-03-08Merge branch 'issue_4111' of https://github.com/DavePutz/circuitpython into ↵root
issue_4111
2021-03-08Added check for maxlenroot
2021-03-08Removed leftover debug codeDavePutz
2021-03-05WIPrp2040: Implement IncrementalEncoderJeff Epler
Any two consecutive pins can be used for an IncrementalEncoder Testing performed: Put a synthesized (few hundred counts per second) quadrature signal into GP2/3 and read the encoder out. Performed filesystem operations at the same time to stress test it. The reasons for not using common_hal_rp2pio_statemachine_readinto are commented on.
2021-03-04Merge branch 'main' into issue_4111DavePutz
2021-03-04Update PulseOut.cDavePutz
2021-03-04Update PulseOut.hDavePutz
2021-03-04Changed interrupt to per-word basis; cleaned up other small itemsDavePutz
2021-03-04StateMachine.h: Add header for declaration of mcu_pin_obj_t typedefJeff Epler
2021-03-04PDMIn: Add missing deinit callJeff Epler
2021-03-04rp2pio: Add pins_are_sequentialJeff Epler
This can be used where the standard API calls for a list of pins, to check that they satisfy the requirements of the rp2pio state machine, e.g., ```python def __init__(self, pin_a, pin_b): if not rp2pio.pins_are_sequential([pin_a, pin_b]): raise ValueError("Pins must be sequential") ```
2021-03-04StateMachine: Add pull up/down for inputsJeff Epler
2021-03-04StateMachine: Add in_available propertyJeff Epler
I named the property `in_available` because it is similar to pyserial. However, it indicates the number of words in the fifo, not the number of bytes.
2021-03-03Merge pull request #4315 from dhalbert/rp2040-i2c-short-writesDan Halbert
RP2040: Implement short I2C writes (2 bytes or less) using bitbangio
2021-03-03Update call to rp2pio_statemachine_constructDavePutz
2021-03-03Merge pull request #4254 from gamblor21/rp2040_countioScott Shawcroft
Rp2040 countio
2021-03-03Merge pull request #4265 from DavePutz/pio_soft_resetScott Shawcroft
Clear out PIOs and State Machines on RP2040 soft reset
2021-03-03add 1sec timeouts for I2C read and writeDan Halbert
2021-03-02Fixed mergegamblor21
2021-03-02works on nearly all sensorsDan Halbert
2021-03-02Update PulseIn.cDavePutz
2021-03-02Merge branch 'main' into rp2040_countioMark
2021-03-02Counter and PWMOut slice conflict checkgamblor21
2021-03-02Merge pull request #4186 from jepler/update-protomatter-rp2Jeff Epler
Enable protomatter on RP2040 builds
2021-03-02Merge remote-tracking branch 'adafruit/main' into rp2040-i2c-short-writesDan Halbert
2021-03-02wipDan Halbert
2021-03-02Merge pull request #4177 from microDev1/nvm-rpScott Shawcroft
RP2040: Support for NVM