Commit graph

37902 commits

Author SHA1 Message Date
f61ae67c56 Add Pico 2 W 2024-11-18 15:16:29 -06:00
Dan Halbert
6d32c56467
Merge pull request #9799 from eightycc/bootloop
Fix serial REPL bootloop for raspberrypi pico boards
2024-11-08 11:03:38 -05:00
eightycc
6259419f89 Fix raspberrypi bootloop when using serial REPL by removing
extra call to serial_early_init.
2024-11-08 07:28:01 -08:00
foamyguy
d7a7221815
Merge pull request #9793 from jepler/audiofilters-unixport
Add audiodelays & audioeffects to unix coverage port
2024-11-07 16:58:38 -06:00
foamyguy
0013e1cc77
Merge pull request #9796 from jepler/default-unix-variant-coverage
make the default variant 'coverage'
2024-11-07 16:57:03 -06:00
d3f56cf0e4 make the default variant 'coverage'
This means that the variant no longer needs to be explicitly named and
you can just run `make test`.
2024-11-07 10:50:37 -06:00
Dan Halbert
ddfa5193ec
Merge pull request #9794 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2024-11-07 09:29:01 -05:00
Iqbal Rifai
27d5fa008e
Translated using Weblate (Indonesian)
Currently translated at 37.3% (372 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/id/
2024-11-06 15:00:31 +01:00
f8afdcb729 Add audiodelays & audioeffects to unix coverage port
.. and add a very basic audioeffects test, showing that it plausibly
is working

I had to address several build errors that occurred in the Unix build,
mostly related to conversion from FP types to integral types (replaced
by explicit casts) and by
accidental mixing of regular & f-suffixed floating constants (replaced
with the MICROPY_FLOAT_CONST macro)

Particularly this change could use consideration:
```diff
-    self->max_echo_buffer_len = self->sample_rate / 1000.0f * max_delay_ms * (self->channel_count * sizeof(uint16_t)); // bytes
+    self->max_echo_buffer_len = (uint32_t)(self->sample_rate / 1000.0f * max_delay_ms) * (self->channel_count * sizeof(uint16_t)); // bytes
```

The buffer length is being calculated in floating point based on the
millisecond delay & the sample rate. The result could then be a fractional
number such as 529.2 for a 12ms delay at 44.1kHz. Multiplying a floating
number by the size required for each echo buffer item
(`(self->channel_count * sizeof(uint16_t))`) could yield a number of bytes
that doesn't correspond to an integral number of buffer items. I grouped
the float->int conversion so that it converts the number of echo buffer
items to an integer and then multiplies by the size of the item.
2024-11-05 09:36:18 -06:00
3a0b97d280
Merge pull request #9787 from relic-se/audiofilters_stopfix 2024-11-05 09:01:11 -06:00
dcooperdalrymple
0aab00d7e5 Fix 16-bit unsigned integer silence within audio effects. 2024-11-05 08:41:23 -06:00
Dan Halbert
6cb7c828f1
Merge pull request #9792 from jepler/rp2350-ssllib
mbedtls: avoid function that only exists on rp2040
2024-11-04 21:22:59 -05:00
e105915140 mbedtls: avoid function that only exists on rp2040
rp2350 doesn't have the same RTC peripheral as the 2040 (let alone
other family micros)

this has the side effect of obeying a different timesource if one has
been configured.
2024-11-04 18:29:46 -06:00
Dan Halbert
bf412b42a7
Merge pull request #9785 from jepler/zizmor
Fix various issues detected by zizmor
2024-11-04 17:18:37 -05:00
db84e81578
Merge pull request #9786 from bill88t/main 2024-11-04 15:16:00 -06:00
f7f471f9de
Merge pull request #9788 from dcooperdalrymple/synthio_waveform_loop_blockinput 2024-11-04 15:11:40 -06:00
dcooperdalrymple
fd24006901 Updated expected results for synthesizer_note test. 2024-11-04 13:33:16 -06:00
20dc44dc3a more yaml syntax fixes 2024-11-04 12:18:22 -06:00
Cooper Dalrymple
dfe9836e35 Update loop docstrings to demonstrate BlockInput implementation. 2024-11-04 11:25:51 -06:00
Cooper Dalrymple
ce3e83d474 Update ring_frequency and ring_bend with MP_ARG_KW_ONLY. 2024-11-04 11:13:04 -06:00
Dan Halbert
973f597873
Merge pull request #9789 from jepler/detect-invalid-json-dump-types
Throw TypeError when json-serializing invalid types
2024-11-04 11:27:05 -05:00
e443f176f1 fix yaml syntax error 2024-11-04 09:54:57 -06:00
9113e171ba Throw TypeError when json-serializing invalid types
This behavior is in line with standard Python

