Commit Graph

30472 Commits

Author SHA1 Message Date
Jeff Epler
b1d9331367
move comment next to its associated #if 2023-03-23 21:11:05 -05:00
Jeff Epler
0c0e06c940
remove comment that was copypasted 2023-03-23 21:10:04 -05:00
Jeff Epler
e1c8a3062a
remove debugging print 2023-03-23 21:06:53 -05:00
Jeff Epler
e2565e2305
mimxrt10xx: Add PWMAudioOut
.. via a peripheral known as the "MQS" (medium quality sound). It uses an
~192kHz PWM signal to generate audio. It sounds OK on a small speaker with
no amplifier. There's a small pop when starting/stopping audio, as is
typical.
2023-03-23 14:08:44 -05:00
Jeff Epler
b50c80e3d9
remove unused macro 2023-03-23 09:12:46 -05:00
Jeff Epler
f40504b7bc
enable MP3 2023-03-22 12:16:29 -05:00
Jeff Epler
04bb0513df
enable audiomixer 2023-03-22 12:16:26 -05:00
Jeff Epler
c6bc9c48c9
mimxrt10xx: implement i2sout
tested on metro m7 (green prototype version) with max98357a i2s amplifier and the following test code:
```py
import board
import time
import digitalio
from audiobusio import I2SOut
from audiocore import RawSample
from microcontroller import pin
from ulab import numpy as np

n = np.array(np.sin(np.linspace(0, np.pi*2, 218, endpoint=False)) * 200, dtype=np.int16)
print(n)
r = RawSample(n, sample_rate=8000, channel_count=2)
def main():
    with digitalio.DigitalInOut(board.LED) as l:
        l.switch_to_output(True)
        value = False
        while True:
            with I2SOut(pin.GPIO_06, pin.GPIO_07, pin.GPIO_04) as i:
                time.sleep(.01)
                l.value = value = not value
                i.play(r, loop=True)
                print(i.playing)
                time.sleep(.5)
                i.stop()
                print("STOPPED")
                print(i.playing)
                time.sleep(.5)
                i.play(r, loop=True)
                print(i.playing)
                print("PLAY AGAIN")
                time.sleep(.5)
            time.sleep(1)
```

Only stereo, 16-bit, raw samples were tested; the sample rate is actually fixed
at 48kHz in the core right now. There is more to do, but the basics work.

