Skip to content

Commit

Permalink
Merge pull request micropython#30 from adafruit/main
Browse files Browse the repository at this point in the history
Update from adafruit/main
  • Loading branch information
DavePutz authored Oct 3, 2020
2 parents 7ad7e1c + 9535edb commit f362a4a
Show file tree
Hide file tree
Showing 165 changed files with 7,219 additions and 790 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ jobs:
- "pyportal_titano"
- "pyruler"
- "qtpy_m0"
- "qtpy_m0_haxpress"
- "raytac_mdbt50q-db-40"
- "robohatmm1_m4"
- "sam32"
Expand Down Expand Up @@ -413,13 +414,15 @@ jobs:
fail-fast: false
matrix:
board:
- "adafruit_metro_esp32s2"
- "electroniccats_bastwifi"
- "espressif_kaluga_1"
- "espressif_saola_1_wroom"
- "espressif_saola_1_wrover"
- "microdev_micro_s2"
- "muselab_nanoesp32_s2"
- "unexpectedmaker_feathers2"
- "unexpectedmaker_feathers2_prerelease"

steps:
- name: Set up Python 3.8
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ TAGS
*.mo

.vscode
.idea

# Python Virtual Environments
####################
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ repos:
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/esp32s2/esp-idf-config/.*|ports/esp32s2/boards/.*/sdkconfig)'
- id: trailing-whitespace
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(BASEOPTS)
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(BASEOPTS)

TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/cxd56 ports/mimxrt10xx ports/nrf ports/stm py shared-bindings shared-module supervisor
TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/cxd56 ports/esp32s2 ports/mimxrt10xx ports/nrf ports/stm py shared-bindings shared-module supervisor
# Paths to exclude from TRANSLATE_SOURCES
# Each must be preceded by "-path"; if any wildcards, enclose in quotes.
# Separate by "-o" (Find's "or" operand)
TRANSLATE_SOURCES_EXC = -path "ports/*/build-*" \
-o -path "ports/*/build" \
-o -path ports/esp32s2/esp-idf \
-o -path ports/cxd56/spresense-exported-sdk \
-o -path ports/stm/st_driver \
-o -path ports/atmel-samd/asf4 \
-o -path ports/mimxrt10xx/sdk \
-o -path lib/tinyusb \
-o -path lib/lwip \

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext stubs

Expand Down Expand Up @@ -210,7 +222,7 @@ pseudoxml:
all-source:

