Commit Graph

7950 Commits

Author SHA1 Message Date
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
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
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
0hotpotman0 86a482f520 add ble stack 7.3.0 version for complie the uf2 flie 2022-01-10 11:05:06 +08: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
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
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
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
jerryneedell 7cdffba09f Merge remote-tracking branch 'upstream/main' into jerryn_gpio 2021-12-29 12:58:41 -05: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
Jeff Epler 34e8bfd09e
explicitly use mpz long ints on this board 2021-12-27 16:39:04 -06:00
Jeff Epler f5fa4ae237
Merge pull request #5764 from dannystaple/patch-1
Fix RST formatting for readthedocs
2021-12-27 09:41:46 -07:00
Jeff Epler 1d13c4ccd1
Centralize LONGINT_IMPL handling
This closes #5782
2021-12-27 10:21:47 -06:00
Jeff Epler 3dcebf1085
Merge pull request #5774 from RetiredWizard/Broadcom-long-integer-enable
Add enable long integer flags to Broadcom
2021-12-27 06:35:10 -07:00
0hotpotman0 0f5b20c650 Correct pin name 2021-12-27 13:45:39 +08:00
0hotpotman0 9810f0f824 Correct the pin LED 2021-12-27 09:24:33 +08:00
Dan Halbert ab9cef736c
Merge pull request #5779 from dhalbert/feather-esp32-s2-turn-on-i2c-power-by-default
Feather ESP32-S2: turn on I2C power after reset
2021-12-24 18:21:16 -05:00
Dan Halbert cf70a9ca61 Turn on I2C power for each VM, instead of just after hard reset 2021-12-24 16:27:17 -05:00
Dan Halbert 889b25d792 put I2C_POWER_INVERTED alias before D7, for prettypins 2021-12-24 11:49:58 -05:00
Dan Halbert cf349af35e turn on I2C power after reset 2021-12-24 11:45:07 -05:00
Dan Halbert b9f7fd663b shrink CPX crickit build 2021-12-24 08:57:27 -05:00
0hotpotman0 0cbbfadad9 Correct the pin name and add the monitor battry function 2021-12-24 18:51:26 +08:00
Pierre Constantineau e86810fce2 updating UF2_FAMILY_ID for nrf52833 2021-12-23 16:32:00 -06:00
RetiredWizard 4683619bb0
Add long integer flags to enable
Code stolen from raspberrypi port
2021-12-23 14:29:25 -05:00
Scott Shawcroft 605753cd7d
Merge pull request #5771 from hathach/s3-familyid
use family id for s2 and s3 depending on IDF_TARGET
2021-12-23 11:08:41 -08:00
Dan Halbert 35f0330d16
Merge pull request #5773 from dhalbert/update-frozen-libraries-2021-12-23-7.1.x
Update frozen libraries in preparation for 7.1.0-rc.0
2021-12-23 14:00:31 -05:00
Dan Halbert 325c2161e9 shrink CPX crickit build 2021-12-23 12:24:16 -05:00
Jeff Epler 900ec91fa6
Merge pull request #5761 from adafruit/7.1.x
Bring 7.1.x changes into main - cascadetoml undo + alarm fixes
2021-12-23 06:30:05 -07:00
hathach 53869d71fd
use family id for s2 and s3 depending on IDF_TARGET 2021-12-23 14:53:00 +07:00
Jeff Epler c1236fb4d6
Merge pull request #5766 from tannewt/rp2040_sideset_enable
Add sideset_enable support to PIO
2021-12-22 20:17:33 -07:00
Scott Shawcroft 827ad327a5
Only ignore warnings if in gcc >= 11 2021-12-22 18:21:18 -08:00
Scott Shawcroft 674c845fb6
Merge pull request #5760 from jepler/rename_under_typing
circuitpython_stubs: Use `circuitpython_typing` for cp-specific typing
2021-12-22 14:05:04 -08:00
Scott Shawcroft 3e13d4f5b5
Add sideset_enable support to PIO
This allows for UART TX via PIO
2021-12-22 12:00:19 -08:00
Jeff Epler 166793f843 circuitpython_stubs: Use `circuitpython_typing` for cp-specific typing
Installing stubs for a module named `_typing` seems like a dubious
decision.
2021-12-22 11:14:21 -06:00
Danny Staple 174a2cbf25
Fix RST formatting for readthedocs
And also a typo/grammar thing.
2021-12-22 17:03:58 +00:00
Dan Halbert 3bb9a4439d Fix recording of wake_alarm 2021-12-21 21:48:36 -05:00
Scott Shawcroft 03a80e429b
Add new line for pre-commit 2021-12-21 16:21:10 -08:00
0hotpotman0 745003751c Add new board Seeed_XIAO_nRF52840 2021-12-21 19:08:11 +08:00
Scott Shawcroft bd207e4ef9
Merge pull request #5735 from tannewt/kb2040_clk_pin
Add alternative clock pin name to match silkscreen
2021-12-20 12:37:10 -08:00
Scott Shawcroft 1ec3e023d7
Merge pull request #5744 from jepler/update-protomatter
Update protomatter & re-enable rgbmatrix on esp32s2
2021-12-20 12:34:02 -08:00
Jeff Epler 7f189b3e30
Merge pull request #5747 from adafruit/7.1.x
Merge 7.1.x fixes and updates into main
2021-12-17 20:44:43 -07:00
Jeff Epler 60c2018262
Update protomatter & re-enable rgbmatrix on esp32s2
.. not enabled on s3 & c3 as I did not test there.
2021-12-17 12:04:39 -06:00
lady ada 654414e57e fix colororder 2021-12-17 10:41:06 -05:00
lady ada 26c2acae12 nuudge 2021-12-17 09:47:44 -05:00
lady ada 8e540a1738 fix final qtpys2 and s2tft feather pinouts 2021-12-17 09:47:44 -05:00
lady ada 1c1559f5af fix colororder 2021-12-17 09:41:44 -05:00
lady ada c088090319 nuudge 2021-12-17 01:17:35 -05:00
lady ada 12e72ef406 fix final qtpys2 and s2tft feather pinouts 2021-12-17 00:24:19 -05:00
Scott Shawcroft 3f50453dd0
Merge pull request #5727 from tannewt/rpi_neopixel
Add neopixel support on PWM capable pins
2021-12-16 11:44:02 -08:00
Scott Shawcroft 7c2e7bfeaa
Add alternative clock pin name to match silkscreen 2021-12-15 14:41:42 -08:00
Scott Shawcroft 5e4cb4f1e2
Yes, index is unused. That's ok. 2021-12-15 13:46:31 -08:00
Scott Shawcroft 190aee551e
Merge pull request #5699 from jpconstantineau/board-pykey87
Add support for PyKey family of keyboards
2021-12-15 10:59:55 -08:00
Scott Shawcroft d50079c4ca
Merge pull request #5716 from timhawes/ssl_improvements
SSL improvements
2021-12-15 10:52:48 -08:00
Pierre Constantineau f3ec6ee760 tested hardware and cleaned-up commented out pin defs 2021-12-14 21:46:04 -06:00
Asura 7b2980ead2
fix missing pintout.
fix missing pintout p20 & p21 for makerdiary_nrf52840_mdk_usb_dongle.
2021-12-15 09:57:26 +08:00
Scott Shawcroft 2693e2ce0a
Add neopixel support on PWM capable pins
It'll be hard to do PWM from them concurrently

