Scott Shawcroft
308503b9ac
Merge pull request #6377 from tannewt/fix_ble_reload
...
Fix BLE autoreload
2022-05-10 16:44:24 -07:00
Scott Shawcroft
8d7390992a
Fix BLE autoreload
...
The trigger was happening when reload was suspended and therefore
ignored. Now, manage reload in one place in the file. This may
trigger reloads on BLE command error but that should be rare.
Fixes #6258
2022-05-10 12:31:40 -07:00
Jeff Epler
e0827eb52a
Merge pull request #6238 from dhalbert/ringbuf-free-fix
...
Free ringbuf buffer by relying on gc, not gc_free()
2022-04-05 08:43:36 -05:00
Jeff Epler
8cd09b1f0d
Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-interrupt
...
handle clearing both RXIC and RTIC interrupts
2022-04-05 08:43:22 -05:00
Dan Halbert
204a1d3e7e
Merge pull request #6231 from jepler/fix-build-clang13
...
py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
2022-04-05 09:01:40 -04:00
Dan Halbert
c3cf9267b8
Merge pull request #6230 from jepler/audio-fix-looping
...
MP3Decoder: Accurately inform when no more data
2022-04-05 09:00:54 -04:00
Dan Halbert
4cccc1a036
handle clearing both RXIC and RTIC interrupts
2022-04-04 23:55:08 -04:00
Dan Halbert
0da10d802c
advance espressif CI cache id
2022-04-04 22:36:58 -04:00
Dan Halbert
70add52775
advance espressif CI cache key
2022-04-04 22:15:31 -04:00
Dan Halbert
076d9f74a5
Merge pull request #6233 from jepler/nrf-fix-pwm-reset
...
nrf: Correctly mark PWM unused during reset
2022-04-04 20:46:07 -04:00
Dan Halbert
b29b7bfe32
Free ringbuf buffer by relying on gc, not gc_free()
2022-04-04 20:34:49 -04:00
Jeff Epler
fa4b4fa639
nrf: Correctly mark PWM unused during reset
2022-04-04 10:08:54 -05:00
Damien George
a43cfdd274
py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
...
This warning can happen on clang 13.0.1 building mpy-cross:
../py/vm.c:748:25: error: array index -3 refers past the last possible
element for an array in 64-bit address space containing 64-bit (8-byte)
elements (max possible 2305843009213693952 elements)
[-Werror,-Warray-bounds]
sp[-MP_OBJ_ITER_BUF_NSLOTS + 1] = MP_OBJ_NULL;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using pointer access instead of array access works around this warning.
Fixes issue #8467 .
Signed-off-by: Damien George <damien@micropython.org>
2022-04-04 09:22:30 -05:00
Jeff Epler
683ece76db
MP3Decoder: Accurately inform when no more data
...
Some audio implementations, notably samd, really don't like it when
you return 0 samples of data. This was the case when reaching the
end of an MP3 file.
Now, we read forward in an MP3 file to the next sync word during
"get_buffer", so that we can accurately return GET_BUFFER_DONE when the
NEXT call WOULD HAVE resulted in 0 samples.
Tested with @gamblor21's "laugh.mp3" file on a Trellis M4 Express.
2022-04-04 09:16:27 -05:00
Dan Halbert
faca1ec3bf
Merge pull request #6212 from dhalbert/7.2.x-6103-backport
...
7.2.x #6103 backport
2022-03-30 19:47:57 -04:00
Dan Halbert
b032d42a71
Update ports/espressif/boards/adafruit_feather_esp32s2/pins.c
2022-03-29 12:46:58 -04:00
lady ada
2563c509f7
fix automatic i2c enablement with rev C
2022-03-29 12:46:51 -04:00
Dan Halbert
cf127df560
Merge pull request #6211 from dhalbert/7.2.x-6210-backport
...
backport click and typer pins #6210 to 7.2.x
2022-03-29 12:11:54 -04:00
Jeff Epler
29eed5c21f
also pin typer for windows builds
2022-03-29 10:46:58 -04:00
Dan Halbert
d5868b42ff
Pin typer and click to have compatible versions
2022-03-29 10:46:58 -04:00
Scott Shawcroft
704a50a694
Merge pull request #6172 from tannewt/supervisor_reload
...
Fix supervisor.reload
2022-03-17 14:14:13 -07:00
Scott Shawcroft
78cb61c7a3
Turn off traceback on bluemicro833
2022-03-17 11:38:27 -07:00
Scott Shawcroft
a8a4fbb767
Fix supervisor.reload
...
Fixes #6170
2022-03-17 10:36:45 -07:00
Dan Halbert
66fa923699
Merge pull request #6168 from dhalbert/ReloadException-in-repl
...
fix ReloadException when in REPL
2022-03-16 14:33:52 -04:00
Dan Halbert
bf1329bb1f
fix ReloadException when in REPL
2022-03-16 12:36:52 -04:00
Dan Halbert
ff0b3a9f50
Merge pull request #6153 from tannewt/refine_autoreload
...
Further refine autoreload
2022-03-14 22:22:08 -04:00
Dan Halbert
0fd3da5edb
Merge pull request #6154 from tannewt/matrixportal_ble
...
Re-enable BLE on MatrixPortal. Remove PortalBase
2022-03-14 22:08:52 -04:00
Scott Shawcroft
f602296e59
Re-enable BLE on MatrixPortal. Remove PortalBase
...
We have a guide that uses it. It was removed in #6043 without
realizing that.
Fixes #6152
2022-03-14 17:04:46 -07:00
Scott Shawcroft
32ac396a41
Further refine autoreload
...
This unifies the delay into the post-run delay that also waits
for user input and fake sleep. This ensures we always delay.
Previous code would only delay if the code.py was running when
autoreload was triggered. Now it will always delay.
We also now suspend autoreload when a USB write starts and then
resume on completion. This should prevent reloading in between
sectors of a single write.
2022-03-14 16:49:30 -07:00
Scott Shawcroft
7cb66dd316
Merge pull request #6142 from dhalbert/7.2.x-autoreload-fake-sleep
...
7.2.x autoreload rework (again)
2022-03-11 16:46:04 -08:00
Dan Halbert
e4cd9690f1
rework auto-reload delay logic
2022-03-11 14:03:04 -05:00
Dan Halbert
dbc8a312a2
Merge pull request #6137 from dhalbert/7.2.x-__future__
...
Backport from __future__ import annotations from #6117
2022-03-10 20:46:05 -05:00
Dan Halbert
19e7647f3d
turn off MIDI on sensebox_mcu for sapce
2022-03-10 18:20:04 -05:00
Dan Halbert
50e93fe9a4
Merge pull request #6139 from dhalbert/7.2.x-backport-6097
...
7.2.x backport of #6097 (nina-fw update for certs)
2022-03-10 16:17:15 -05:00
Dan Halbert
a7260a8b61
squeeze arduino_zero further
2022-03-10 15:56:51 -05:00
Dan Halbert
6ce4cb6ff8
Merge pull request #6138 from dhalbert/7.2.x-backport-6106
...
Backport 6106 (countio long-lived fix) to 7.2.x
2022-03-10 13:46:04 -05:00
Dan Halbert
c5947fd6de
squeeze arduino_zero and sensebox_mcu
2022-03-10 12:46:08 -05:00
foamyguy
2f83264f09
update nina-fw submodule
2022-03-10 12:24:43 -05:00
DavePutz
d365d1b2a0
Update Counter.c
...
Add a comment as to why the countio object needs to be long-lived.
2022-03-10 11:26:42 -05:00
root
a165bdf583
Make countio object long-lived
2022-03-10 11:26:42 -05:00
Dan Halbert
6ddab0f3c8
shrink matrixportal_m4
2022-03-10 11:20:44 -05:00
Dan Halbert
c70425ab6b
add annotations to __future__; don't generate __future__ stubs
2022-03-10 11:19:35 -05:00
Dan Halbert
f59f8acf78
implement: from __future__ import annotations
2022-03-10 11:19:35 -05:00
Scott Shawcroft
0957c1546f
Merge pull request #6132 from dhalbert/fix-autoreload
...
Make autoreload checking more robust
2022-03-09 14:02:15 -08:00
Dan Halbert
6465d81918
Update ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h
...
whoopsies
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-03-09 13:33:54 -05:00
Dan Halbert
9b2e22a6df
Make autoreload checking more robust
...
- Add reset for autoreload. De-request ticks.
- Separate state a little more in autoreload.c
- Rename some routines.
- Remove redundant settings of CIRCUITPY_AUTORELOAD_DELAY_MS.
2022-03-09 11:07:55 -05:00
Dan Halbert
63ac23a631
Merge pull request #6129 from prplz/backport-6126
...
Espressif: Fix i2c pullup detection
2022-03-08 18:00:11 -05:00
Michael Himing
d933f8ac50
Espressif: Fix i2c pullup detection
2022-03-09 07:36:17 +11:00
Dan Halbert
aeeb58fd45
Merge pull request #6077 from kmatch98/trial_repl
...
fix REPL terminal garbled characters upon code.py finished
2022-02-21 17:55:14 -05:00
Kevin Matocha
790af2d9a6
fix REPL terminal garbled characters upon code.py finished
2022-02-21 14:58:16 -06:00