Closes: #9768
2024-11-04 09:16:44 -06:00
dcooperdalrymple
e7382c2fc4 Make conversion of mp_float_t to uint32_t for waveform_loop values explicit. 2024-11-04 08:13:17 -06:00
dcooperdalrymple
e2a52afa93 Add support for synthio.BlockInput on synthio.Note.waveform_loop_start, synthio.Note.waveform_loop_end, synthio.Note.ring_waveform_loop_start, and synthio.Note.ring_waveform_loop_end. 2024-11-03 20:30:06 -06:00
dcooperdalrymple
ce12d90160 Fix default value of synthio.Note.amplitude in documentation. 2024-11-03 20:00:35 -06:00
dcooperdalrymple
aa7d619d55 Fix ring_waveform_loop_start typo in frequency calculation. 2024-11-03 19:57:02 -06:00
dcooperdalrymple
63c3e394d3 Fix error with NULL sample handling in audiofilters.Filter. 2024-11-03 18:30:19 -06:00
Bill Sideris
de20c412b2
Reboot to normal mode upon fs wipe 2024-11-03 19:39:31 +02:00
6d0a455e02 Fix various issues detected by zizmor 2024-11-03 09:49:00 -06:00
Dan Halbert
24a8927d0c
Merge pull request #9783 from dhalbert/rp2350-nvm-write-flush-cache
RP2350: need cache flush in microcontroller.nvm
2024-11-02 13:00:35 -04:00
Dan Halbert
e0256be8ea
Merge pull request #9784 from bablokb/rp2350b_temp
use ADC_TEMPERATURE_CHANNEL_NUM instead of hard-coded channel '4'
2024-11-02 12:26:08 -04:00
bablokb
d6be48b41d use ADC_TEMPERATURE_CHANNEL_NUM instead of hard-coded channel '4' 2024-11-02 10:35:41 +00:00
Dan Halbert
3abd1223cb RP2350: need cache flush in microcontroller.nvm 2024-11-01 18:31:41 -04:00
Dan Halbert
cf767045c6
Merge pull request #9779 from jepler/arm-version-check
Add global GCC version check
2024-11-01 18:31:17 -04:00
a4399cf2d3 Fix gcc version on broadcom again 2024-11-01 15:04:11 -05:00
3a5c4e3a74 these ports currently use older gcc versions 2024-11-01 14:22:20 -05:00
0d91f1e085 Add global GCC version check
We can set some of them lower than 13 if necessary on a per-port basis.
At least esp32 and arm ports all use 13 from what I could see.
2024-11-01 11:30:24 -05:00
Dan Halbert
1584f5ecdd
Merge pull request #9775 from eightycc/main
Bump cyw43-driver module to v1.0.4 plus to match SDK 2.0.0.
2024-11-01 09:51:52 -04:00
eightycc
169595eb4a Bump cyw43-driver module to v1.0.4 plus to match SDK 2.0.0. 2024-10-31 08:45:54 -07:00
8bb9f86e26
Merge pull request #9761 from dglaude/patch-1 2024-10-28 21:50:40 -05:00
68fac9512a
Merge pull request #9766 from jepler/vectorio-testing 2024-10-28 20:14:04 -05:00
589c7f6a34 unix: enable vectorio in coverage build 2024-10-28 08:07:35 -05:00
Dan Halbert
ef28529984 more meowbit disabling and fix typo 2024-10-27 10:12:23 -04:00
Dan Halbert
c2115030a6 turn off epaperdisplay and sharpdisplay to make room for gifio 2024-10-27 09:57:33 -04:00
David Glaude
8fe0aed36b
Enabling gifio on Meowbits
Based on suggestion by deʃhipu to help katylase on #help-with-circuitpython
2024-10-27 13:28:20 +01:00
Scott Shawcroft
98cc153519
Merge pull request #9759 from dhalbert/rp2350-volatile-cache-invalidate
Fix PSRAM cache invalidation
2024-10-25 10:12:19 -07:00
Scott Shawcroft
099c43b400
Merge pull request #9758 from dhalbert/bleio-limitations-doc
document different kinds of _bleio
2024-10-25 10:09:44 -07:00
Dan Halbert
b9fa0c8b6d Use volatile pointerwhen invalidating PSRAM cache 2024-10-25 00:10:26 -04:00
Dan Halbert
7d48b0161a document different kinds of _bleio 2024-10-24 16:02:24 -04:00