summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2021-01-11Merge branch 'main' into add-translation-for-builtin-object-helpHugo Dahl
2021-01-11Merge pull request #3957 from dhalbert/gcc10-debug-buildsScott Shawcroft
new CIRCUITPY_DEBUG flag passes DEBUG into C preprocessor
2021-01-08avoid inline compile errorsDan Halbert
2021-01-07Merge remote-tracking branch 'origin/main' into audioout-esp32Jeff Epler
2021-01-05Merge branch 'main' into msgpackiot49
2020-12-30Merge branch 'main' of https://github.com/adafruit/circuitpython into ↵Hugo Dahl
add-translation-for-builtin-object-help * 'main' of https://github.com/adafruit/circuitpython: update wake-alarm implementation enable light-sleep functionality update frozen libs for 6.1.0-beta.3 Revert "Removing frozen libs" add pretend-to-sleep functionality expose wake pin parameter and more tweaks add touch alarm support for esp32s2 implement touch alarm
2020-12-30Add localization for built-in helpHugo Dahl
Support localizing the output of a call to to match the firmware's language.
2020-12-30Merge branch 'main' into touch-s2microDev
2020-12-29audiobusio: Make PDMIn optionalJeff Epler
2020-12-23Merge branch 'main' into pin_alarmDan Halbert
2020-12-23circuitpy_mpconfig.mk: Unconditionally disable CIRCUITPY_BUSDEVICEJeff Epler
Several issues have been found in the implementation. While they're unresolved, it may be better to disable the built-in module. (This means that to work on fixing the module, it'll be necessary to revert this commit)
2020-12-22A couple sleep fixesScott Shawcroft
* Better messaging when code is stopped by an auto-reload. * Auto-reload works during sleeps on ESP32-S2. Ticks wake up the main task each time. * Made internal naming consistent. CamelCase Python names are NOT separated by an underscore.
2020-12-18implement touch alarmmicroDev
2020-12-18Merge branch 'main' into ota-s2microDev
2020-12-18rename ota to dualbankmicroDev
2020-12-17Merge pull request #3752 from jepler/gcc10Dan Halbert
build: Update to gcc10
2020-12-15Add alarm.pin that wakes on pin levelScott Shawcroft
Fixes #3787
2020-12-15Merge pull request #3771 from cwalther/exceptionprintJeff Epler
#3702 breaks printing an exception twice
2020-12-14Merge pull request #3816 from dhalbert/sleepmemoryScott Shawcroft
alarm.sleep_memory + alarm.wake_alarm
2020-12-14-Os for SAMD51; fix CSUPEROPT typoDan Halbert
2020-12-12Merge branch 'main' into ota-s2microDev
2020-12-11Merge branch 'main' into msgpackScott Shawcroft
2020-12-10Invoke scripts withDan Halbert
2020-12-10Initial SleepMemory codeDan Halbert
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-08implement ota modulemicroDev
2020-12-07remove a ~ from doc that causes an error; add ExtType.c to circuitpy_defns.mkBernhard Boser
2020-12-02Merge pull request #3612 from gamblor21/bus_deviceScott Shawcroft
Moving Adafruit_CircuitPython_BusDevice to core
2020-12-02Merge remote-tracking branch 'adafruit/main' into msgpackScott Shawcroft
2020-12-02Merge pull request #3767 from dhalbert/sleepScott Shawcroft
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented
2020-12-01moved logic to shared-module and added documentationBernhard Boser
2020-12-01removed empty line at end of py/circuitpy_mpconfig.mkBernhard Boser
2020-12-01add module msgpackBernhard Boser
2020-12-01address review commentsDan Halbert
2020-12-01Merge branch 'main' into bus_deviceMark
2020-11-30Merge pull request #3695 from cwalther/movableScott Shawcroft
Add movable supervisor allocations
2020-11-29Disable complex arithmetic on SAMD21 builds to make spaceDan Halbert
2020-11-28Revert "Prevent exceptions from accumulating in REPL"Christian Walther
This reverts commit 0cd951fb73198f5c3dd03ea0463382edac0d3d4d. It is not a correct solution because it prevents printing the same exception twice.
2020-11-28Use movable allocation system for terminal tilegrid.Christian Walther
Moving memory is now done by the infrastructure and neither necessary nor correct here anymore.
2020-11-28Add movable allocation system.Christian Walther
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap. By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
2020-11-28Disable complex arithmetic on SAMD21 builds to make spaceDan Halbert
2020-11-25merge from upstream + wipDan Halbert
2020-11-25changed alarm.time APIDan Halbert
2020-11-24Merge pull request #3741 from hathach/fix-cdc-connection-raceJeff Epler
update tinyusb to fix cdc connection race
2020-11-24Disable 3-arg pow() function on m0 boardsJeff Epler
`pow(a, b, c)` can compute `(a ** b) % c` efficiently (in time and memory). This can be useful for extremely specific applications, like implementing the RSA cryptosystem. For typical uses of CircuitPython, this is not an important feature. A survey of the bundle and learn system didn't find any uses. Disable it on M0 builds so that we can fit in needed upgrades to the USB stack.
2020-11-23working, but need to avoid deep sleeping too fast before USB readyDan Halbert
2020-11-23Merge pull request #3694 from jepler/update-ulab2Scott Shawcroft
ulab: Update to release tag 1.1.0
2020-11-23ulab: Update to release tag 1.1.0Jeff Epler
Disable certain classes of diagnostic when building ulab. We should submit patches upstream to (A) fix these errors and (B) upgrade their CI so that the problems are caught before we want to integrate with CircuitPython, but not right now.
2020-11-21wip: ResetReason to microcontroller.cpuDan Halbert
2020-11-20compilesDan Halbert