Commit Graph

24506 Commits

Author SHA1 Message Date
Jeff Epler
c7df5e9980
Merge pull request #4852 from stonehippo/sparkfun-micromod-samd51
Sparkfun micromod samd51
2021-06-03 07:14:25 -06:00
Tsutomu IKEGAMI
a4be61912c Fix move cursor esc sequence of terminalio to meet ANSI standard 2021-06-03 20:40:37 +09:00
George White
9cde8a2265
MicroMod SAMD51 - correct I2C_INT pin 2021-06-03 06:05:13 -04:00
George White
26c6bd2346
MicroMod SAMD51 - correct SCL2 2021-06-03 05:39:09 -04:00
George White
6e36f30d9f
MicroMod SAMDt1 - correct board nane 2021-06-03 05:36:05 -04:00
robert-hh
2f365d234e mimxrt/machine_rtc: Add the RTC class to the machine module.
Initial version, using the LP RTC clock.  It provides setting the date and
time with rtc.init() or rtc.datetime(), and reading the date and time with
rtc.datetime() or rtc.now().  The method weekday() reports the weekday of
the current date.  It starts with 0 for Monday.

The tuple order for datetime() and now() matches the CPython sequence:
(year, month, day, hour, minute, second, microsecond, TZ).  TZ is ignored
and reported as None.  Microsecond is provided at a best effort.

If a battery is not supplied, the default boot date/time is 1970/1/1 0:0:0.
With a battery, the clock continues to run even when the board is not
powered.  The clock is quite precise.  If not, using rtc.calibration() may
help.
2021-06-03 15:24:04 +10:00
George White
2b068414e1
Fix missing comma
Doh
2021-06-02 23:13:08 -04:00
robert-hh
d79105d7c0 mimxrt/machine_timer: Leave the Timer clock source at IPG clock.
Setting it to OSC_CLK interferes the utime module's functionality.  This is
still an area demanding an understanding.
2021-06-03 13:03:02 +10:00
robert-hh
cdd95ce737 mimxrt/machine_timer: Reuse any existing timer objects.
So there is a 1-1 mapping of hardware timer to Python object.
2021-06-03 13:02:51 +10:00
George White
0437199706
Fix some pin mappings
Conflicts:
	ports/atmel-samd/boards/sparkfun_samd51_micromod/pins.c