Fixes #5697
2021-12-14 16:59:53 -08:00
Tim Hawes 54e87d3660
Apply suggestions from code review
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-12-14 20:03:44 +00:00
Pierre Constantineau 162e253949 finalizing pin assignments prior to final hardware test 2021-12-14 09:45:39 -06:00
Tim Hawes c325633f8e Add methods to ssl.SSLContext for handling self-signed certs 2021-12-14 01:00:50 +00:00
Tim Hawes ef414bf1bd Handle server_hostname argument in espressif SSLContext.wrap_socket 2021-12-14 01:00:50 +00:00
Scott Shawcroft 7fea970379
Merge pull request #5597 from NathanY3G/add-board-sparkfun-thing-plus-stm32
Add board definition for SparkFun Thing Plus - STM32
2021-12-13 14:58:04 -08:00
Pierre Constantineau 9119a32a5d fixed row0 and added encoder pins 2021-12-13 13:31:00 -06:00
Tim Hawes a3c8760d41 Fix to error checking in espressif SSLSocket 2021-12-13 17:55:43 +00:00
Nathan Young ffd41cf2b7 Updated USB product name to remove duplication
Output from lsusb now reads: SparkFun Electronics Thing Plus - STM32
2021-12-13 18:01:07 +01:00
Nathan Young 463d94475b Use correct PID for SparkFun Thing Plus - STM32
This value was kindly provided by  brhoff720.
2021-12-13 17:37:02 +01:00
Dan Halbert bbe30514ef Fix other INTENCLR and INTENSET to write whole reg 2021-12-12 22:25:44 -05:00
Dan Halbert c06eee9841 Clear TAMPER interrupt properly; make keypad module table const 2021-12-12 22:00:08 -05:00
microDev 5939c11406
add secondary i2c singleton on adafruit_qtpy_rp2040 2021-12-11 23:14:22 +05:30
microDev b6858e4ca7
allow multiple board buses
Co-authored-by: Neradoc <neraOnGit@ri1.fr>
2021-12-11 23:07:21 +05:30
Pierre Constantineau 86ddecfd4f merge main and resolve conflict 2021-12-10 16:57:50 -06:00
Pierre Constantineau dac71e684d moved aliased boards down to actual builds 2021-12-10 16:34:06 -06:00
Pierre Constantineau a043f65352 adding Pykey family of boards 2021-12-09 23:25:48 -06:00
Scott Shawcroft 8c480832a7
Add generic CM4 board and update PIDs 2021-12-09 17:30:32 -08:00
Scott Shawcroft 6626319338
Add SPI support
It uses both SPI and AUX SPI peripherals
2021-12-09 17:30:03 -08:00
Michael Himing d72311f76a Update xiao rp2040 pins 2021-12-10 09:39:31 +11:00
Scott Shawcroft 5ea4082a18
Merge pull request #5664 from jpconstantineau/bluemicro833
Add Bluemicro833 as new nRF52833 board
2021-12-09 10:27:41 -08:00
Dan Halbert 3bdf2a5cde
Merge pull request #5691 from jepler/esp32s3-pids
Fix PIDs to match official espressif list
2021-12-09 09:08:35 -05:00
Jeff Epler 937e0740f4
Fix PIDs to match official espressif list
See the slightly deceptively titled
 * https://github.com/espressif/usb-pids/pull/29
