Commit Graph

27193 Commits

Author SHA1 Message Date
Maureen Helm 1e5df0982a zephyr: Get UART console device from devicetree instead of Kconfig.
Updates the Zephyr port to get the UART console device from devicetree
instead of Kconfig. The Kconfig option CONFIG_UART_CONSOLE_ON_DEV_NAME
was removed in Zephyr v2.7.0.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm 080a9e906d zephyr: Update include path to reboot.h.
The reboot header was moved to a different path in Zephyr v2.6.0. The
old path was deprecated for two releases (v2.6.0 and v2.7.0) and will no
longer be supported after Zephyr v2.7.0.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm ddbbfbed75 zephyr: Increase minimum CMake version to 3.20.0.
As a prerequisite to upgrading to Zephyr v2.7.0, upgrade the minimum
CMake version required for the Zephyr port to 3.20.0.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm 1469e29905 tools/ci.sh: Upgrade Zephyr docker image to v0.21.0.
As a prerequisite to upgrading to Zephyr v2.7.0, upgrade CI to use
Zephyr docker image v0.21.0. In particular, this is needed to pick up a
newer CMake version because Zephyr v2.7.0 increased the minimum CMake
version required to 3.20.0.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
iabdalkader 908e4cf5c3 rp2: Add support for DHT11 and DHT22 sensors. 2022-01-06 14:00:03 +11:00
robert-hh 01d9b7adde rp2/machine_pwm: Keep duty value when changing the frequency.
The duty is saved and set whenever the frequency is changed, unless the
duty rate was not set yet.
2022-01-06 13:52:45 +11:00
robert-hh 9e56e630ca rp2/machine_pwm: Fix PWM frequency setting.
The top value was off by 1: in order to count n ticks it has to be set to
n-1.

Fixes issue #8122.
2022-01-06 13:51:19 +11:00
iabdalkader f4487a0049 rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Set default I2C pins. 2022-01-06 13:35:20 +11:00
Simon Baatz 79ae7098ca esp32/machine_bitstream: Fix signal duplication on output pins.
After changing the bitstream implementation to use the RMT driver in
commit 72d86158121e32bbabaeade08f449d507bf40f9a
("esp32/machine_bitstream.c: Replace with RMT-based driver."), using
multiple `Neopixel` instances shows signal duplication between the
instances (i.e. a `write()` on one instance is written to all instances).

On invocation, the rmt driver configures the GPIO matrix to route the
output signal to the respective GPIO pin.  When called for a different
`NeoPixel` instance using a different pin, the new route is established,
but the old route still exists.  Now, the RMT output signal is sent to both
pins.

