Rene Straub
8f9bba0a1a
stm32/adc: Add support for STM32H5 ADC2 inputs.
...
Select ADC instance based on pin information to support ADC2 inputs.
Display ADC instance number similar to machine_adc (STM32H5 only):
<ADC2 on Pin(Pin.cpu.F14, mode=Pin.ANALOG) channel=6>
Signed-off-by: Rene Straub <rene@see5.ch>
2023-09-27 16:28:15 +10:00
Rene Straub
13cc280eae
stm32/adc: Fix STM32H5 support.
...
Fixed the preliminary STM32H5 ADC support for pyb.ADC:
- Run ADC on PCLK/16.
- Use STM32 ADC library channel literals (__HAL_ADC_DECIMAL_NB_TO_CHANNEL).
- Use correct temperature conversion for H5 (30C, 130C calibration points).
Signed-off-by: Rene Straub <rene@see5.ch>
2023-09-27 16:26:30 +10:00
Phillip Burgess
54322578d2
RP2040: fix 8-bit WAV "audio buffer too small" bug
...
Also subtly fixed 8- to 16-bit scaling math
2023-09-26 16:44:19 -07:00
Scott Shawcroft
3fdfb9bd32
Update ADC and I2S APIs for 5.1
...
This fixes ESP32 because the BufferedIn used the old ADC API and
I2S did too indirectly.
Fixes #8429
2023-09-26 16:06:54 -07:00
Jeff Epler
3d3061f6f7
fix qualia board definition
2023-09-26 08:33:27 -05:00
Jeff Epler
1c2362b758
bump qualia psram to 120MHz
2023-09-26 08:33:10 -05:00
Jeff Epler
6990c37320
Fix calculation of bit-weight for reset pin
2023-09-26 08:33:00 -05:00
Jeff Epler
3af5cbc312
bump ram to 120MHz
2023-09-26 07:49:00 -05:00
Jeff Epler
03141d40af
espressif: i2c: initialize "has_lock"
...
Otherwise, a stack-constructed i2c instance might get some other value
here.
2023-09-26 07:48:59 -05:00
Jeff Epler
747b6e8d2e
enable LCD_RGB_RESTART_IN_VSYNC
...
this "should" turn permanent tearing into temporary tearing.
2023-09-25 16:39:38 -05:00
Jeff Epler
6263f6af84
Switch to i2c init string for espressif lcd ev, expose values via board
2023-09-25 16:39:00 -05:00
Jeff Epler
65310ab615
update io expander table for rev C
2023-09-25 12:00:04 -05:00
Jeff Epler
ce22edba15
On Qualia, define board.TFT_IO_EXPANDER
...
these arguments make it easier to call ioexpander_send_init_sequence
2023-09-25 11:33:01 -05:00
Jeff Epler
04ad525c09
Re-work ioexpander_send_init_sequence
...
* can now send the I2C bus initialization code
* can now reset the display on an I/O expander pin
* parameters re-ordered to enable easy use with **board.TFT_IO_EXPANDER
2023-09-25 11:31:16 -05:00
Jeff Epler
409d1a83b6
displayio: fix releasing dot clock framebuffres in release_displays
...
this caused problems particularly when the framebuffer was not associated
with a display.
2023-09-25 09:45:35 -05:00
MicroDev
27fd60d739
implement suggested changes
...
- update the docs
- split out common `watchdog_reset`
- revert to using `None` instead of `WatchDogMode.NONE`
2023-09-24 15:23:38 +00:00
MicroDev
05812e0618
Merge branch 'main' into watchdog-rp
2023-09-24 05:13:22 +00:00
Scott Shawcroft
1c0155c99b
Merge pull request #8424 from tannewt/update-idf5.1
...
Update to ESP-IDF 5.1 and add C6 and H2 support
2023-09-22 16:35:27 -07:00
Scott Shawcroft
c726e87344
Enable BLE on H2 devkit
2023-09-22 15:05:20 -07:00
Jeff Epler
171aa42168
update ulab
...
this lets ulab drop several workarounds for circuitpython lagging MP
yay! (https://github.com/v923z/micropython-ulab/pull/647 )
2023-09-22 14:48:55 -05:00
Jeff Epler
fb6f4c938c
tweak coverage build configuration
2023-09-22 14:26:51 -05:00
Jeff Epler
cd462c51b3
re-fix stream function definition
2023-09-22 14:26:36 -05:00
Jeff Epler
2c3d81148e
re-add CP-specific C files
2023-09-22 14:26:25 -05:00
Jeff Epler
c53cb3ef25
re-add CP-specific exception related types
2023-09-22 14:26:13 -05:00
Jeff Epler
79309c1208
re-add CP-specific exception types
2023-09-22 14:25:50 -05:00
Jeff Epler
4bbf42c4c3
fix duplicate array_locals_dict_table
2023-09-22 14:25:36 -05:00
Jeff Epler
7c2fbff965
fix use of locals_dict
2023-09-22 14:25:23 -05:00
Jeff Epler
d1ee906afd
fix dependency on generated header
2023-09-22 14:14:07 -05:00
Jeff Epler
477b2300a1
fix definitoin of MidiTrack type
2023-09-22 13:58:01 -05:00
Jeff Epler
5d9b84dcb2
fix definition of MathOperation
2023-09-22 13:57:51 -05:00
Jeff Epler
78a7c6b164
fix getting make_new slot of object
2023-09-22 13:57:31 -05:00
Jeff Epler
031c163f84
make RE compile
2023-09-22 13:57:05 -05:00
Jeff Epler
f812750a76
fix use of mp_type_fileio
2023-09-22 13:56:55 -05:00
Jeff Epler
99479a69f8
fix definition of slice type with optional "make_new"
2023-09-22 13:56:36 -05:00
Jeff Epler
e48984872b
allow definition of namedtuples in core
2023-09-22 13:56:16 -05:00
Jeff Epler
a181172336
remove redundant declaratoin
2023-09-22 13:55:24 -05:00
Jeff Epler
0265ae07f8
remove unused functions
2023-09-22 13:55:15 -05:00
Jeff Epler
51314fb7de
fix availability of mp_obj_array_locals_dict
2023-09-22 13:55:08 -05:00
Jeff Epler
2c70537aba
fix memoryview cast&hex
2023-09-22 13:54:20 -05:00
Jeff Epler
1c09a0b494
fix string construction
2023-09-22 13:53:56 -05:00
Jeff Epler
ea5bc12a07
fix getting protocol
2023-09-22 13:53:20 -05:00
Jeff Epler
e1af819a91
fix (unused) default for some required args
2023-09-22 13:53:11 -05:00
Jeff Epler
085cf0e3e4
make mp_stream_flush available
2023-09-22 13:52:04 -05:00
Jeff Epler
556ec9d300
fixes for mp_type_get_protocol_slot
2023-09-22 13:51:57 -05:00
Jeff Epler
566688b028
fix mpy magic numbers
2023-09-22 13:50:35 -05:00
Jeff Epler
bb0f8149df
fix circuitpy memoryview.cast
2023-09-22 13:44:48 -05:00
Jeff Epler
0d796249e8
remove unused function
2023-09-22 13:43:47 -05:00
Jeff Epler
5367c9f7ef
fix "native exception getter"
2023-09-22 13:42:19 -05:00
Jeff Epler
f9f75d8202
MAKE_ENUM_TYPE for new style type defs
2023-09-22 13:39:24 -05:00
Jeff Epler
2cc07aef73
dummy RUN_BACKGROUND_TASKS for unix port
2023-09-22 13:39:08 -05:00