locale/circuitpython.pot: all-source
find $(TRANSLATE_SOURCES) -iname "*.c" -print | (LC_ALL=C sort) | xgettext -f- -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
find $(TRANSLATE_SOURCES) -type d \( $(TRANSLATE_SOURCES_EXC) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -f- -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale

# Historically, `make translate` updated the .pot file and ran msgmerge.
# However, this was a frequent source of merge conflicts. Weblate can perform
Expand All @@ -235,7 +247,7 @@ merge-translate:

.PHONY: check-translate
check-translate:
find $(TRANSLATE_SOURCES) -iname "*.c" -print | (LC_ALL=C sort) | xgettext -f- -L C -s --add-location=file --keyword=translate -o circuitpython.pot.tmp -p locale
find $(TRANSLATE_SOURCES) -type d \( $(TRANSLATE_SOURCES_EXC) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -f- -L C -s --add-location=file --keyword=translate -o circuitpython.pot.tmp -p locale
$(PYTHON) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$?; rm -f locale/circuitpython.pot.tmp; exit $$status

stubs:
Expand Down
13 changes: 13 additions & 0 deletions docs/design_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,19 @@ struct.pack

Use `struct.pack_into` instead of `struct.pack`.

Use of MicroPython ``const()``
--------------------------------------------------------------------------------
The MicroPython ``const()`` feature, as discussed in `this forum post
<https://forum.micropython.org/viewtopic.php?t=450>`_, and in `this issue thread
<https://github.com/micropython/micropython/issues/573>`_, provides some
optimizations that can be useful on smaller, memory constrained devices. However,
when using ``const()``, keep in mind these general guide lines:

- Always use via an import, ex: ``from micropython import const``
- Limit use to global (module level) variables only.
- If user will not need access to variable, prefix name with a leading
underscore, ex: ``_SOME_CONST``.

Sensor properties and units
--------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion frozen/circuitpython-stage
2 changes: 1 addition & 1 deletion frozen/pew-pewpew-standalone-10.x
2 changes: 1 addition & 1 deletion lib/tinyusb
Submodule tinyusb updated 84 files
+1 −1 .github/ISSUE_TEMPLATE/bug_report.md
+16 −3 .github/workflows/build.yml
+1 −1 README.md
+5 −2 docs/boards.md
+102 −12 docs/getting_started.md
+0 −0 examples/device/cdc_msc/.skip.MCU_SAMD11
+0 −0 examples/device/cdc_msc_freertos/.skip.MCU_SAMD11
+0 −0 examples/device/dynamic_configuration/.skip.MCU_SAMD11
+0 −0 examples/device/hid_composite_freertos/.skip.MCU_SAMD11
+0 −0 examples/device/msc_dual_lun/.skip.MCU_SAMD11
+0 −0 examples/device/net_lwip_webserver/.skip.MCU_SAMD11
+0 −0 examples/host/cdc_msc_hid/.only.MCU_LPC175X_6X
+0 −0 examples/host/cdc_msc_hid/.only.MCU_LPC177X_8X
+0 −0 examples/host/cdc_msc_hid/.only.MCU_LPC18XX
+0 −0 examples/host/cdc_msc_hid/.only.MCU_LPC40XX
+0 −0 examples/host/cdc_msc_hid/.only.MCU_LPC43XX
+26 −0 examples/host/cdc_msc_hid/Makefile
+15 −8 examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject
+18 −8 examples/host/cdc_msc_hid/ses/lpc18xx/lpc18xx.emProject
+16 −8 examples/host/cdc_msc_hid/ses/lpc40xx/lpc40xx.emProject
+12 −7 examples/host/cdc_msc_hid/ses/lpc43xx/lpc43xx.emProject
+83 −18 examples/host/cdc_msc_hid/src/main.c
+19 −17 examples/host/cdc_msc_hid/src/msc_app.c
+7 −20 examples/host/cdc_msc_hid/src/tusb_config.h
+0 −1 examples/make.mk
+0 −104 examples/readme.md
+3 −0 hw/bsp/board.c
+1 −1 hw/bsp/board_mcu.h
+7 −4 hw/bsp/ea4088qs/board.mk
+11 −1 hw/bsp/ea4088qs/ea4088qs.c
+6 −5 hw/bsp/ea4357/board.mk
+67 −43 hw/bsp/ea4357/ea4357.c
+64 −0 hw/bsp/itsybitsy_nrf52840/board.mk
+225 −0 hw/bsp/itsybitsy_nrf52840/itsybitsy_nrf52840.c
+38 −0 hw/bsp/itsybitsy_nrf52840/nrf52840_s140_v6.ld
+13 −6 hw/bsp/lpcxpresso1769/lpcxpresso1769.c
+7 −1 hw/bsp/mbed1768/mbed1768.c
+2 −2 hw/bsp/mcb1800/board.mk
+63 −52 hw/bsp/mcb1800/mcb1800.c
+1 −1 hw/bsp/mimxrt1010_evk/mimxrt1010_evk.c
+1 −1 hw/bsp/mimxrt1015_evk/mimxrt1015_evk.c
+1 −1 hw/bsp/mimxrt1020_evk/mimxrt1020_evk.c
+2 −2 hw/bsp/mimxrt1050_evkb/mimxrt1050_evkb.c
+2 −2 hw/bsp/mimxrt1060_evk/mimxrt1060_evk.c
+2 −2 hw/bsp/mimxrt1064_evk/mimxrt1064_evk.c
+4 −3 hw/bsp/ngx4330/board.mk
+11 −5 hw/bsp/ngx4330/ngx4330.c
+53 −0 hw/bsp/samd11_xplained/board.mk
+152 −0 hw/bsp/samd11_xplained/samd11_xplained.c
+143 −0 hw/bsp/samd11_xplained/samd11d14am_flash.ld
+3 −3 hw/bsp/samg55xplained/board.mk
+2 −2 hw/bsp/teensy_40/teensy40.c
+1 −1 hw/mcu/microchip
+62 −31 src/class/cdc/cdc_device.c
+4 −2 src/class/cdc/cdc_device.h
+2 −3 src/class/cdc/cdc_host.c
+8 −5 src/class/hid/hid_device.c
+1 −1 src/class/hid/hid_device.h
+40 −44 src/class/hid/hid_host.c
+2 −8 src/class/hid/hid_host.h
+48 −24 src/class/midi/midi_device.c
+1 −1 src/class/midi/midi_device.h
+5 −4 src/class/msc/msc_host.c
+1 −1 src/class/msc/msc_host.h
+1 −1 src/class/vendor/vendor_host.c
+3 −3 src/device/dcd.h
+75 −1 src/device/usbd.c
+7 −0 src/device/usbd_pvt.h
+36 −6 src/host/ehci/ehci.c
+8 −2 src/host/ehci/ehci.h
+13 −6 src/host/hcd.h
+1 −1 src/host/hub.c
+15 −2 src/host/ohci/ohci.c
+2 −0 src/host/ohci/ohci.h
+76 −31 src/host/usbh.c
+8 −1 src/host/usbh.h
+3 −3 src/osal/osal.h
+8 −8 src/osal/osal_none.h
+3 −2 src/portable/microchip/samd/dcd_samd.c
+1 −1 src/portable/nordic/nrf5x/dcd_nrf5x.c
+31 −7 src/portable/st/synopsys/dcd_synopsys.c
+2 −1 src/tusb_option.h
+3 −0 test/test/support/tusb_config.h
+29 −12 tools/build_all.py
Loading

0 comments on commit f362a4a

Please sign in to comment.