2021-06-02 22:22:04 -04:00
robert-hh
5226d6e1ee mimxrt: Remove __WFE() from MICROPY_EVENT_POLL_HOOK.
The device is unreliable with the WFE included.  This needs further
investigation.
2021-06-03 12:21:36 +10:00
George White
4c493c86c8 Add Sparkfun MicroMod SAMD51 2021-06-02 22:05:58 -04:00
George White
db1830d62b Add Sparkfun MicroMod SAMD51 2021-06-02 21:53:23 -04:00
Jeff Epler
26751c9afe
Merge pull request #4848 from dhalbert/usb_cdc-data-only-fixes
Fix usb_cdc.enable(console=False, data=True)
2021-06-02 15:27:44 -06:00
Dan Halbert
95cbf3faa5 handle CIRCUITPY_USB_CDC = 0 properly (fix simmel build) 2021-06-02 15:27:20 -04:00
Dan Halbert
050b5f4cf0 fix check of usb_hid.Device out_report_length 2021-06-02 12:41:07 -04:00
Dan Halbert
51fc9027eb Remove non-product Adafruit boards 2021-06-02 12:41:07 -04:00
hexthat
a7ce843920 Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-06-02 12:41:07 -04:00
Wellington Terumi Uemura
dd3e129802 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-06-02 12:41:07 -04:00
Jonny Bergdahl
3b11e6f194 Translated using Weblate (Swedish)
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-06-02 12:41:07 -04:00
Jose David M
b8132c5c07 Translated using Weblate (Spanish)
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-06-02 12:41:07 -04:00
Hosted Weblate
e09a771ab2 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-06-02 12:41:07 -04:00
Dan Halbert
3930440bc5 Fix usb_cdc.enable(console=False, data=True) 2021-06-02 11:29:56 -04:00
Scott Shawcroft
850ede78d1
Merge pull request #4844 from FoamyGuy/stub_package
stubs package with data_files
2021-06-02 08:29:49 -07:00
Scott Shawcroft
a25872dcb3
Merge pull request #4845 from t-ikegami/mpz_crash_fix
Fix bit_length() method to work with zero-valued mpz integer.
2021-06-02 08:28:24 -07:00
Dan Halbert
6bc4f80e61
Merge pull request #4843 from dhalbert/7.0.0-a3-update-frozen-libraries
update frozen libraries for 7.0.0-alpha.3
2021-06-02 10:24:38 -04:00
Dan Halbert
1e74857866
Merge pull request #4847 from dhalbert/rp2040-xosc-startup
lengthen RP2040 xosc startup time
2021-06-02 10:24:11 -04:00
Dan Halbert
6af36757a7 lengthen RP2040 xosc startup time 2021-06-02 08:50:20 -04:00
Tsutomu IKEGAMI
9490010d7d Fix format (expand tab) 2021-06-02 12:10:41 +09:00
Tsutomu IKEGAMI
6278c2bb9f Fix bit_length() method to work with zero-valued mpz integer. 2021-06-02 11:57:55 +09:00
foamyguy
6737bbdcf3 stubs package with data_files 2021-06-01 20:38:56 -05:00
Dan Halbert
b49ee62af9
Merge pull request #4840 from adafruit/jepler-patch-1
Update __init__.c
2021-06-01 21:14:14 -04:00
Dan Halbert
d6f47d2182 update frozen libraries for 7.0.0-alpha.3 2021-06-01 21:09:59 -04:00
Jeff Epler
d888238dfe
Update __init__.c
some small typos
2021-06-01 19:15:51 -05:00
Scott Shawcroft
6ee9acc900
Merge pull request #4755 from jepler/esp32s2-protomatter
Esp32s2 protomatter
2021-06-01 13:32:34 -07:00
Scott Shawcroft
a94b8cf972
Merge pull request #4823 from jepler/ondiskbitmap-palette
OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes
2021-06-01 13:18:51 -07:00
Scott Shawcroft
892dfa84ed
Merge pull request #4826 from jepler/actions-windows-build
Check that select firmwares build on Windows with MSYS2
2021-06-01 13:04:06 -07:00
Scott Shawcroft
dea5c82d51
Merge pull request #4834 from reppad/muselab_nanoesp32_s2_wrover
Muselab nanoESP32-S2 w/WROVER
2021-06-01 12:46:47 -07:00
Scott Shawcroft
4a127de002
Merge pull request #4829 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-06-01 12:41:46 -07:00
Hosted Weblate
66fb0acca9 Merge remote-tracking branch 'origin/main' into main 2021-06-01 20:43:30 +02:00
Dan Halbert
d3238e0778
Merge pull request #4836 from jepler/mpy-cross-m1-nlr
mpy-cross: Remove bug workaround, debug print
2021-06-01 14:43:25 -04:00
Jeff Epler
dbf9918f78 mpy-cross: Remove bug workaround, debug print 2021-06-01 12:46:31 -05:00
robert-hh
4c407c790f mimxrt: Add the Timer class to the machine module.
It supports three hardware timer channels based on the PIT timers of the
MIMXRT MCU.  The timer id's are 0, 1 and 2.  On soft reboot all active
timers will be stopped via finalisers.
2021-06-02 00:33:13 +10:00
Damien George
934505ac33 tools/ci.sh: Build mpy-cross as part of ci_mimxrt_build.
Signed-off-by: Damien George <damien@micropython.org>
2021-06-02 00:02:21 +10:00
robert-hh
745b4319a2 mimxrt/boards/TEENSY40: Re-create the flash FS after deploy.
This is required since the Teensy Halfkay loader attempts to erase all of
the flash but fails to do so, at least in my tests.  Formatting brings it
back to a known state.
2021-06-01 23:52:45 +10:00
robert-hh
dfd4324eb1 mimxrt: Add flash storage support with VFS and littlefs filesystem.
This commit adds full support for a filesystem on all boards, with a block
device object mimxrt.Flash() and uos.VfsLfs2 enabled.

Main changes are:
- Refactoring of linker scripts to accomodate reserved area for VFS.  VFS
  will take up most of the available flash. 1M is reserved for code.  9K is
  reserved for flash configuration, interrupts, etc.
- Addition of _boot.py with filesystem init code, called from main.c.
- Definition of the mimxrt module with a Flash class in modmimxrt.[ch].
- Implementation of a flash driver class in mimxrt_flash.c.  All flashing
  related functions are stored in ITCM RAM.
- Addition of the uos module with filesystem functions.
- Implementation of uos.urandom() for the sake of completeness of the uos
  module.

It uses sample code from CircuitPython supplied under MIT license, which
uses the NXP SDK example code.

Done in collaboration with Philipp Ebensberger aka @alphaFred who
contributed the essential part to enable writing to flash while code is
executing, among other things.
2021-06-01 23:42:57 +10:00
Hosted Weblate
8a04a3c714 Merge remote-tracking branch 'origin/main' into main 2021-06-01 15:10:12 +02:00
hexthat
9eed85dd12
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (994 of 994 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-06-01 15:10:11 +02:00
Jeff Epler
623b935263
Merge pull request #4835 from djix123/main
Fix mpy-cross build on Apple M1 machines
2021-06-01 07:10:04 -06:00
robert-hh
c303b15f10 mimxrt: Enable frozen modules. 2021-06-01 22:57:09 +10:00