Dan Halbert
da035fe958
Merge pull request #5990 from sgauche/stm_spi_3wire
...
Add support for half-duplex SPI to CPy
2022-02-09 13:11:37 -05:00
Dan Halbert
72317c309d
turn off CIRCUITPY_ONEWIREIO by default for skinny SAMD21 builds
2022-02-09 11:40:07 -05:00
anecdata
f87c027e00
Espressif ESP32-S2 DevKitC-1-N4R2 board
2022-02-08 22:14:01 -06:00
Scott Gauche
a8d8651873
Canonical C style for half_duplex = true/false
2022-02-08 23:13:22 -05:00
Scott Gauche
309f4fb2b9
add half_duplex false param to spi construct function call in some board files
2022-02-08 22:59:26 -05:00
Scott Gauche
89ad767b8f
add half_duplex to spi constructs in other ports but raise not implemented errors
2022-02-08 22:25:23 -05:00
Scott Gauche
3b418dbddc
change half_duplex to be on spi construct
2022-02-08 21:37:38 -05:00
anecdata
8e625728d6
LED_INVERTED
2022-02-08 20:34:37 -06:00
root
ce191327e8
RP2040 PDMIn frequency based on sample rate
2022-02-08 10:10:02 -06:00
Michael Himing
a639004c89
unexpectedmaker_tinys3: Fix D43, D44
2022-02-08 16:13:56 +11:00
Michael Himing
15914edd56
unexpectedmaker_feathers3: Fix A12
2022-02-08 16:13:56 +11:00
Michael Himing
a2fd1e6eb3
unexpectedmaker_pros3: Fix D43, D44
2022-02-08 16:13:56 +11:00
Scott Gauche
4110b44b8a
add support for half-duplex SPI on STM parts
2022-02-07 21:08:44 -05:00
Dan Halbert
1c17dc9348
ports/raspberrypi/common-hal/busio/SPI.c
2022-02-07 17:07:47 -05:00
Dan Halbert
566f8bed99
Merge pull request #5984 from DavePutz/issue_5967
...
Correcting order of sideset parameters in function call
2022-02-05 21:58:30 -05:00
root
8c10148b21
Correcting order of sideset parameters in function call
2022-02-05 16:15:12 -06:00
Scott Gauche
b2b657547d
Merge branch 'adafruit:main' into st_drivers_to_submodules
2022-02-03 19:21:30 -05:00
Scott Gauche
70ba229d23
add adafruit/stm32f4xx_hal_driver submodule
2022-02-03 14:01:11 -05:00
Scott Gauche
3d1b2b6ad6
remove ST's stm32f4xx_hal_driver submodule due to bug in qspi driver
2022-02-03 13:59:20 -05:00
Dan Halbert
e355ea2b91
shrink seeeduino_xiao build
2022-02-03 13:27:36 -05:00
Scott Shawcroft
8c718fdec8
Merge pull request #5974 from jepler/update-pico-sdk
...
bump pico-sdk to 1.3.0
2022-02-03 10:15:08 -08:00
arturo182
6623fe0a53
esp32s3_devkitm: Add GPIO40
2022-02-03 04:06:08 +01:00
Scott Gauche
92c9be9a4f
change st_driver to use ST's github drivers as submodules
2022-02-02 21:30:23 -05:00
Bryan Walsh
2f1c42b15f
added GPIO40 pin to esp32s3 devkit boards
2022-02-02 20:16:39 -05:00
Scott Gauche
4e305aa39c
Removed submodule st_driver
2022-02-02 19:51:23 -05:00
Jeff Epler
749bb99863
bump pico-sdk to 1.3.0
2022-02-02 17:15:33 -06:00
Dan Halbert
0129735dbe
Merge pull request #5969 from Life-Imaging-Services/crc32
...
crc32() code moved into binascii
2022-02-02 18:07:02 -05:00
Dan Halbert
0d43e3e734
squeeze datum_imu build
2022-02-02 13:44:40 -05:00
Dan Halbert
a04cd6444b
Merge pull request #5966 from Neradoc/add-alias-stemma-i2c
...
Add alias board.STEMMA_I2C for all boards with qwiic/stemma/QT
2022-02-02 11:08:13 -05:00
Dan Halbert
384cbdcda1
Merge pull request #5962 from Neradoc/add-more-stemma-i2c
...
Add board.STEMMA_I2C on ESP QTPYs
2022-02-02 10:50:19 -05:00
Neradoc
b2c8fd3938
add board.STEMMA_I2C alias to some boards
2022-02-02 01:18:46 +01:00
Dan Halbert
5435a40c54
Merge pull request #5959 from andypiper/patch-1
...
Fix typos
2022-02-01 18:27:31 -05:00
arturo182
2a87a80f69
espressif: Add ESP32-S3-DevKitM-1 board support
2022-02-02 00:18:04 +01:00
Neradoc
93f612eea2
add board.STEMMA_I2C on ESP QT PYs
2022-02-01 20:15:24 +01:00
Scott Shawcroft
2964e966b1
Merge pull request #5958 from dhalbert/i2c-common-hal-write-read
...
I2c common hal write read
2022-02-01 11:08:50 -08:00
Andy Piper
4096bb28ab
Fix typos
...
Some typo corrections and cleanup to the ESP32 doc
2022-02-01 18:53:11 +00:00
Dan Halbert
0b26dba44d
Merge pull request #5955 from prplz/is31fl3741
...
Only enable is31fl3741 for led glasses board
2022-02-01 12:55:31 -05:00
Dan Halbert
d0453f460d
shrink sensebox; fix doc error
2022-02-01 10:12:26 -05:00
Dan Halbert
cc410ad6a3
common-hal I2C combined write_read
2022-01-31 22:03:30 -05:00
Dan Halbert
17956a0204
Merge pull request #5957 from tannewt/esp_ble_forever_scan
...
Fix BLE scanning forever on ESP32-S3
2022-01-31 20:55:48 -05:00
Dan Halbert
d5740c8ad9
Merge remote-tracking branch 'adafruit/main' into i2c-common-hal-write-read
2022-01-31 18:51:32 -05:00
Scott Shawcroft
db7e72b43d
Fix BLE scanning forever on ESP32-S3
2022-01-31 15:45:43 -08:00
Michael Himing
c92c8ac184
Only enable is31fl3741 for led glasses board
...
Also fix a warning in is31fl3741
2022-02-01 09:45:50 +11:00
Scott Shawcroft
43dae6c8d1
Merge pull request #5951 from dhalbert/track-board-default-objects
...
Track creation of board.I2C(), etc.
2022-01-31 14:29:19 -08:00
Dan Halbert
20a17bec25
shrink arduino_mkrzero and sparkfun_samd21_dev
2022-01-31 09:16:03 -05:00
Dan Halbert
83e6e6690a
wip; works on espressif
2022-01-29 22:44:27 -05:00
Dan Halbert
93a60eecab
Merge pull request #5946 from tammymakesthings/pr4218-neopixel-show-after-deinit
...
Fixes neopixel show() after deinit() not raising an exception
2022-01-29 18:30:37 -05:00
Dan Halbert
a88969d306
Revert "Disabled audioio, audiobusio, USB midi for sparkfun_redboard_turbo to save flash space"
...
This reverts commit 5e2166673b
.
2022-01-29 17:06:26 -05:00
Dan Halbert
6e98186f0d
turn off more things on SAMD21 full builds
2022-01-29 17:05:51 -05:00
Tammy Cravit
5e2166673b
Disabled audioio, audiobusio, USB midi for sparkfun_redboard_turbo to save flash space
2022-01-29 14:31:58 -07:00
Dan Halbert
472cbcfaae
Merge pull request #5940 from UnexpectedCircuitPython/main
...
Added initial support for my new TinyS3, FeatherS3 and ProS3
2022-01-29 13:36:35 -05:00
Limor "Ladyada" Fried
7ba23ffac4
Merge pull request #5945 from EmergReanimator/stm_deinited_fix
...
Fixed common_hal_busio_uart_deinited incorrect pin assignment check.
2022-01-29 12:19:12 -05:00
Seon Rozenblum
1277852501
Added initial support for my new TinyS3, FeatherS3 and ProS3 ESP32-S3 development boards
2022-01-29 14:04:57 +11:00
Scott Shawcroft
019aecaa20
Support BLE advertising on ESP
...
Services and characteristics still won't work.
Progress on #5926
2022-01-27 17:40:37 -08:00
Dan Halbert
fff68c9f86
Merge pull request #5927 from tannewt/esp_ble_scan
...
Add BLE scanning for S3 and C3.
2022-01-27 13:05:24 -05:00
Scott Shawcroft
d9966c1724
Add TODOs and -Os for RISC-V
2022-01-26 17:07:20 -08:00
Scott Shawcroft
e409ff75cd
Turn off BLE HCI on ESP32-S2
2022-01-26 09:46:29 -08:00
EmergReanimator
66cf66f118
Fixed common_hal_busio_uart_deinited incorrect pin assignment check.
...
The pin must be tested instead of pin->number in the same way as in STM
I2C busio layer.
2022-01-26 17:46:42 +01:00
microDev
fa2d156d14
return default cpu frequency on espressif
2022-01-26 12:32:48 +05:30
Scott Shawcroft
b2e1dbd2df
Implement name and address get/set
2022-01-25 19:17:26 -08:00
Scott Shawcroft
5a6f456dbb
Add BLE scanning for S3 and C3.
...
Everything else should raise NotImplementedError.
First step in #5926
2022-01-25 16:28:46 -08:00
jerryneedell
9c31346c45
fix implmetation
2022-01-25 16:42:49 -05:00
jerryneedell
70512758a9
enable binascii in microbit_v2 build
2022-01-25 16:06:47 -05:00
Scott Shawcroft
4a3c636b6b
Merge pull request #5874 from dkulinski/epaper_two_byte_length
...
Update EPaperDisplay to allow for two byte sequence length
2022-01-25 11:13:36 -08:00
Dan Kulinski
19f9163892
Bringing branch up to date with current main
2022-01-25 11:02:00 -07:00
microDev
324ff9c30d
bump idf to latest commit on v4.4 branch
2022-01-25 18:01:09 +05:30
Dan Kulinski
60801066b2
Fix magtag, openbook for EPaperDisplay constructor
2022-01-24 12:34:01 -07:00
root
367a1d53c0
Fixes for pulsein on ESP32S3
2022-01-23 13:14:34 -06:00
Michael Himing
4d78e3401c
Fix esp32s3 devkitc uart naming and add board.UART
2022-01-22 15:25:33 +11:00
Dan Halbert
5933c04499
Merge pull request #5899 from tannewt/rp2040_winbond
...
Add winbond to Feather RP2040
2022-01-21 16:44:52 -05:00
Scott Shawcroft
9a353a4f56
Merge pull request #5422 from Neradoc/nera-secondary-I2C
...
Allow multiple board buses
2022-01-21 11:08:14 -08:00
Scott Shawcroft
f2713afff6
Merge pull request #5896 from dhalbert/open-modes-check
...
Validate open() mode
2022-01-21 10:50:43 -08:00
Scott Shawcroft
c598ede84e
Add winbond to Feather RP2040
2022-01-21 10:34:38 -08:00
microDev
3970aa5a5e
fix build failure on two boards
2022-01-21 10:11:33 +05:30
microDev
67293c265c
Merge branch 'main' into board-bus
2022-01-21 10:08:39 +05:30
MicroDev
dab35f7c72
Merge pull request #5880 from jepler/espressif-serial-trick-uf2
...
Request ROM bootloader when resetting using the 'serial trick'
2022-01-21 09:56:12 +05:30
Dan Halbert
fed5227de9
shrink stringcar_m0_express
2022-01-20 20:34:04 -05:00
Jeff Epler
ea30a8ac04
Reboot into the ROM bootloader from 1200 baud
...
Per Scott, the purpose of this trick is to make the board programmable from Arduino even when CP is installed, so my convenience of escaping into UF2 is not going to work out.
2022-01-20 18:50:50 -06:00
Scott Shawcroft
35175715f9
Check target defined
2022-01-20 14:11:33 -08:00
Scott Shawcroft
d99847b410
Refactor pin reset on ESP
...
This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.
Fixes #5893
2022-01-20 12:40:41 -08:00
Scott Shawcroft
13db65566d
ESP NeoPixel fixes
...
This tweaks the RMT timing to better match the 1/3 and 2/3 of 800khz
guideline for timing. It also ensures a delay of 300 microseconds
with the line low before reset.
Pin reset is now changed to the IDF default which pulls the pin up
rather than CircuitPython's old behavior of floating the pin.
Fixes #5679
2022-01-19 16:29:07 -08:00
Dan Halbert
8bae6af12a
Merge pull request #5888 from tannewt/esp_tick_core
...
Ensure supervisor_tick is run on the same core as CP
2022-01-19 19:26:50 -05:00
Kattni Rembor
880d43a4f7
Fix pin typo.
2022-01-19 17:04:30 -05:00
Scott Shawcroft
42fbebe62a
Merge pull request #5832 from ladyada/main
...
ESP32S2 camera board draft
2022-01-19 12:04:13 -08:00
Scott Shawcroft
78942112c7
Ensure supervisor_tick is run on the same core as CP
2022-01-19 11:36:40 -08:00
lady ada
f13ea93fe6
fix A5 pin name
2022-01-19 14:22:01 -05:00
lady ada
6d7472357d
newline
2022-01-18 20:46:09 -05:00
Scott Shawcroft
7ee5c01cf8
Add Espressif C3 dev board
2022-01-18 17:39:52 -08:00
lady ada
09cf95a51c
no psram :(
2022-01-18 20:14:17 -05:00
lady ada
de45a20b08
EOF
2022-01-18 20:14:17 -05:00
lady ada
71c792d608
try initial esp32s3 qtpy def
2022-01-18 20:14:17 -05:00
lady ada
d4dab79234
add buttonpin
2022-01-18 20:14:17 -05:00
lady ada
c1cee63c5a
fix tuplecompile
2022-01-18 20:14:17 -05:00
lady ada
1d44bf1c0c
add camera data port
2022-01-18 20:14:17 -05:00
lady ada
3381ac149e
fix camera display io to use default spi bus
2022-01-18 20:14:16 -05:00
lady ada
13b319c430
try rotation 0
2022-01-18 20:14:16 -05:00
lady ada
e9f0c1796e
oof fix i2c lines!
2022-01-18 20:14:16 -05:00
lady ada
4400124efe
snappysnap
2022-01-18 20:14:16 -05:00
lady ada
8b26f594c9
try not resetting i2c power
2022-01-18 20:14:16 -05:00
lady ada
647b894e7b
?? some include needed
2022-01-18 20:14:16 -05:00
lady ada
9c933558b5
enable I2C by default
2022-01-18 20:14:15 -05:00
Jeff Epler
872beeccfe
Merge remote-tracking branch 'origin/main' into espressif-serial-trick-uf2
2022-01-18 19:07:05 -06:00
Scott Shawcroft
c839d9b3cc
Fix S2 builds by not turning on USB with wifi
2022-01-18 15:50:32 -08:00
Scott Shawcroft
679f4b30ba
Tweak heap sizes for different targets
2022-01-18 15:23:19 -08:00
Dan Halbert
09bdad6c5b
Merge pull request #5877 from 0hotpotman0/main
...
Add softdev_version 7.0.1
2022-01-17 21:39:12 -05:00
Jeff Epler
49b8579bcd
Request UF2 bootloader when resetting using the 'serial trick'
2022-01-17 17:14:31 -06:00
Dan Halbert
3453ced296
Merge pull request #5860 from tannewt/s3_core_1
...
Switch CP to core 1 on S3
2022-01-17 16:10:05 -05:00
Jeff Epler
895a8a9e72
Merge pull request #5866 from dhalbert/espressif-open-drain
...
fix espressif DigitalInOut open-drain
2022-01-17 12:51:31 -06:00
0hotpotman0
9b9dd97e00
add softdev_version 7.0.1
2022-01-17 14:49:11 +08:00
Neradoc
784a5edc4b
Define default SPI pins on kb2040
...
Fixes #5875
2022-01-17 06:52:08 +01:00
Dan Halbert
11848b1826
use GPIO_MODE_ instead of GPIO_MODE_DEF
2022-01-15 23:05:33 -05:00
Dan Halbert
c70c8a9390
fix espressif open-drain
2022-01-15 19:54:31 -05:00
Scott Shawcroft
f6cf15de43
Switch CP to core 1 on S3
2022-01-14 12:22:38 -08:00
Scott Shawcroft
993e51e5cc
Fix USB when enabling wifi
2022-01-14 11:52:14 -08:00
Scott Shawcroft
7af7cd418c
Merge pull request #5853 from tannewt/s3_config_rework
...
Split out target specific configs.
2022-01-14 10:25:50 -08:00
Scott Shawcroft
86e7247d11
Merge pull request #5854 from jepler/issue-5680
...
patch esp-idf for i2c crash
2022-01-14 09:37:23 -08:00
Jeff Epler
c87d9c947b
patch esp-idf for i2c crash
...
In theory, this Closes : #5680 -- I didn't test it on HW yet.
2022-01-14 08:53:24 -06:00
stijn
cf258c898e
windows/msvc: Run qstr preprocessing phase in parallel.
...
Supported from VS2017 and up, this roughly halves build time.
2022-01-14 17:05:55 +11:00
Damien George
a3bbd5332b
esp32/machine_bitstream: Reinstate bitstream bit-bang implementation.
...
The bit-bang implementation was replaced with the RMT implementation in
599b61c086
. This commit brings back that
bit-bang code, and allows it to be selected via the new static method:
esp32.RMT.bitstream_channel(None)
The bit-bang implementation may be useful if the RMT needs to be used for
something else, or if bit-banging is more stable in certain applications.
Signed-off-by: Damien George <damien@micropython.org>
2022-01-14 16:40:01 +11:00
Damien George
e754c2e84f
esp32/esp32_rmt: Install RMT driver on core 1.
...
MicroPython currently runs on core 0 of the esp32. Calling
rmt_driver_install will mean that the RMT interrupt handler is also
serviced on core 0. This can lead to glitches in the RMT output if
WiFi is enabled (for esp32.RMT and machine.bitstream).
This patch calls rmt_driver_install on core 1, ensuring that the RMT
interrupt handler is serviced on core 1. This prevents glitches.
Fixes issue #8161 .
Signed-off-by: Damien George <damien@micropython.org>
2022-01-14 15:41:59 +11:00
Scott Shawcroft
869cf5eba5
Run USB on the same core as CP
2022-01-13 15:55:37 -08:00
Scott Shawcroft
39639ecd17
Rework configs to take target into account
...
New script will filter settings to different tiers.
2022-01-13 15:55:37 -08:00
Scott Shawcroft
2233026556
Merge pull request #5848 from prplz/esp32s3-devkits
...
Esp32s3 devkits
2022-01-13 14:02:44 -08:00
Dan Halbert
59275c7225
Merge pull request #5846 from jepler/feather-esp32s2-tft-spi
...
feather esp32s2 tft: fix sharing of main display bus
2022-01-12 23:05:42 -05:00
Damien George
a49b51b7db
zephyr/modbluetooth_zephyr: Provide dummy connect_cancel function.
...
Signed-off-by: Damien George <damien@micropython.org>
2022-01-13 13:45:55 +11:00
Michael Himing
a878e3377c
Rename espressif_esp32s3_devkitc_1 to devkitc_1_n8r2
2022-01-13 13:24:06 +11:00
Michael Himing
212eedc42f
Rename espressif_esp32s3_devkitc_1_nopsram to devkitc_1_n8
2022-01-13 13:24:06 +11:00
Michael Himing
7575cacdc5
Add espressif_esp32s3_devkitc_1_n8r8
2022-01-13 13:24:06 +11:00
Kattni
1022866d95
Merge pull request #5844 from kattni/add-button-pin
...
Add button pin to Feathers, fix pin order on QT Py.
2022-01-12 18:11:46 -05:00
Jeff Epler
10c3836bc0
feather esp32s2 tft: fix sharing of main display bus
2022-01-12 14:35:00 -06:00
Scott Shawcroft
ae58858036
Merge pull request #5820 from CharString/waveshare_rp2040_zero
...
Waveshare RP2040-Zero board definition
2022-01-12 10:56:55 -08:00
Kattni Rembor
fb96c09118
Add button pin to Feathers, fix pin order on QT Py.
2022-01-12 13:54:56 -05:00
Scott Shawcroft
d5ca7f0348
Merge pull request #5842 from dhalbert/pdmin-fix
...
Fixes SAMD PDMIn
2022-01-12 10:50:04 -08:00
Dan Halbert
dd54e8f657
PDMIn: enable IRQ; need a volatile; call pdmin_reset()
...
enable IRQ for PDMIn
2022-01-12 11:44:43 -05:00
Chris Wesseling
8226fb8e0b
Bring pins in line with board documentation.
...
This brings the pins in line with the documented [pinouts]. The only
"special" pins:
- GP0, GP1 are mentioned as the default UART, so we init them as
such and give them the TX and RX alternative names.
- GP16 is connected to the onboard neopixel DIN line and we assign it
the NEOPIXEL name. (Power of the neopixel is connected to the 3.3V
rail, not a pin. See [schematic].)
- GP26, GP27, GP28, GP29 have unambiguous ADC designations in the
[pinouts], so we assign the `A` analogue names as the Pico board
definition does.
[pinouts]: https://www.waveshare.com/wiki/RP2040-Zero#Pinouts
[schematic]: https://www.waveshare.com/w/upload/4/4c/RP2040_Zero.pdf
2022-01-12 12:27:54 +01:00
arturo182
9b825869c5
raspberrypi : Check UART before claiming pins, claim it after
...
Co-authored-by: Scott Shawcroft <scott@adafruit.com>
2022-01-11 22:02:47 +01:00
arturo182
2251d0f4b0
raspberrypi: Claim UART after checking pins
...
If, for some reason, you mix up TX and RX when calling `busio.UART` (who would do that ;) ), you get `Invalid pins`. When you go to try again, you'll get `All UART peripherals are in use` because the interface was claimed as busy before pins are verified. This should fix that issue.
2022-01-11 15:13:36 +01:00
Dan Halbert
d23d2e7bf4
Merge pull request #5819 from tannewt/piunora
...
Add Piunora and Zero. Also, enable full build
2022-01-10 19:33:23 -05:00
Kattni
968c57e045
Merge pull request #5829 from kattni/tft-feather-pin-fix
...
Fix typo, pin order.
2022-01-10 15:25:45 -05:00
Scott Shawcroft
838a007ca9
Merge pull request #5813 from EmergReanimator/code_improvements
...
Introduced ringbuf_init to perform static buffer initialisation
2022-01-10 12:12:25 -08:00
Kattni Rembor
4efbfca2b0
Fix typo, pin order.
2022-01-10 14:45:54 -05:00
stijn
b47b245c2e
windows/appveyor: Build mpy-cross only once for mingw-w64.
...
The main Makefile builds the mpy-cross executable automatically if
it doesn't exist since 78718fffb1
,
so build it first to make sure it doesn't get needlessly rebuilt.
2022-01-10 15:01:03 +01:00
0hotpotman0
86a482f520
add ble stack 7.3.0 version for complie the uf2 flie
2022-01-10 11:05:06 +08:00
Damien George
ff0227fa0d
esp32/boards/GENERIC_D2WD: Build with -Os optimisation.
...
This board has only 2MiB of flash so the build needs to be reduced in size
to fit. Commit 549448e8bb
made all boards
build with -O2 by default (for performance) so this overrides that default.
Signed-off-by: Damien George <damien@micropython.org>
2022-01-09 11:25:37 +11:00
Pontus Oldberg
e23b272595
Added missing LDO control pin (SARA_PWR)
2022-01-08 16:39:48 +01:00
Chris Wesseling
783106545c
Remove LED pin.
...
There's just the NEOPIXEL on this board, no other LED.
2022-01-07 23:25:50 +01:00
Chris Wesseling
d8f18d36a4
Initial Waveshare RP2040-Zero board definition
...
`board.NEOPIXEL` works. Once you have an LED cycling colours, you're 99%
done. :-)
2022-01-07 23:20:10 +01:00
Scott Shawcroft
bec36f5c7f
Add Pi Zero and update PIDs
2022-01-07 11:47:31 -08:00
Scott Shawcroft
39a239113f
Enable neopixel for status
2022-01-07 11:23:50 -08:00
Scott Shawcroft
3238d8364d
Piunora + full build + high speed usb
2022-01-07 11:23:50 -08:00
Scott Shawcroft
5f32d1f34b
Piunora pinout
2022-01-07 11:23:49 -08:00
Scott Shawcroft
fb6ab72392
Merge pull request #5816 from bd34n/bdmicro_vina_d51_led_aux
...
ports/atmel-samd/boards/bdmicro_vina_d51/pins.c: Add LED_AUX pin.
2022-01-07 10:47:32 -08:00
Dan Halbert
afd686986a
Merge pull request #5800 from tannewt/rpi_zero
...
Initial Pi Zero support
2022-01-07 09:05:30 -05:00
Damien George
1892d03740
mimxrt,stm32: Enable MICROPY_PY_USSL_FINALISER.
...
This is needed because these ports allocate mbedtls data on the MicroPython
heap, and SSL socket objects must be fully cleaned up when they are garbage
collected, to free this memory allocated by mbedtls. As part of this,
gc_sweep_all() will now ensure that the MP_STATE_PORT(mbedtls_memory)
linked-list is fully deallocated on soft reset.
Signed-off-by: Damien George <damien@micropython.org>
2022-01-08 00:02:04 +11:00
Damien George
df3f59ca4b
ports: Update board.json files to link to new board images.
...
Signed-off-by: Damien George <damien@micropython.org>
2022-01-07 11:33:28 +11:00
Brian Dean
1fb4f02de2
ports/atmel-samd/boards/bdmicro_vina_d51/pins.c: Add LED_AUX pin.
2022-01-06 16:32:17 -05:00
Scott Shawcroft
fa272f5a70
Fix iMX and zero_w build extension
2022-01-06 10:24:02 -08:00
Scott Shawcroft
2a2f94df15
Update tinyusb for zero support
2022-01-06 08:52:33 -08:00
EmergReanimator
12046323a2
Fixed unit port build issue
2022-01-06 09:27:44 +01:00
Damien George
b96318ab61
esp32: Enable platform module with IDF version.
...
Output looks like this:
>>> import platform
>>> platform.libc_ver()
('newlib', '3.0.0')
>>> platform.platform()
'MicroPython-1.17.0-xtensa-IDFv4.2.2-with-newlib3.0.0'
>>> platform.python_compiler()
'GCC 8.4.0'
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06 18:25:48 +11:00
Damien George
000b001fc1
rp2/boards/GARATRONIC_PYBSTICK26_RP2040: Use correct pico-sdk board cfg.
...
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06 16:50:20 +11:00
Damien George
4693cf9081
rp2/CMakeLists.txt: Allow a board to override PICO_BOARD.
...
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06 16:49:57 +11:00
Maureen Helm
c6d26bc524
zephyr: Upgrade to Zephyr v2.7.0.
...
Updates the Zephyr port build instructions and CI to use the latest
Zephyr release tag.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm
0cf03bd3b1
zephyr: Use CONFIG_USB_DEVICE_STACK for conditional USB device support.
...
CONFIG_USB was removed in Zephyr v2.7.0 after some Kconfig rework that
made it sufficient to use CONFIG_USB_DEVICE_STACK only.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm
1e5df0982a
zephyr: Get UART console device from devicetree instead of Kconfig.
...
Updates the Zephyr port to get the UART console device from devicetree
instead of Kconfig. The Kconfig option CONFIG_UART_CONSOLE_ON_DEV_NAME
was removed in Zephyr v2.7.0.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm
080a9e906d
zephyr: Update include path to reboot.h.
...
The reboot header was moved to a different path in Zephyr v2.6.0. The
old path was deprecated for two releases (v2.6.0 and v2.7.0) and will no
longer be supported after Zephyr v2.7.0.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
Maureen Helm
ddbbfbed75
zephyr: Increase minimum CMake version to 3.20.0.
...
As a prerequisite to upgrading to Zephyr v2.7.0, upgrade the minimum
CMake version required for the Zephyr port to 3.20.0.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06 14:09:39 +11:00
iabdalkader
908e4cf5c3
rp2: Add support for DHT11 and DHT22 sensors.
2022-01-06 14:00:03 +11:00
robert-hh
01d9b7adde
rp2/machine_pwm: Keep duty value when changing the frequency.
...
The duty is saved and set whenever the frequency is changed, unless the
duty rate was not set yet.
2022-01-06 13:52:45 +11:00
robert-hh
9e56e630ca
rp2/machine_pwm: Fix PWM frequency setting.
...
The top value was off by 1: in order to count n ticks it has to be set to
n-1.
Fixes issue #8122 .
2022-01-06 13:51:19 +11:00
iabdalkader
f4487a0049
rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Set default I2C pins.
2022-01-06 13:35:20 +11:00
Simon Baatz
79ae7098ca
esp32/machine_bitstream: Fix signal duplication on output pins.
...
After changing the bitstream implementation to use the RMT driver in
commit 72d86158121e32bbabaeade08f449d507bf40f9a
("esp32/machine_bitstream.c: Replace with RMT-based driver."), using
multiple `Neopixel` instances shows signal duplication between the
instances (i.e. a `write()` on one instance is written to all instances).
On invocation, the rmt driver configures the GPIO matrix to route the
output signal to the respective GPIO pin. When called for a different
`NeoPixel` instance using a different pin, the new route is established,
but the old route still exists. Now, the RMT output signal is sent to both
pins.
Fix this by setting the standard GPIO output function for the current pin
after uninstalling the RMT driver.
Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
2022-01-06 13:21:37 +11:00
MikeTeachman
49d8ae3ecc
esp32/machine_i2s: Add support for ESP-IDF 4.4.
...
- Add default values for I2S features added in ESP-IDF 4.4.
- Add workaround for bug introduced in ESP-IDF 4.4
(https://github.com/espressif/esp-idf/issues/8121 ).
2022-01-06 13:10:38 +11:00
Scott Shawcroft
48d826b15d
Never reset SD card pins
2022-01-04 19:08:14 -08:00
Scott Shawcroft
38d2472683
Fix cache detection on 64 bit
2022-01-04 17:38:29 -08:00
Scott Shawcroft
f64fede735
Correct board name and fix USB with memory barrier
2022-01-04 16:11:40 -08:00
Scott Shawcroft
87f4205ec9
Fix Cortex-A MMU init
2022-01-04 12:29:48 -08:00
Scott Shawcroft
9a9893f3fc
Merge pull request #5798 from jerryneedell/jerryn_gpio
...
Broadcom: Set JTAG pins to Pull Down on initialization
2022-01-04 11:10:00 -08:00
Chris Boudacoff
802ef271b8
mimxrt/hal: Allow readSampleClkSrc to be configured by a board.
...
Via the MICROPY_HW_FLASH_DQS flag.
2022-01-04 15:42:12 +11:00
stijn
3f16719888
windows/appveyor: Build both standard and dev variants.
...
This makes sure changes from previous related commits actually work.
2022-01-04 15:07:45 +11:00
stijn
7955734aca
windows: Run tests via Makefile.
...
The application isn't necessarily called 'micropython' especially
not When using variants, i.e. the tests need to be ran using $(PROG).
2022-01-04 15:07:45 +11:00
Andrew Leech
05ed19e73e
windows: Add support for build variants to windows port.
...
Following the unix port.
Support for building variants with msvc was done by @stinos.
2022-01-04 15:06:26 +11:00
Dan Halbert
d166834e09
Merge pull request #5803 from dhalbert/countio-enhancements
...
countio: add selectable rise and fall detection, pulls
2021-12-31 23:45:59 -05:00
Dan Halbert
9d2a32d07e
countio: add selectable rise and fall detection, pulls
2021-12-31 16:34:58 -05:00
Scott Shawcroft
756b9f6dfa
Initial Pi Zero support
...
Both SD card and USB don't work. REPL works over UART.
Progress on #5631
2021-12-30 18:32:59 -08:00
jerryneedell
14815f6de7
fix typo in comment
2021-12-30 14:12:37 -05:00
jerryneedell
9dea49516e
update logic for JTAG pull downs
2021-12-30 14:09:43 -05:00
jerryneedell
fc97f1d940
Merge branch 'adafruit:main' into jerryn_gpio
2021-12-30 13:02:08 -05:00
microDev
4daa7b5180
update espressif port
...
- enable rgbmatrix for all esp soc
- bump idf to latest commit on v4.4 branch
2021-12-30 19:23:41 +05:30
Damien George
a29c70c9b4
esp8266: Allow building a board to any dest directory.
...
Signed-off-by: Damien George <damien@micropython.org>
2021-12-30 15:47:49 +11:00
iabdalkader
8af9dbbde1
stm32/network_wiznet5k: Fix build error with wiznet5k and lwip enabled.
...
Commit 4dba04a50f
refactored the network code
but the combination of MICROPY_PY_WIZNET5K=5500 and MICROPY_PY_LWIP=1
broke.
2021-12-30 11:54:19 +11:00
jerryneedell
7cdffba09f
Merge remote-tracking branch 'upstream/main' into jerryn_gpio
2021-12-29 12:58:41 -05:00
Damien George
aac5a97d08
ports: Move '.frozen' to second entry in sys.path.
...
In commit 86ce442607
the '.frozen' entry was
added at the start of sys.path, to allow control over when frozen modules
are searched during import, and retain existing behaviour whereby frozen
was searched before the filesystem.
But Python semantics of sys.path require sys.path[0] to be the directory of
the currently executing script, or ''.
This commit moves the '.frozen' entry to second place in sys.path, so
sys.path[0] retains its correct value (described above).
Signed-off-by: Damien George <damien@micropython.org>
2021-12-29 23:55:36 +11:00
Dan Halbert
8aafc734a4
Merge pull request #5789 from adafruit/7.1.x
...
Merge latest changes from 7.1.x
2021-12-28 18:12:29 -05:00
Scott Shawcroft
08d09ac493
Merge pull request #5613 from jepler/issue5418
...
clear out interrupt when freeing the timer
2021-12-28 10:57:58 -08:00
Dan Halbert
3bc48802b1
Merge pull request #5783 from jepler/longint-config
...
Centralize LONGINT_IMPL handling
2021-12-28 12:55:26 -05:00
jerryneedell
ed3ddea2da
set pulldown for broadcom jtag pins
2021-12-28 11:26:47 -05:00
Jeff Epler
1986d2ee71
clear out interrupt flags when disabling timer too
2021-12-27 16:42:41 -06:00
Jeff Epler
ea638c0401
Merge pull request #5753 from 0hotpotman0/main
...
Add new board Seeed_XIAO_nRF52840
2021-12-27 15:41:14 -07:00
Jeff Epler
9cf2baf68e
remove unneeded LONGINT_IMPL logic
2021-12-27 16:39:33 -06:00