Commit Graph

466 Commits

Author SHA1 Message Date
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
Scott Gauche 92c9be9a4f change st_driver to use ST's github drivers as submodules 2022-02-02 21:30:23 -05:00
Scott Gauche 4e305aa39c Removed submodule st_driver 2022-02-02 19:51:23 -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
Neradoc b2c8fd3938 add board.STEMMA_I2C alias to some boards 2022-02-02 01:18:46 +01:00
Dan Halbert cc410ad6a3 common-hal I2C combined write_read 2022-01-31 22:03:30 -05: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
Jeff Epler 1d13c4ccd1
Centralize LONGINT_IMPL handling
This closes #5782
2021-12-27 10:21:47 -06: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
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 7bcfbe30bf shrink some boards 2021-12-08 11:57:15 -05:00
Dan Halbert 57c33059f3 board_deinit() everywhere 2021-11-30 11:00:10 -05:00
Timon a1052d5f73
Initial broadcom port for Raspberry Pi
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.

There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
  themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
  mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
  and unnecessary for the vast majority of builds.

Fixes #4314
2021-11-22 14:54:44 -08:00
Nathan Young 7afb4f1129 Temporary: Use same USB PID as the MicroMod STM32 2021-11-20 13:10:41 +01:00
Nathan Young 0ff3c0dac0 Board definition for SparkFun Thing Plus - STM32 2021-11-17 19:18:28 +01:00
Dan Halbert e7d9dc323b shrink kicksat-sprite, simmel, pyb_nano_v2 2021-11-10 21:12:41 -05:00
Jeff Epler 20cbd5e635 Disable bitmapio on some boards where it no longer fits 2021-11-08 18:58:33 -06:00
Scott Shawcroft bb71f8c9b3
Merge pull request #5544 from jepler/alphablend
bitmaptools: add alphablend
2021-11-08 10:50:03 -08:00
EmergReanimator 94866fc1e3
Merge branch 'adafruit:main' into stm 2021-11-07 14:19:54 +01:00
EmergReanimator a0074c36d8 Improved accuracy of common_hal_mcu_delay_us of STM port.
SysTick Current Value Register must be cleared before enabling.
2021-11-07 14:19:01 +01:00
Jeff Epler 4f62b540a2 Disable bitmaptools on thunderpack_v11 2021-11-05 15:18:41 -05:00
Jeff Epler b881aec4c5 disable gifio on meowbit 2021-10-26 14:24:11 -05:00
Jeff Epler 3e020a73a8 Disable gifio if no displayio & for small boards
Technically all gifio needs from displayio is the definition of
colorspaces, but let's just disable it for now.
2021-10-26 08:54:18 -05:00
Jeff Epler 414c2f9da6 Always use python3
.. similar to https://github.com/micropython/micropython/pull/4448
2021-10-15 15:11:21 -05:00