summaryrefslogtreecommitdiff
path: root/ports/stm/common-hal
AgeCommit message (Collapse)Author
2021-03-19fix stm compiler errorDan Halbert
2021-03-18merge from upstreamDan Halbert
2021-03-16More formattinggamblor21
2021-03-16Formatting fixesgamblor21
2021-03-15Merge branch 'main' into rp_dp_parallelMark
2021-03-15run code formatting scriptmicroDev
2021-03-11Add frequency support to parallel busgamblor21
2021-03-11Fix UART deinitLucian Copeland
2021-03-11use return values in STM PWMOut constructor, not exceptionsDan Halbert
2021-03-05[stm] `curr_pulseout` can be `STATIC`Artyom Skrobov
Not used outside of PulseOut.c
2021-02-26Merge remote-tracking branch 'origin/main' into update-protomatter-rp2Jeff Epler
2021-02-19merge from upstream; re-alphabetizeDan Halbert
2021-02-12Enable protomatter on RP2040 buildsJeff Epler
Also found a race condition between timer_disable and redraw, which would happen if I debugger-paused inside common_hal_rgbmatrix_timer_disable or put a delay or print inside it. That's what pausing inside reconstruct fixes. So that the "right timer" can be chosen, `timer_allocate` now gets the `self` pointer. It's guaranteed at this point that the pin information is accurate, so you can e.g., find a PWM unit related to the pins themselves. This required touching each port to add the parameter even though it's unused everywhere but raspberrypi.
2021-02-11merge from upstream; complicated webusb mergeDan Halbert
2021-02-10Fix I2C Repeated start error by converting to IT modeLucian Copeland
2020-12-28update common_hal_reset_pin()microDev
2020-12-08Add `board_deinit` for use with sleepScott Shawcroft
This changes lots of files to unify `board.h` across ports. It adds `board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to deinit the board before deep sleeping (even when pretending.) Deep sleep is now a two step process for the port. First, the port should prepare to deep sleep based on the given alarms. It should set alarms for both deep and pretend sleep. In particular, the pretend versions should be set immediately so that we don't miss an alarm as we shutdown. These alarms should also wake from `port_idle_until_interrupt` which is used when pretending to deep sleep. Second, when real deep sleeping, `alarm_enter_deep_sleep` is called. The port should set any alarms it didn't during prepare based on data it saved internally during prepare. ESP32-S2 sleep is a bit reorganized to locate more logic with TimeAlarm. This will help it scale to more alarm types. Fixes #3786
2020-12-01address review commentsDan Halbert
2020-11-26deep sleep working; deep sleep delay when connectedDan Halbert
2020-11-25merge from upstream + wipDan Halbert
2020-11-23Fix NVM by clearing FLASH_FLAG_PGPERRjgillick
2020-11-22wipDan Halbert
2020-11-22Cleanupjgillick
2020-11-22Fix formatting.jgillick
2020-11-22Merge remote-tracking branch 'origin/main' into thunderpack1.2jgillick
2020-11-21wip: ResetReason to microcontroller.cpuDan Halbert
2020-11-17Merge tag '6.0.0' into thunderpack1.2jgillick
2020-11-16Add Thunderpack 1.2jgillick
2020-11-16Merge remote-tracking branch 'adafruit/main' into sleepDan Halbert
2020-11-13Update parallel bus signaturesScott Shawcroft
2020-10-27Add check for invalid io, function to disable all alarmsmicroDev
2020-10-27Add description of alarm modulesmicroDev
2020-10-06canio: remove unused fieldsJeff Epler
these relate to properties that were removed as well
2020-10-06stm: canio: remove stray optimization flag for debuggingJeff Epler
2020-10-06stm32: canio: Fix message cancellationJeff Epler
.. it's necessary to wait for a cancellation request to actually free the respective Tx mailbox
2020-10-06stm32: canio: Fix canio.CAN.restart()Jeff Epler
2020-10-06stm32: canio: When Tx mailboxes are full, cancel an old messageJeff Epler
.. also add the 8ms wait for transmission that the atmel sam port has
2020-10-06stm32: canio: remove unused functionsJeff Epler
2020-10-06stm32: canio: remove some unneeded declarationsJeff Epler
2020-10-06canio: implement for stm32f405Jeff Epler
The has successfully run my loopback self-test program for CAN, which tests transmission, reception, and filtering. The 1M baud rate setting was also verified on saleae to be accurate.
2020-09-23Move missing pin warning to shared-bindingsLucian Copeland
2020-09-20Merge pull request #3441 from hierophect/stm32-rgbmatrix-crashfixJeff Epler
STM32: Add never_reset reservation to RGBMatrix init
2020-09-18Add never_reset reservation to RGBMatrix initLucian Copeland
2020-09-16Add SPI memset, optional flagsLucian Copeland
2020-09-05Moved checks for invalid pin to common-hal/microcontroller/Pin.croot
2020-08-27Merge pull request #3320 from hierophect/stm32-meowbit-fixJeff Epler
STM32: Fix Meowbit startup and associated bugs
2020-08-27Merge pull request #3337 from hierophect/pulseout-errorstyleDan Halbert
Fix problematic whitespace on pulseout parameter errors
2020-08-27Fix problematic whitespace on pulseout parameter errorsLucian Copeland
2020-08-26Merge remote-tracking branch 'upstream/main' into stm32-meowbit-fixLucian Copeland
2020-08-26improve efficiency of stm32 random genLucian Copeland