Damien George
5e1d3c8b5d
py/stackctrl: Prevent unused-var warning when stack checking disabled.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:09 +10:00
Damien George
a70a4e6688
py/emitglue: Always flush caches when assigning native ARM code.
...
Prior to this commit, cache flushing for ARM native code was done only in
the assembler code asm_thumb_end_pass()/asm_arm_end_pass(), at the last
pass of the assembler. But this misses flushing the cache when loading
native code from an .mpy file, ie in persistentcode.c.
The change here makes sure the cache is always flushed/cleaned/invalidated
when assigning native code on ARM architectures.
This problem was found running tests/micropython/import_mpy_native_gc.py on
the mimxrt port.
Signed-off-by: Damien George <damien@micropython.org>
2021-06-05 11:03:04 +10:00
Scott Shawcroft
bc014cecb5
Merge pull request #4859 from DavePutz/hcsr04_fix
...
Fix pulsein pause and resume functions to handle HCSR04
2021-06-04 13:26:05 -07:00
Scott Shawcroft
e1ebc37da2
Merge pull request #4858 from EmergReanimator/main
...
resolves #4153 : Fixed build issue when CIRCUITPY_USB is off
2021-06-04 10:42:36 -07:00
Scott Shawcroft
759ec5452e
Merge pull request #4857 from dunkmann00/enable_slice_indices
...
Enable slice indices
2021-06-04 10:42:05 -07:00
Scott Shawcroft
121ea4283f
Merge pull request #4855 from jepler/update-run-tests
...
run_tests: Parallelism improvements, partial sync with micropython
2021-06-04 10:36:50 -07:00
root
57334c812e
Fix pulsein pause and resume functions to handle HCSR04
2021-06-04 12:10:41 -05:00
ZodiusInfuser
af7557b53b
Updated with final USB PID
2021-06-04 16:02:32 +01:00
EmergReanimator
f2e3231c46
resolves #4153 : Fixed build issue when CIRCUITPY_USB is off
2021-06-04 10:12:50 +02:00
George Waters
c5066efacb
Enable slice indices
2021-06-03 22:55:32 -04:00
Jeff Epler
a99eba35b8
Merge pull request #4809 from DavePutz/issue_4266
...
Fix for Issue #4266 - second PWMAudioOut interferes with the first one
2021-06-03 19:08:28 -05:00
Jeff Epler
e6fe55349d
run_tests: Parallelism improvements, partial sync with micropython
...
Take changes from https://github.com/micropython/micropython/pull/3694
(expected to be merged soon) as well as other accumulated stuff from
upstream that we want.
Leave our desired differences, including:
* silencing warnings in python3
* renaming the file descriptors returned by openpty()
* adding ulab tests
* Adding "." to the import path for skip_if
This speeds up `make test_full` and should also reduce the time in CI
a little bit.
2021-06-03 16:17:47 -05:00
Scott Shawcroft
934a14b327
Merge pull request #4853 from t-ikegami/fix_terminalio_esc_sequence
...
Fix move cursor esc sequence of terminalio to meet ANSI standard
2021-06-03 12:43:43 -07:00
leo chung
fad0efdcf2
esp32/Makefile: Fix wrong target for partition-table.bin.
...
"$(BUILD)/partition_table/partition -table.bin" is typing mistake.
Signed-off-by: leo chung <gewalalb@gmail.com>
2021-06-04 01:04:35 +10:00
robert-hh
53fea8598e
mimxrt/boards: Add board configuration files for Teensy 4.1.
...
These are at the moment more or less identical to the Teensy 4.0 files,
except for the pins.csv file and the flash size.
2021-06-04 01:00:39 +10:00
Philipp Ebensberger
b8c65b174f
mimxrt/machine_adc: Add the ADC class to the machine module.
...
This adds the machine.ADC class with the read_u16() method. make-pins.py
and supporting files are updated to generate ADC information.
2021-06-04 00:51:58 +10:00
ZodiusInfuser
6011db3aec
Added board definition
2021-06-03 15:49:23 +01:00
robert-hh
bbdc98f72e
mimxrt: Enable many Python and some extmod features.
...
Besides Python features this includes the extmod modules which make use of
the Pin module, especially machine.softSPI, machine.SoftI2C and onewire.
2021-06-04 00:38:18 +10:00
robert-hh
a40e1473dc
mimxrt: Add floating point support.
...
Since not all boards support double fp, all board specific .mk files are
affected too.
2021-06-04 00:37:22 +10:00
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