Jeff Epler
2ad877a907
Fix VID/PID of esp32-box
2021-12-04 14:58:48 -06:00
foamyguy
fa37ee6484
limit disable interrupts to flash calls
2021-12-04 14:14:23 -06:00
foamyguy
5e7c1328b0
disable interrupts inside of write_page and erase_write_sector
2021-12-04 12:21:51 -06:00
foamyguy
f49271b472
disable interrupts inside of ports raspberrypi common hal
2021-12-04 11:34:49 -06:00
Jeff Epler
e2abb0e059
devkitc: update vid/pid in anticipation of allocation from espressif
2021-12-04 10:19:19 -06:00
Jeff Epler
bc7f024545
espressif: Add esp32s3_box
...
This module has 16MB flash, 8MB PSRAM, as well as a display & speakers.
2021-12-04 09:14:57 -06:00
Jeff Epler
1207bfced9
espressif: Use detected size of spiram
2021-12-04 09:14:22 -06:00
Jeff Epler
1a99ce5eb3
espressif: busio.SPI: Use SPI_DMA_CH_AUTO
...
All 3 micros we care about (S2, S3, C3) state in the documentation
that DMA channel can be specified as SPI_DMA_CH_AUTO.
Specifying a specific DMA channel explicitly doesn't _ever_ work on
ESP32-S3, so no SPI bus could be used.
Testing performed: On the ESP32-S3-DevKitC, used neopixel_spi to
turn the onboard neopixel red, green, and blue
2021-12-04 09:12:38 -06:00
Dan Halbert
80abd2d645
Use a longer clock stretching timeout for RP2040 zero-byte I2C writes
2021-12-03 18:19:13 -05:00
Jeff Epler
23e0a25aa2
add nopsram version of the devkit C
2021-12-03 15:20:11 -06:00
Jeff Epler
659babc620
Add the esp32s3 devkitc (psram variant)
2021-12-03 15:09:59 -06:00
Dan Halbert
f594ab2e67
Merge pull request #5615 from microDev1/espressif
...
Update espressif port
2021-12-03 14:55:05 -05:00
Kattni Rembor
3b6011d551
Update pin order to match silk.
2021-12-03 11:40:40 -05:00
microDev
9e286432d2
add esp32s3 documentation in readme
2021-12-03 21:20:55 +05:30
IhorNehrutsa
b491967bbd
esp32/machine_pwm: Implement duty_u16() and duty_ns() PWM methods.
...
The methods duty_u16() and duty_ns() are implemented to match the existing
docs. The duty will remain the same when the frequency is changed.
Standard ESP32 as well as S2, S3 and C3 are supported.
Thanks to @kdschlosser for the fix for rounding in resolution calculation.
Documentation is updated and examples expanded for esp32, including the
quickref and tutorial. Additional notes are added to the machine.PWM docs
regarding limitations of hardware PWM.
2021-12-03 23:58:52 +11:00
Scott Shawcroft
543e4d8c4d
Merge pull request #5648 from tannewt/rpi_pin_mux
...
Add full pin mux info and use it for I2C
2021-12-02 10:46:46 -08:00
Scott Shawcroft
8adb0ecd33
Fix loop bounds
2021-12-02 10:28:26 -08:00
ZodiusInfuser
0e56c5aa8a
Added definitions for 2MB Tiny2040
2021-12-02 16:45:43 +00:00
microDev
69faaa52b8
run test for traceback module
2021-12-02 14:55:02 +05:30
Scott Shawcroft
2433c9572c
Add full pin mux info and use it for I2C
...
All I2C peripherals should be usable now. This also adds pin
in-use tracking and resetting.
Part of #5629
2021-12-01 17:19:57 -08:00
Scott Shawcroft
8cf269d2a0
Merge pull request #5634 from dhalbert/board_deinit
...
board_deinit() everywhere
2021-12-01 10:09:14 -08:00
Scott Shawcroft
fea0103ff2
Merge pull request #5638 from jepler/test-aesio
...
Test aesio
2021-12-01 10:05:37 -08:00
Jim Mussared
a7fa18c203
py/builtinimport: Refactor module importing.
...
Simplify and document/comment the handling of builtin import for:
- already-loaded modules
- built-in modules
- built-in umodules (formerly weak links)
- filesystem modules
Retains existing functionality with smaller code size but should also
facilitate potential new features (built-in packages, controlling the
frozen path).
Also makes the (unix-only) -m behavior a bit more obvious and configurable.
Code size change with this commit:
bare-arm: +0 +0.000%
minimal x86: -64 -0.039%
unix x64: -32 -0.006%
unix nanbox: -4 -0.001%
stm32: -184 -0.047% PYBV10
cc3200: -120 -0.065%
esp8266: -228 -0.033% GENERIC
esp32: -268 -0.018% GENERIC[incl +16(data)]
nrf: -152 -0.087% pca10040
rp2: -256 -0.052% PICO
samd: -80 -0.057% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2021-12-01 13:23:34 +11:00
Dan Halbert
e8ea9c75a1
check for missing pins; deinit txrx leds
2021-11-30 19:16:21 -05:00
Jeff Epler
1f1def54b7
add aesio to unix coverage build
2021-11-30 15:25:05 -06:00
Dan Halbert
57c33059f3
board_deinit() everywhere
2021-11-30 11:00:10 -05:00
Kamil Tomaszewski
9a8d8b1bf1
spresense: Fix time.time()
2021-11-30 12:38:48 +01:00
Damien George
23a150789d
stm32/boards/make-pins.py: Use cpu pins to define static alt-fun macros.
...
Instead of board pins, so that pins which have only the CPU specified in
pins.csv can still be used with mp_hal_pin_config_alt_static().
Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:25:41 +11:00
Damien George
0c9f5b388e
stm32: Include HAL MMC code in F4 builds.
...
So that the MMC driver can be used on F4 MCUs.
Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:21:18 +11:00
Damien George
7e61a12eb1
stm32: Add support for F479 MCUs.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-11-30 10:21:18 +11:00
Kattni Rembor
c13f1d19f5
Update pins to silk pin first.
2021-11-29 17:56:03 -05:00
Damien George
35e70c1698
stm32/boards: Convert F413,F439,H743,L4xx,WB55 to new flash FS config.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-11-29 13:20:35 +11:00
Damien George
84969194a1
stm32/flashbdev: Support generic flash storage config via link symbols.
...
A board can now define the following linker symbols to configure its flash
storage layout:
_micropy_hw_internal_flash_storage_start
_micropy_hw_internal_flash_storage_end
_micropy_hw_internal_flash_storage_ram_cache_start
_micropy_hw_internal_flash_storage_ram_cache_end
And optionally have a second flash segment by configuring
MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE_SEGMENT2 to 1 and defining:
_micropy_hw_internal_flash_storage2_start
_micropy_hw_internal_flash_storage2_end
Signed-off-by: Damien George <damien@micropython.org>
2021-11-29 13:01:51 +11:00
lady ada
83de740d1f
kan prezz
2021-11-26 15:13:58 -05:00
lady ada
c56e33e6c2
woops fix SPI for rev A (will change in rev B to be correct)
2021-11-26 15:06:09 -05:00
lady ada
3c007ba094
re-add psram!
2021-11-26 13:50:12 -05:00
microDev
dddc282e34
update default sdkconfig and correct bootloader offset
2021-11-26 22:44:22 +05:30
microDev
554a62955b
Merge branch 'main' into espressif
2021-11-26 22:40:22 +05:30
lady ada
a9060ec383
cr nl
2021-11-26 00:27:54 -05:00
lady ada
0cf629bf99
on hey this proto doesnt have psram :(
2021-11-26 00:15:20 -05:00
lady ada
f06b21e46d
sneaky!
2021-11-25 23:50:33 -05:00
lady ada
a2c8daeb55
:(
2021-11-25 23:45:37 -05:00
lady ada
5e0d562cfe
y not?
2021-11-25 23:18:51 -05:00
Jim Mussared
678f4b959f
esp32/boards/GENERIC_S3: Enable BLE on ESP32 S3.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-11-26 11:58:12 +11:00
David Michieli
6259aa50eb
stm32/boards/NUCLEO_WB55: Update rfcore_firmwre for new WS.
...
Adds a fix to behavior occuring since WS 1.11 where the FUS returns
misleading statuses during WS upgrade.
2021-11-25 23:28:58 +11:00
Damien George
196d26848a
stm32/usb: Use a table of allowed values to simplify usb_mode get/set.
...
This reduces code size and code duplication, and fixes `pyb.usb_mode()` so
that it now returns the correct string when in multi-VCP mode (before, it
would return None when in one of these modes).
Signed-off-by: Damien George <damien@micropython.org>
2021-11-25 21:18:17 +11:00
Frédéric Pierson
d49df423e0
stm32/boards/NADHAT_PYBF405: Rename board to GARATRONIC_NADHAT_F405.
...
To add the manufacturer as a prefix to the board name, for consistency with
other Garatronic boards.
2021-11-25 21:10:43 +11:00
Frédéric Pierson
fdb925c4c1
stm32/boards: Add PYBSTICK26 F411 board definition.
2021-11-25 21:09:57 +11:00
Frédéric Pierson
c422ca3da1
rp2/boards: Add PYBSTICK26 RP2040 board definition.
2021-11-25 21:05:21 +11:00
Dan Halbert
95c09ac66f
Merge pull request #5610 from tannewt/rpi
...
Initial broadcom port for Raspberry Pi
2021-11-24 19:02:23 -05:00