Commit Graph

490 Commits

Author SHA1 Message Date
Dan Halbert
8bb369cac5 refactor debug UART to console UART; get working on ESP32 2022-06-30 23:16:46 -04:00
Scott Shawcroft
562c73bcc7
Merge pull request #6458 from blues/swan_r5_3v3_enable
fix(swan_r5): 3v3 was enabled but then immediately reset.
2022-06-21 13:56:58 -07:00
Matthew McGowan
019a160983 exposes DigitalInOutPin instances on the board, initialized and reserved. 2022-06-20 14:46:58 -07:00
Matthew McGowan
beafbc7c60 enable RTC for all STM32 devices 2022-06-10 17:37:33 -07:00
Matthew McGowan
6ee8e00936 fix(stm32): correct include path after translation header was moved 2022-06-10 17:37:33 -07:00
Matthew McGowan
a889638468 feat(swan_r5): adds a basic RTC implementation. 2022-06-10 17:37:32 -07:00
Dan Halbert
80ae14202a
Merge pull request #6416 from FoamyGuy/display_brightness_pwm
display brightness pwm 500hz frequency
2022-06-05 23:52:42 -04:00
foamyguy
260994d16e Merge branch 'main' into display_brightness_pwm 2022-06-04 11:32:15 -05:00
foamyguy
cbff9dd8e3 add new argument for all boards with built-in display 2022-06-04 11:08:20 -05:00
Scott Shawcroft
be67067809
Merge remote-tracking branch 'adafruit/main' into translate_header 2022-06-03 15:18:18 -07:00
Matthew McGowan
78e4b9446b chore(swan_r5): pre-commit formatting 2022-06-03 15:12:41 -07:00
Matthew McGowan
113b070e77 fix(swan_r5): 3v3 was enabled but then immediately reset. Moved initialization to reset_board which happens after reset_all_pins. 2022-06-03 14:19:47 -07:00
EmergReanimator
e8dd5d35d6 # WARNING: head commit changed in the meantime
Fixed STM SPI frequency settings.

Corrected default frequency settings in common_hal_busio_spi_construct.
Fixed common_hal_busio_spi_get_frequency.
2022-05-29 16:13:38 +02:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO 2022-05-27 12:59:54 -07:00
Matthew McGowan
321163da1a feat(swan_r5): blink the LED on startup. set VUSB_SELECT and DISCHARGE to floating to avoid any potential issues with them being outputs. 2022-05-25 14:22:19 -07:00
Matthew McGowan
65a5ad09ab feat(swan_r5): define an ext attribute on the board, which contains attributes for the extended set of castellated pins 2022-05-25 14:21:03 -07:00
Matthew McGowan
5bbaa3b732 feat(swan_r5): the upper 1MB of flash (bank 2) is made available for the filesystem 2022-05-25 14:19:35 -07:00
Matthew McGowan
b607631ae1 feat(swan_r5): UF2 support, with UF2 family IDs assigned to stm32 chipsets. 2022-05-25 14:18:37 -07:00
Dan Halbert
1fb210bd40
Merge pull request #5491 from pypewpew/remove-gamepadshift
Remove gamepadshift module
2022-05-25 13:58:06 -04:00
Radomir Dopieralski
c0152e7dab Remove gamepadshift module
Everything should be using the keypad module instead.