Fix this by setting the standard GPIO output function for the current pin
after uninstalling the RMT driver.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
2022-01-06 13:21:37 +11:00
MikeTeachman 49d8ae3ecc esp32/machine_i2s: Add support for ESP-IDF 4.4.
- Add default values for I2S features added in ESP-IDF 4.4.
- Add workaround for bug introduced in ESP-IDF 4.4
  (https://github.com/espressif/esp-idf/issues/8121).
2022-01-06 13:10:38 +11:00
iabdalkader 644f4dcc94 shared/runtime/pyexec: Cleanup EXEC_FLAG flag constants.
- Cleanup pyexec flags definitions so it's clear they are different.
- Use mp_uint_t for exec_flags because it should be unsigned.
2022-01-06 13:06:39 +11:00
Emilie Feral 58b56b91c4 py/qstr: Reset mpstate.qstr_last_chunk before raising an error.
The qstr_last_chunk is not collected by the garbage collector.  This relies
on the assertion that qstr_pool_t also references the qstr_last_chunk.  If
an exception is raised while allocating the qstr_pool_t, qstr_last_chunk
has to be invalidated not to become a dangling reference at the next
garbage collection.

Signed-off-by: Emilie Feral <emilie.feral@numworks.com>
2022-01-06 13:00:43 +11:00
EmergReanimator da58c029a0 Introduced ringbuf_init to perform static buffer initialisation 2022-01-05 20:48:44 +01:00
Scott Shawcroft faa26ef6ae
Merge pull request #5810 from EmergReanimator/bugfix
Fixed build issue when INTERNAL_FLASH_FILESYSTEM, DISABLE_FILESYSTEM set
2022-01-05 10:41:12 -08:00
Scott Shawcroft 5600f1b7d8
Merge pull request #5811 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-01-05 10:40:39 -08:00
EmergReanimator 6dbb662787 Allow to tailor tinyusb configuration for port specific needs 2022-01-05 19:28:07 +01:00
NitiKaur 01953f2964 docs/differences: Document details of new PEPs/features in Python 3.5+.
And how they relate to MicroPython.  As these features are implemented (or
the decision is made to not implement them) the tables can be updated to
document the differences between MicroPython and standard Python.
2022-01-05 22:49:20 +11:00
microDev 2f6ef766ea
remove instance parameter 2022-01-05 13:41:36 +05:30
Scott Shawcroft 48d826b15d
Never reset SD card pins 2022-01-04 19:08:14 -08:00
Scott Shawcroft 38d2472683
Fix cache detection on 64 bit 2022-01-04 17:38:29 -08:00
Scott Shawcroft f64fede735
Correct board name and fix USB with memory barrier 2022-01-04 16:11:40 -08:00
Scott Shawcroft 87f4205ec9
Fix Cortex-A MMU init 2022-01-04 12:29:48 -08:00
EmergReanimator 9d38446369 Fixed build issue when INTERNAL_FLASH_FILESYSTEM, DISABLE_FILESYSTEM set 2022-01-04 21:07:56 +01:00
Hosted Weblate f7c1981c49
Merge remote-tracking branch 'origin/main' 2022-01-04 20:10:05 +01:00
Scott Shawcroft 9a9893f3fc
Merge pull request #5798 from jerryneedell/jerryn_gpio
Broadcom: Set JTAG pins to Pull Down on initialization
2022-01-04 11:10:00 -08:00
Scott Shawcroft 98be08736f
Added translation using Weblate (Turkish) 2022-01-04 20:06:33 +01:00
Scott Shawcroft 3459428843
Merge pull request #5809 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-01-04 11:02:49 -08:00
Jeff Epler 4a23742100
Use the first-parent heuristic for describing the version 2022-01-04 11:14:26 -06:00
Jeff Epler 23022a5a7f
Add, use tools/describe script
This isn't intended to make any overt behavioral change, but
there is a slight one in the value of CP_VERSION that will be used
during CI, because it will now include `--always --match "..."`,
so there could be a change to the uploaded name of the mpy-cross
artifacts on s3.
2022-01-04 11:14:03 -06:00
Chris Boudacoff 802ef271b8 mimxrt/hal: Allow readSampleClkSrc to be configured by a board.
Via the MICROPY_HW_FLASH_DQS flag.
2022-01-04 15:42:12 +11:00
Hosted Weblate 1e713848f9
Merge remote-tracking branch 'origin/main' 2022-01-04 05:27:56 +01:00
hexthat 10b59da56a
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.0% (1021 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-01-04 05:27:56 +01:00
Dan Halbert 4822c4592d
Merge pull request #5808 from unwiredben/add-mp3decoder-decoded-samples
audiomp3: reset decoded_samples when file resets
2022-01-03 23:27:52 -05:00
stijn 3f16719888 windows/appveyor: Build both standard and dev variants.
This makes sure changes from previous related commits actually work.
2022-01-04 15:07:45 +11:00
stijn 19d949a866 tests/extmod: Skip uselect_poll_udp when poll() is not available.
This is the same fix as applied in uselect_poll_basic.py.
2022-01-04 15:07:45 +11:00
stijn 7955734aca windows: Run tests via Makefile.
The application isn't necessarily called 'micropython' especially
not When using variants, i.e. the tests need to be ran using $(PROG).
2022-01-04 15:07:45 +11:00
Andrew Leech 05ed19e73e windows: Add support for build variants to windows port.
Following the unix port.

Support for building variants with msvc was done by @stinos.
2022-01-04 15:06:26 +11:00
Jonny Bergdahl fd80d0d8cb
Translated using Weblate (Swedish)
Currently translated at 100.0% (1031 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-01-03 06:53:26 +01:00
Wellington Terumi Uemura d3de8aa79b
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1031 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-01-03 06:53:26 +01:00
Ben Combee db545dcba6
Merge branch 'adafruit:main' into add-mp3decoder-decoded-samples 2022-01-02 20:28:44 -06:00
Ben Combee 131b94540e audiomp3: reset decoded_samples when file resets
In testing, I saw that the decoded_samples value kept increasing when I
stopped and restarted playback, as I'd missed setting it back to zero
during the reset operation.
2022-01-02 15:19:25 -06:00
Jeff Epler f2f38c7df9
Merge pull request #5807 from unwiredben/add-mp3decoder-decoded-samples
audiomp3: add decoded_samples property
2022-01-02 07:14:33 -07:00
Ben Combee 98b0029a29 audiomp3: add decoded_samples property
In my testing, there is no way to accurately know how far into a MP3 file
you're currently playing. You can use monotonic time, but that can have
drift versus the audio playback system, which may not be running at exactly
the expected sample rate.

To allow syncing animation with timestamps in a MP3 file, this presents a
new property, decoded_samples, that records the number of audio samples
sent out of the decoder. While this may not be a completely accurate time,
due to mixer delays, it's much better position that the monotonic clock
difference.

Implementation is keeping track of this value in the mp3file structure and
adding to it whenever data is sent out of the decoder. The property
implementation was a copy/paste from current properties in the audiomp3
files.
2022-01-01 23:28:43 -06:00
Dan Halbert 6f8c9deda8
Merge pull request #5804 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-01-01 10:01:30 -05:00
Hosted Weblate 4f3c50aa17
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/
2022-01-01 05:46:11 +01:00
Dan Halbert d166834e09
Merge pull request #5803 from dhalbert/countio-enhancements
countio: add selectable rise and fall detection, pulls
2021-12-31 23:45:59 -05:00
Jeff Epler 8a94d9a255
Merge pull request #5784 from WarriorOfWire/vectorio_contains
vectorio contains(x, y)
2021-12-31 16:11:24 -07:00
Dan Halbert 9d2a32d07e countio: add selectable rise and fall detection, pulls 2021-12-31 16:34:58 -05:00
MicroDev 7cea858b79
Merge pull request #5795 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-31 11:02:42 +05:30
Scott Shawcroft 756b9f6dfa
Initial Pi Zero support
Both SD card and USB don't work. REPL works over UART.

Progress on #5631
2021-12-30 18:32:59 -08:00