2021-12-08 20:27:34 -06:00
Pierre Constantineau 7137f1b1c0 added never_reset to board_init 2021-12-08 17:29:53 -06:00
Pierre Constantineau 448a96ce1b added CIRCUITPY_IS31FL3741 = 0 2021-12-08 17:22:54 -06:00
Pierre Constantineau 53f4137d6f updated pin defs 2021-12-08 17:21:13 -06:00
Pierre Constantineau 4cad5beb90 minor udate to USB desc 2021-12-08 17:17:56 -06:00
Pierre Constantineau e946dcffff initial BlueMicro8333 Files 2021-12-08 17:17:56 -06:00
Scott Shawcroft b12d2063d0
Merge remote-tracking branch 'adafruit/7.1.x' into merge_7.1 2021-12-08 10:50:22 -08:00
Scott Shawcroft 3c8a05ebbf
Merge pull request #5673 from CytronTechnologies/add-maker-nano-rp2040-7.1.x
Add new board Maker Nano RP2040 to branch 7.1.x.
2021-12-08 10:33:57 -08:00
Scott Shawcroft bf08f62d37
Merge pull request #5683 from dhalbert/restore-bleio-hci-background
restore BLEIO HCI background task
2021-12-08 10:31:42 -08:00
Dan Halbert 7bcfbe30bf shrink some boards 2021-12-08 11:57:15 -05:00
ZodiusInfuser 3ea1619816
Merge branch 'adafruit:main' into tiny2mb 2021-12-08 16:51:47 +00:00
ZodiusInfuser 201fae8342
Added final USB PID 2021-12-08 16:48:32 +00:00
Scott Shawcroft 574039391e
Merge pull request #5665 from dhalbert/frequencyio-fix
add a frequencyin_reset() for VM restart
2021-12-07 13:44:06 -08:00
Scott Shawcroft ab4f789e9a
Fix Pi Zero 2 W build 2021-12-07 13:29:46 -08:00
Dan Halbert e0e3224253 forgot a check for BOARD_HAS_CRYSTAL 2021-12-07 15:42:31 -05:00
Dan Halbert 7e21344cf0 fix FrequencyIn for crystalless boards and simplify clock logic 2021-12-07 13:12:24 -05:00
Scott Shawcroft 92a4261ad5
Full UART support for RPI
This adds PL011 UART support which is more plentiful.

It also:
* Fixes PI4 build by including .dtb files on the SD card.
* Enables the activity LED as the status LED on PI4 and CM4 I/O.
* Adds that LED as board.LED.

Fixes #5650 and progress on #5629
2021-12-06 18:36:14 -08:00
Scott Shawcroft 121b22b0c5
Merge pull request #5666 from skerr92/add-odt-castaway2040
Add odt castaway2040
2021-12-06 14:44:33 -08:00
Scott Shawcroft e8e5ea7c2f
Merge pull request #5674 from jepler/esp32s3-box-display
esp32s3-box: enable display
2021-12-06 14:06:02 -08:00
Scott Shawcroft 8d406e006b
Merge pull request #5670 from dhalbert/fix-blacken-update-formatting-issues-7.1.x
minor .py changes due to blacken update - 7.1.x
2021-12-06 13:22:19 -08:00
Scott Shawcroft 309faee334
Merge pull request #5519 from jpconstantineau/seeduino-xiao-rp2040
Add New Board - Seeeduino XIAO RP2040
2021-12-06 13:08:22 -08:00
Jeff Epler 40d947cee3
Merge pull request #5655 from jepler/esp32s3-devkitc
Espressif: Add Esp32s3 devkitc board definitions
2021-12-06 12:47:04 -06:00
Jeff Epler 1b5e98e2fa
esp32s3 box: add display 2021-12-06 10:08:44 -06:00
Jeff Epler b722a2bca1
espressif: pwmout: get rid of not_first_reset special case 2021-12-06 10:08:44 -06:00
Jeff Epler fae6d47a45
espressif: keep never_reset_pins marked as in use 2021-12-06 10:08:44 -06:00