Note: there are several boards that still had gamepadshift enabled. I
did not contact their authors to make sure they already switched to
keypad in their code and documentation. We should probably wait with
merging this for their go ahead.
2022-05-25 00:48:55 +02:00
Paint Your Dragon
e9b9f0b13f
Correctly scale analog reading per issue #4794 2022-05-24 08:42:00 -07:00
Dan Halbert
f63b26c534 address jepler's comments and further squeezes 2022-05-20 10:10:55 -04:00
Dan Halbert
a01dec1df9 message consolidation and more use of validators 2022-05-19 15:38:37 -04:00
Dan Halbert
28b14e05e3 shrink thunderpack_v12 2022-05-13 15:45:12 -04:00
Michael Wisslead
e63a327107 Bound PulseIn start indexes to maxlen. 2022-04-28 02:28:34 +00:00
Dan Halbert
4eeaf41edc test and adjust NeoPixel timings on multiple products 2022-04-25 23:12:24 -04:00
Dan Halbert
3885bc9018
Merge pull request #6303 from DavePutz/issue_4452
Fix for issue #4452 - time.sleep on STM
2022-04-22 13:34:31 -04:00
root
289aaae954 Fix for issue #4452 - time.sleep on STM 2022-04-21 17:05:44 -05:00
Mark
8ed7b114cd
Merge branch 'main' into uzlib-module 2022-04-03 11:48:37 -05:00
gamblor21
7b586e077c Removed from small boards 2022-04-02 12:22:14 -05:00
Scott Shawcroft
ee4c501936
Merge remote-tracking branch 'adafruit/main' into c3_serial_jtag 2022-03-23 12:17:02 -07:00
Scott Shawcroft
2fa182147b
Fix STM non-F4 builds 2022-03-22 23:07:38 -07:00
Scott Shawcroft
f5d90fc84f
Switch to port_serial_* hooks
This makes it easier to integrate port specific serial alongside
the common approaches.
2022-03-22 19:40:33 -07:00
Scott Shawcroft
4363361c87
Board definition clean up
Removes:
* AUTORESET_DELAY_MS which never did anything but was introduced
  somehow.
* CIRCUITPY_BOOT_BUTTON in all but one ESP board because they all have
  them. There is a default based on the strapping pins.
* BOARD_USER_SAFE_MODE_ACTION because it was all the same for boards
  with boot buttons. Now the safe mode code manages the message.
2022-03-21 17:58:43 -07:00
Scott Shawcroft
dcc3ec171e
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2 2022-03-15 13:56:11 -07:00
Scott Shawcroft
32ac396a41
Further refine autoreload
This unifies the delay into the post-run delay that also waits
for user input and fake sleep. This ensures we always delay.
Previous code would only delay if the code.py was running when
autoreload was triggered. Now it will always delay.

We also now suspend autoreload when a USB write starts and then
resume on completion. This should prevent reloading in between
sectors of a single write.
2022-03-14 16:49:30 -07:00
Dan Halbert
6465d81918
Update ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h
whoopsies

Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-03-09 13:33:54 -05:00
Dan Halbert
9b2e22a6df Make autoreload checking more robust
- Add reset for autoreload. De-request ticks.
- Separate state a little more in autoreload.c
- Rename some routines.
- Remove redundant settings of CIRCUITPY_AUTORELOAD_DELAY_MS.
2022-03-09 11:07:55 -05:00
Scott Shawcroft
83593a1558
Start of USB host API
This allows you to list and explore connected USB devices. It
only stubs out the methods to communicate to endpoints. That will
come in a follow up once TinyUSB has it. (It's in progress.)

Related to #5986
2022-03-07 18:07:25 -08:00
Michael Himing
661140ebcc Add missing BOARD_DICT_STANDARD_ITEMS to two boards 2022-03-03 09:03:34 +11:00
Scott Gauche
46129e327d add stm32f412cx micro to cpy 2022-02-26 16:53:30 -05:00
gamblor21
edee8e3409 disable on some boards 2022-02-21 00:47:05 -06:00
Scott Gauche
6827586d33 add setting SPI CLK pin pull up/down based on SPI polarity config 2022-02-19 08:46:02 -05:00
EmergReanimator
4e0bd4a27f Fixed pre-commit script issues. 2022-02-13 08:46:24 +01:00
EmergReanimator
69aa0b4edb Fixed lost UART data.
Use non-blocking HAL call to allow reception of data over UART while
transmission is active.
2022-02-12 18:51:21 +01:00
Scott Gauche
a8d8651873 Canonical C style for half_duplex = true/false 2022-02-08 23:13:22 -05:00
Scott Gauche
3b418dbddc change half_duplex to be on spi construct 2022-02-08 21:37:38 -05:00
Scott Gauche
4110b44b8a add support for half-duplex SPI on STM parts 2022-02-07 21:08:44 -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