# Conflicts:
#	ports/mimxrt10xx/Makefile
#	ports/mimxrt10xx/mpconfigport.mk
2023-03-22 12:15:25 -05:00
Jeff Epler
1e1172bc24
fix sorting of block 2023-03-22 12:04:34 -05:00
Jeff Epler
08358ecd50
constify spi, i2c, uart bank data 2023-03-22 12:03:20 -05:00
Scott Shawcroft
e1f16472c1
Merge pull request #7766 from tannewt/switch_nxp_sdk
Switch iMX RT sdk to NXP repo
2023-03-22 09:57:12 -07:00
Scott Shawcroft
53b16615bc
Merge pull request #7767 from tannewt/imx_fixed_stack
Make set_stack_limit respect fixed stack
2023-03-22 09:56:33 -07:00
Scott Shawcroft
cfedcd411f
Merge pull request #7748 from microdev1/patch
Rewrite pystack logic & Update auto-reload
2023-03-22 09:39:13 -07:00
Scott Shawcroft
b583488652
Fix stub 2023-03-22 09:24:03 -07:00
Dan Halbert
c93560144b
Merge pull request #7678 from FoamyGuy/boundary_fill_background_tasks
do background tasks and handle interrupt during boundary fill
2023-03-21 23:38:05 -04:00
Dan Halbert
cc3a626e12
Merge pull request #7765 from microdev1/ci
CI: Change condition to run all jobs
2023-03-21 23:37:17 -04:00
Scott Shawcroft
0eb08509f0
Make set_stack_limit respect fixed stack
Fixes #2830
2023-03-21 16:42:49 -07:00
Scott Shawcroft
9c3c0555dd
Switch iMX RT sdk to NXP repo
Fixes #7645
2023-03-21 16:21:57 -07:00
MicroDev
461d833c1c
Merge pull request #7763 from dhalbert/update-tinyusb-remove-usb_descriptor
submodules: update tinyusb; remove usb_descriptor; use partial clone for submodules
2023-03-22 00:11:02 +05:30
MicroDev
4a6965ee76
change condition to run all jobs 2023-03-21 22:33:13 +05:30
Dan Halbert
7ee85408a1
Merge pull request #7755 from isacben/block-device-arguments-typing
Updated block_device type annotation
2023-03-21 12:51:40 -04:00
MicroDev
e4b5b20ebe
don't call reload_initiate if already initiated 2023-03-21 21:34:30 +05:30
Scott Shawcroft
67e0a49a1f
Merge pull request #7724 from tannewt/get_perfbench_running
Improve iMX RT performance
2023-03-21 09:00:48 -07:00
Dan Halbert
ae95274b66 use blobless partial clone for make fetch-submodules 2023-03-21 11:43:33 -04:00
Scott Shawcroft
c78502d8a5
Merge pull request #7746 from FoamyGuy/diskinfo_api
Diskinfo api for web workflow
2023-03-21 08:43:21 -07:00
Dan Halbert
98bff96d3c update tinyusb: fixes + no more submodules 2023-03-21 11:01:58 -04:00
Dan Halbert
c0384b57f1 remove unused submodule tools/usb_descriptor 2023-03-21 11:01:40 -04:00
Dan Halbert
d9d27a3e31
Fix signature of mkfs() 2023-03-21 10:30:03 -04:00
Dan Halbert
4aa1896b06
Merge pull request #7762 from microdev1/ci
CI: Update set matrix script
2023-03-21 07:46:23 -04:00
MicroDev
395bc0aac7
don't run all jobs if changed files is empty 2023-03-21 16:11:57 +05:30
MicroDev
ccd417cd8b
add esp specific modules to src patterns 2023-03-21 16:01:13 +05:30
MicroDev
7ee3f30c17
rewrite allocate_pystack logic 2023-03-21 07:06:46 +05:30
Dan Halbert
c600429df7
Merge pull request #7759 from jposada202020/correcting_print_format_reference
removing need to use print format option.
2023-03-20 19:38:13 -04:00
foamyguy
0773a2bd6d increment web_api_version 2023-03-20 17:32:00 -05:00
Scott Shawcroft
41a8ada327
Merge pull request #7750 from Neradoc/add-ttgo-tdisplay-esp32
Add Lilygo TTGO T-display ESP32 board
2023-03-20 14:40:16 -07:00
Scott Shawcroft
32a596df39
Merge pull request #7757 from adafruit/8.0.x
Merge latest 8.0.x changes
2023-03-20 14:34:59 -07:00
Scott Shawcroft
c54648caef
Merge pull request #7758 from jposada202020/correcting_vector_shape_location
correcting vectorshape location property
2023-03-20 14:34:04 -07:00
Scott Shawcroft
b75d99c5d7
Merge pull request #7745 from Neradoc/lilygo-twatch-v3-MAIN
Add Lilygo T-Watch 2020 V3 (ESP32)
2023-03-20 14:31:32 -07:00
jposada202020
f56c221a50 removing need to use print format option. 2023-03-20 17:23:49 -04:00
Scott Shawcroft
bdf592089a
Fix .bin, .hex and .uf2 with new linker sections
Also, format perfbench output in table with reference timing from
the host.
2023-03-20 14:02:57 -07:00
jposada202020
ace25e83ce correcting vectorshape location property 2023-03-20 15:44:49 -04:00
Jeff Epler
3ac696e7ba
Merge pull request #7731 from kreasteve/statemachine_run_fix
Statemachine run fix
2023-03-19 20:47:09 -05:00
Isaac Benitez
9e630a565e Updated block_device type annotation 2023-03-19 15:08:29 -07:00
Dan Halbert
0977384e6d
Merge pull request #7754 from Neradoc/add-display-lolin-pico
Add builtin display to lolin pico
2023-03-19 14:16:08 -04:00
Neradoc
b88e76d3a4 Add builtin display support with shared board.I2C to Lolin S2 Pico 2023-03-19 17:48:36 +01:00
Neradoc
e7c349ea43 Add Lilygo TTGO T-display ESP32 board 2023-03-18 15:27:59 +01:00
foamyguy
a1506df805 implement real diskinfo functionality 2023-03-17 21:36:13 -05:00
Neradoc
f1b7612b5a Add Lilygo T-Watch 2020 V3 (ESP32)
- DISPLAY is in, brightness is ok
- default busses and pin names
- enabled PSRAM
2023-03-18 01:17:46 +01:00
Dan Halbert
9c1d83476e
Merge pull request #7739 from jepler/restore-mkfs-fat32-mostly
re-enable mkfs for >4GB filesystems whenver FULL_BUILD
2023-03-17 12:52:21 -04:00
Dan Halbert
ca292f3427 Turn off mkfs FAT32 on all SAMD21 builds; note in doc 2023-03-17 12:18:24 -04:00