Commit Graph

27193 Commits

Author SHA1 Message Date
Scott Shawcroft 993e51e5cc
Fix USB when enabling wifi 2022-01-14 11:52:14 -08:00
Alec Delaney 5d6ef60fb4 Add newline at end of breadcrumbs.html 2022-01-14 13:29:13 -05:00
Alec Delaney d54e5c8673 Add breadcrumbs.html to prevent "Edit on Github" link 2022-01-14 13:26:57 -05: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
Kattni Rembor ae8284d268 Update submodule instructions. 2022-01-14 11:46:48 -05: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
Jeff Epler ea3c70a957
Merge pull request #5851 from dhalbert/pdmin-fix-7.1.x
PDMIn fix for SAMD: backport of #5842
2022-01-14 08:42:01 -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 da702b293f PDMIn: enable IRQ; need a volatile; call pdmin_reset()
enable IRQ for PDMIn
2022-01-13 14:45:46 -05:00
Dan Halbert 936c9b2055
Merge pull request #5849 from alustig3/patch-1
Regular expressions docs example update
2022-01-13 08:46:11 -05:00
Damien George 8957386250 docs/esp32: Update RMT quickref example to match latest code.
The start keyword was removed in 18e48a71ee

Signed-off-by: Damien George <damien@micropython.org>
2022-01-13 22:39:58 +11: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
Dan Halbert 32dd374ed9
Merge pull request #5845 from dhalbert/stubs-to-pypi-only-on-rlease
Push stubs to pypi only on a release
2022-01-12 23:05:27 -05:00
Andy 5fe2331782
update regular expressions example
the example uses ure instead of re
2022-01-12 22:35:18 -05:00
Damien George 49325de475 tools/ci.sh: Build zephyr nucleo_wb55rg to test zephyr bluetooth build.
And eliminate one build to reduce CI time.

Signed-off-by: Damien George <damien@micropython.org>
2022-01-13 13:46:03 +11: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 1cd98fed26 Add esp32s3 dev kits to USB ID ignore list 2022-01-13 13:45:46 +11:00
Damien George e7fff736b5 extmod/modbluetooth: Put declaration of connect_cancel in correct place.
This fixes a bug introduced in 851ecb2da1

Signed-off-by: Damien George <damien@micropython.org>
2022-01-13 13:45:43 +11:00
Damien George 889dee8076 extmod/modbluetooth: Fix conditional compilation of ringbuf_put_uuid.
This fixes a bug introduced in a76604afba

Signed-off-by: Damien George <damien@micropython.org>
2022-01-13 13:45:07 +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
Dan Halbert 8c8997f42a Push stubs to pypi only on a release 2022-01-12 14:14:21 -05: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
Scott Shawcroft 46c0436b1b
Merge pull request #5834 from adafruit/rpi-uart-claim-later
raspberrypi: Claim UART after checking pins
2022-01-12 10:46:39 -08:00
Scott Shawcroft 6346b9b7e3
Merge pull request #5841 from EmergReanimator/filesystem_stub
Provide filesystem stubs to fit in with changes from 41d494df0b
2022-01-12 10:44:53 -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
Jeff Epler e76495605b
Merge pull request #5840 from tannewt/enable_tr_builds
Enable Turkish language builds
2022-01-12 09:02:39 -06:00
EmergReanimator 46a61e6788 Provide filesystem stubs to fit in with changes from 41d494df0b
filesystem stub implementation is used when DISABLE_FILESYSTEM is set.
2022-01-12 12:30:24 +01: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
iabdalkader f2ccf87e0b extmod/network_ninaw10: Use socket timeout preset in modusocket. 2022-01-12 14:37:40 +11:00
iabdalkader 842da93011 extmod/modusocket: Initialise accepted socket state. 2022-01-12 14:37:32 +11:00
iabdalkader 67420de4f4 extmod/modusocket: Allow setting timeout on unbound sockets.
For an extended state socket, if settimeout() is called before a NIC is
bound, save the timeout until the NIC is bound.
2022-01-12 14:36:55 +11: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
Scott Shawcroft 9c6e34df0d
Merge pull request #5835 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-01-11 10:42:08 -08:00
hexthat 0d11e5d76a
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.1% (1022 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-01-11 15:56:57 +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