Commit Graph

24378 Commits

Author SHA1 Message Date
Damien George 647fa63f9c stm32/softtimer: Support static soft timer instances.
This adds support for making static (ie not on the Python GC heap) soft
timers.  This can be useful for a board to define a custom background
handler, or eventually for BLE/network processing to use instead of systick
slots; it will be more efficient using soft timer for this.

The main issue with using the existing code for static soft timers is that
it would combine heap allocated and statically allocated soft_timer_entry_t
instances in the same pairing-heap data structure.  This would prevent the
GC from tracing some of the heap allocated entries (because the GC won't
follow pointers outside the heap).

This commit makes it so that soft timer entries are explicitly marked,
instead of relying on implicit marking by having the root of the pairing
heap in the root pointer section.  Also, on soft reset only the heap-
allocated soft timers are deleted from the pairing heap, leaving the
statically allocated ones.

Signed-off-by: Damien George <damien@micropython.org>
2021-04-29 16:54:35 +10:00
Damien George 89b64478c7 stm32/softtimer: Add support for having a C-based callback.
Signed-off-by: Damien George <damien@micropython.org>
2021-04-29 16:54:35 +10:00
Dan Halbert f06d54524d merge from adafruit 2021-04-28 23:48:26 -04:00
Seth Kerr 555ade7ff3 final change to ja flags i think 2021-04-28 20:42:13 -06:00
Steve App 326dd7f0db tools/makemanifest.py: Show directory name if there is a FreezeError. 2021-04-29 12:36:07 +10:00
Steve App 21fee92be6 esp32: Restore FROZEN_MANIFEST support with new CMake build system.
This commit re-enables the command-line make option "FROZEN_MANIFEST".  The
boards/*/mpconfigboard.cmake will now use the command-line FROZEN_MANIFEST
value if supplied.

Usage: make FROZEN_MANIFEST=~/foo/my-manifest.py
2021-04-29 12:34:00 +10:00
Seth Kerr 8090af07dd fix ja build issue 2021-04-28 19:14:45 -06:00
Lucian Copeland 9fe8d61656 Fix broken MP macros from 1.11 merge 2021-04-28 18:26:52 -04:00
Hosted Weblate 04948d5a40 Merge remote-tracking branch 'origin/main' into main 2021-04-29 00:25:37 +02:00
Dan Halbert b2b6f53112
Merge pull request #4684 from hierophect/nrf-alarm-hotfix
NRF: Fix MP type checking macros
2021-04-28 18:25:32 -04:00
Lucian Copeland 5c4500dbfa Fix MP type macros 2021-04-28 15:35:15 -04:00
Lucian Copeland 9feef41c82 Merge remote-tracking branch 'upstream/main' into stm-alarm 2021-04-28 15:10:55 -04:00
jposada202020 9c12b180c8 title change 2021-04-28 13:21:18 -04:00
Tsutomu IKEGAMI 0d25b95f0d Add definitions of PB2[4-9] pins to microcontroller.pin for atmel-samd. 2021-04-29 02:19:34 +09:00
jposada202020 71d575f0c4
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:16:33 -04:00
jposada202020 e33bc9f57b
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:16:21 -04:00
jposada202020 8ff29f68db
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:16:11 -04:00
jposada202020 ed2980b967
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:16:02 -04:00
jposada202020 1950cf6666
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:55 -04:00
jposada202020 aa9114254a
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:45 -04:00
jposada202020 129df1b3f7
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:37 -04:00
jposada202020 9fe1751f01
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:28 -04:00
jposada202020 69a510edc1
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:17 -04:00
jposada202020 3c49bd6bde
Update docs/design_guide.rst
Co-authored-by: Kattni <kattni@adafruit.com>
2021-04-28 13:15:09 -04:00
Dan Halbert 587aedd14f rework storage allocation 2021-04-28 13:00:44 -04:00
root cfac07c1cc Wrap pulsein when maxlen is exceeded 2021-04-28 11:20:13 -05:00
Hosted Weblate 9cd255a55d
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-04-28 18:11:43 +02:00
Hosted Weblate 6b41757472 Merge remote-tracking branch 'origin/main' into main 2021-04-28 18:11:40 +02:00
Jonny Bergdahl 9b5d131bf6
Translated using Weblate (Swedish)
Currently translated at 100.0% (972 of 972 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-28 18:11:40 +02:00
Wellington Terumi Uemura 4834a21b9c
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (972 of 972 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-04-28 18:11:40 +02:00
Hugo Dahl 602835a629
Translated using Weblate (French)
Currently translated at 100.0% (972 of 972 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-04-28 18:11:39 +02:00
Alvaro Figueroa bc8b254d4f
Translated using Weblate (Spanish)
Currently translated at 100.0% (972 of 972 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-04-28 18:11:39 +02:00
Reza Almanda 38c6234b84
Translated using Weblate (Indonesian)
Currently translated at 46.5% (452 of 972 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/id/
2021-04-28 18:11:38 +02:00
Dan Halbert d4d96bb25f
Merge pull request #4236 from jun2sak/nrf52-sleep
sleep and wakeup for nrf52
2021-04-28 12:11:31 -04:00
DavePutz 34014495d2
Merge pull request #47 from adafruit/main
Update from adafruit main
2021-04-28 10:16:01 -05:00
jposada202020 4e931697c6 adding_backticks, typos 2021-04-28 06:07:45 -04:00
Tsutomu IKEGAMI 22c4abd28f Add DAC* and RTL_* pin assignments to Wio Terminal board. 2021-04-28 18:57:21 +09:00
jposada202020 0c23c73510 defining_parameters 2021-04-28 05:36:37 -04:00
Dan Halbert 8500e846c6 partially working 2021-04-27 23:53:23 -04:00
Seth Kerr 444c008731 removing changes from external flash devices 2021-04-27 17:55:56 -06:00
Seth Kerr 710397fd84 adding board to build.yml 2021-04-27 16:54:13 -06:00
Seth Kerr 2f09535c3a removing duplicate file 2021-04-27 16:41:54 -06:00
Seth Kerr e85091193b adding CP Sapling Rev B 2021-04-27 16:30:44 -06:00
jposada202020 cb42acea53 better_phrasing 2021-04-27 17:43:25 -04:00
jposada202020 a512dd230d word_order_better_phrasing 2021-04-27 17:34:45 -04:00
jposada202020 4d0e183ae1 Module_description_changes 2021-04-27 17:18:14 -04:00
Jeff Epler fcabbe90d4
Merge pull request #4675 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-04-27 16:15:10 -05:00
jposada202020 2d80f6b872 Module_description_changes 2021-04-27 17:11:42 -04:00
jposada202020 b4e05dac69
Merge pull request #4 from adafruit/main
from main
2021-04-27 17:02:09 -04:00
Dan Halbert f98a54628b wip: compiles 2021-04-27 14:37:36 -04:00