Commit Graph

7562 Commits

Author SHA1 Message Date
Max Holliday
7a703aaa64 adding comments 2021-10-02 15:00:18 -06:00
Max Holliday
433a901ffb
Merge branch 'adafruit:main' into samd-sleep-v1 2021-10-02 14:56:15 -06:00
microDev
8b5ea98271
minor updates for board microdev_micro_s2 2021-10-02 17:10:46 +05:30
Max Holliday
79cd10ac85 cleaning up TimeAlarm and PinAlarm 2021-10-01 17:36:04 -06:00
Max Holliday
cd28d50e7a
Merge branch 'adafruit:main' into samd-sleep-v1 2021-10-01 16:13:06 -06:00
microDev
26fbb4eb85
add esp32c3 documentation in readme 2021-10-01 01:26:05 +05:30
Phil Howard
2fc6a72cc7 PicoSystem: Add DisplayIO & Stage to board config
* Bring up PicoSystem's display with DisplayIO
* Add stage game library
* Add supporting modules - AUDIOIO and KEYPAD
2021-09-30 13:57:03 +01:00
Matthew McGowan
e54073b95b feat(swan_r5):bootloader build (UF2_BOOTLOADER=2) does not set the ISR vector table. 2021-09-29 20:40:37 -07:00
Bruce Segal
b3a46955ea Add AIThinker ESP32-C3S_Kit board 2021-09-29 18:52:16 -07:00
Max Holliday
d536be7228 working samd deep sleep timealarm and pinalarm (sketchy) 2021-09-29 11:44:15 -06:00
Matthew McGowan
1c1eb49b36 fix(swan_r5):revert changes to GPIO ports. While these ports are available on the L4R5, they aren't used. This fixes a build error on the stm32f412zg_discovery. 2021-09-28 18:52:03 -07:00
Matthew McGowan
9b179ffbe4 style(swan_r5): pre-commit whitespace style changes 2021-09-28 18:52:03 -07:00
Matthew McGowan
295cc18190 style(swan_r5): pre-commit whitespace style changes 2021-09-28 18:52:03 -07:00
Matthew McGowan
8a3fb7bd13 fix(swan_r5):fixes timer definitions in the array. Requires padding to match peripheral with interrupt handler index. 2021-09-28 18:52:02 -07:00
Matthew McGowan
7b7b4997a4 docs(swan_r5): misc comments/formatting 2021-09-28 18:52:02 -07:00
Matthew McGowan
599368373e feat(swan_r5): user button tested 2021-09-28 18:52:02 -07:00
Matthew McGowan
40c3b5c7e6 docs(swan_r5):todo cleanup 2021-09-28 18:52:02 -07:00
Matthew McGowan
88f6bb2cf2 chore(swan_r5):pwmio test 2021-09-28 18:52:02 -07:00
Matthew McGowan
9d27d249cf chore(swan_r5):tests used to smoke test the board functionality 2021-09-28 18:52:02 -07:00
Matthew McGowan
2a05b22f42 reworks memory map for flash 2021-09-28 18:52:02 -07:00
Brandon Satrom
48f67d007e feat: add Blues Swan R5 support
complete pin mapping for Feather pins

stubbed out files needed for complilation. still to be modified

0 out all CPY modules in mpconfigboard.mk until we get the build running

add csv for pin generation for STM32L4R5

add F4R5 references in peripherals files

refactored out board files BECAUSE I AM AN IDIOT; add L4 series system clocks file from CubeMX

took a guess at the number of USB endpoint pairs to get the build done

guess was close, but wrong. It is 8

clean up peripheral DEFs

Fixes build error:
```
In file included from ../../py/mpstate.h:33,
                 from ../../py/mpstate.c:27:
../../py/misc.h: In function 'vstr_str':
../../py/misc.h:196:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
 static inline char *vstr_str(vstr_t *vstr) {
 ^~~~~~
```
Sleuthing steps:
* verify that the feather_stm32f4_express board builds correctly
* put a `#error` at the bottom of the `mpstate.c` file.
* build for the feather and swan boards, with V=2 to capture the build command for that file.
* use a differencing tool to inspect the differences between the two invocations
* inspecting the differences, I saw a missing `-mcpu=cortex-m4` I tested by adding that to the Swan build command. The file built fine (stopping at the hard error, but no other warnings.)

A grep through the sources revealed where this flag was being set for the stm ports.

With this commit, the build gets further, but does not complete. The next exciting episode in this unfolding coding saga is just a commit away!

working build with minimal set of modules for the Blues Swan r5

chore:change header copyright name to Blues Wireless Contributors

USB operational.  Fixed up clocks to be hardwired for LSE no HSE case. (Trying to combine HSE in there made the code much more complex, and I don't have a board to test it out on.)

USART working

adds support for `ENABLE_3V3` and `DISCHARGE_3V3` pins.  I am surprised that pin definitions are quite low-level and don't include default direction and state, so the code currently has to initialize `ENABLE_3V3` pin as output.  The LED takes over a second to discharge, so I wonder if the board startup code is not having the desired affect.

short circuit implementation of backup memory for the STM32L4

all the ports

remove company name from board name to be consistent with the Arduino board definition.

add default pins for I2C, SPI and UART, so that `board.I2C` et al. works as expected.  Confirmed I2C timing.

fix board name

fix incorrect pin definition. add test to allow manual check of each output pin

analog IO

code changes for WebUSB. Doesn't appear to work, will revisit later.

ensure that `sys.platform` is available

checkin missing file

feat: make room for a larger filesystem so the sensor tutorial will fit on the device.

fix:(stm32l4r5zi.csv): merged AF0-7 and AF8-15 into single lines and removed extraneous headers mixed in with the data.

fix(parse_af_csv.py): pin index in the csv is 0 not 1, and AF index made 1 larger

chore(Swan R5): update peripherals pins from `parse_af_csv.py` output

optimize flash sector access
2021-09-28 18:52:02 -07:00
microDev
317751bd79
add board microdev_micro_c3 2021-09-29 00:14:00 +05:30
Scott Shawcroft
fab27f6be6
Merge pull request #5394 from microDev1/c3-port
Add initial esp32c3 support
2021-09-28 10:31:11 -07:00
Scott Shawcroft
aa52d726de
Merge pull request #5395 from PontusO/main
Added Challenger RP2040 LTE board.
2021-09-27 11:19:28 -07:00
Feyn
ed18c1f2b8
Fix a critical "typo"
Current compiled downloads are unusable because MICROPY_QSPI_CS is defined as the wrong pin
2021-09-26 13:47:05 +02:00
Pontus Oldberg
5649887d34 Added support for the Challenger NB RP2040 WiFi board. 2021-09-26 07:54:07 +02:00
Pontus Oldberg
7d002478ef Added Challenger RP2040 LTE board. 2021-09-26 07:15:30 +02:00
microDev
3da86b0ac2
add initial esp32c3 support 2021-09-26 09:39:40 +05:30
microDev
bd997dd67e
Merge pull request #5388 from microDev1/serial-over-uart
Fix espressif serial over uart
2021-09-26 09:30:08 +05:30
Pontus Oldberg
6e296999d6 Fixed incorrect pin definitions. 2021-09-25 16:19:48 +02:00
microDev
1be6c41da4
fix espressif serial over uart 2021-09-25 09:03:24 +05:30
Jeff Epler
10fdc80b9c
Merge pull request #5378 from jepler/esp32s2-paralleldisplay-i2s
Espressif: Use i2s peripheral for parallel LCD displays
2021-09-23 20:25:43 -05:00
Jeff Epler
a97e46be66 espressif: Fix ParallelBus clock speed
The observed does not match the datasheet, so go with what was
observed.
2021-09-23 14:12:59 -05:00
Jeff Epler
3f4bbc5aff Fix number of LCD data pins 2021-09-23 13:37:30 -05:00
Michael Thomson
94ca3f594e Enable CS "active-high" device support
Reference https://github.com/adafruit/Adafruit_CircuitPython_BusDevice/issues/71

Add a new parameter cs_active_value for devices that require CS to use "active high" logic.

Update mpconfigboard.mk to disable pyb_nano_v2 from core build as its flash is too small now.
2021-09-23 09:14:39 +01:00
Jeff Epler
4714861f38 espressif: Implement parallel display using i2s 2021-09-21 14:38:12 -05:00
Jeff Epler
2f1ac44d78 add files from espressif/esp-dev-kits@ec03a13333 2021-09-21 14:38:05 -05:00
Scott Shawcroft
276d425899
Merge pull request #5302 from maholli/pycubed_v05c
updating pycubed firmware for mainboardv05
2021-09-20 15:00:25 -07:00
Scott Shawcroft
48866dd3e7
Merge pull request #5367 from microDev1/refactor-esp-port
Update espressif port
2021-09-20 14:59:27 -07:00
Scott Shawcroft
58eda2e0e8
Merge pull request #5350 from microDev1/ci-docs-split
CI: Build docs dynamically
2021-09-20 14:53:40 -07:00
Pierre Constantineau
c5672066d0 initial xiao kb config 2021-09-20 15:52:28 -06:00
Dan Halbert
8e63a2e6c0
Merge pull request #5368 from skerr92/add-ODT-bread-2040
Add ODT Bread 2040
2021-09-20 17:13:23 -04:00
Dan Halbert
951ea46de1
Added CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
This is a recent addition to add `board.board_id` and `board.__name__`.
2021-09-20 16:52:16 -04:00
leoli51
a980f8f743 added missing board config file 2021-09-19 16:09:17 +02:00
leoli51
761b1dbf12 merged commits from main 2021-09-19 15:51:43 +02:00
Seth Kerr
de55073eea Add ODT Bread 2040 2021-09-18 10:45:02 -06:00
microDev
7dda3ec91c
switch to IDF_TARGET for soc dependent stuff
Co-authored-by: Seon Rozenblum <seon@unexpectedmaker.com>
2021-09-18 19:49:32 +05:30
microDev
dcfde14bf9
move pins and sdkconfig into soc specific directories 2021-09-18 19:47:18 +05:30
microDev
eb0738fb33
update esp-idf to v4.3.1 2021-09-18 19:44:14 +05:30
microDev
1536ec0123
rename left over esp32s2 to espressif 2021-09-18 19:42:18 +05:30
leoli51
bb424c7510 renamed folder and added neopixel gpio 2021-09-18 16:05:13 +02:00
microDev
be3fca81e7
fix espidf docs 2021-09-17 21:27:18 +05:30
Max Holliday
0f8cb5618f
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-16 12:12:36 -06:00
Max Holliday
4eda8b04c4 removing redudant pycubed v04 board defs 2021-09-16 12:12:15 -06:00
Dan Halbert
a5dc0fef5f Revert #5341. Does not work on power-cycle. 2021-09-16 11:59:43 -04:00
Max Holliday
1ccaeeb619
adding back heritage pycubed board defs 2021-09-15 14:36:27 -06:00
Max Holliday
4f10a91f85 moving boot counter to main() and re-adding old pin names for SD_CS 2021-09-15 14:33:54 -06:00
Max Holliday
5b69aa0a58
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-15 14:23:56 -06:00
microDev
e91fb247a3
build docs dynamically 2021-09-16 00:05:42 +05:30
Scott Shawcroft
3cc4f25a1c
Merge pull request #5337 from hathach/tinyusb-compliance-stm-imxrt-esp32
update tinyusb to have esp32sx, stm32 and imxrt passed compliance test suite
2021-09-14 22:40:13 -07:00
Dan Halbert
9e8c6b2bab Shrink pca10100 some more 2021-09-14 21:37:30 -04:00
Dan Halbert
02dc0481c5 shrink stm32f411ve_discovery 2021-09-14 19:50:46 -04:00
Dan Halbert
59b1bedcda
Merge pull request #5333 from microDev1/patch
Make `next_code_allocation` and `prev_traceback_allocation` movable
2021-09-14 19:27:40 -04:00
Scott Shawcroft
dfba2ee26e
Merge pull request #5342 from tannewt/rename_esp32s2_to_espressif
Rename esp32s2 port to espressif
2021-09-14 16:23:14 -07:00
Dan Halbert
0ab4df6f2f shrink some SAMD21 builds, and nrf simmel 2021-09-14 17:10:49 -04:00
Dan Halbert
81e28308c2 Revert "turn off inline-unit-growth and max-inline-insns-auto uses"
This reverts commit 94d76e0f48.
2021-09-14 16:56:04 -04:00
microDev
8520c430a7
Merge pull request #5341 from urish/patch-1
Enable WFI for raspberrypi port
2021-09-14 22:10:02 +05:30
Dan Halbert
94d76e0f48 turn off inline-unit-growth and max-inline-insns-auto uses 2021-09-14 12:15:21 -04:00
Scott Shawcroft
973a90f2aa
Rename esp32s2 port to espressif
This is in preparation for ESP32-S3 support and potentially others.

Related to #4363
2021-09-13 16:44:55 -07:00
Dan Halbert
650ce17c0d
Fix formatting 2021-09-13 19:12:21 -04:00
Uri Shaked
e5290a2886
Enable WFI for raspberrypi port
See #5331 for details
2021-09-14 01:09:15 +03:00
Scott Shawcroft
64ff8d9e19
v3 BLE file service: Add file modification times 2021-09-13 14:46:14 -07:00
Scott Shawcroft
5d90991745
Trade RAM for flash on pca10100 2021-09-13 12:04:27 -07:00
microDev
cddbfffb38
Merge pull request #5335 from skieast/espressif_hmi_v1.1_pins_update
Update pins.c to match hmi devkit board
2021-09-13 16:23:02 +05:30
Kamil Tomaszewski
a0d960f2a1 spresense: update SDK to 2.3.0 2021-09-13 11:04:15 +02:00
Bruce Segal
c4bea28446 Update pins.c to match hmi devkit board 2021-09-12 17:54:44 -07:00
Max Holliday
dbd557dc89 splitting pycubed board def into pycubed_v04 and pycubed_v05 2021-09-11 20:29:40 -06:00
Max Holliday
d9ae2c00b4
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-11 20:09:59 -06:00
Dan Halbert
f5bb53e112
Merge pull request #5329 from dhalbert/prox-trinkey-squeeze
proxlight: Freeze adafruit_apds9960 instead of adafruit_hid; enable usb_midi
2021-09-10 18:17:42 -04:00
Max Holliday
bc26194bd0
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-10 13:33:11 -06:00
Dan Halbert
aa1d089cdb proxlight: Freeze adafruit_adps9960 instead of adafruit_hid; enable usb_midi 2021-09-10 14:50:09 -04:00
Dan Halbert
189efdf074 Use NO_PIN, not 0, for PDMIn unset pins.
Also:
- Use NO_PIN, not 0xff for I2SOut (cosmetic fix only; no actual functional change)
- Add VOLTAGE_MONITOR/BATTERY, ACCELEROMETER_INTERRUPT pins for LED Glasses Driver
2021-09-10 13:18:29 -04:00
Scott Shawcroft
0ee0ed7035
Merge pull request #5320 from rjp5th/main
Implement reset_reason for raspberrypi port
2021-09-09 10:54:14 -07:00
Pontus Oldberg
647eca6a81 Added support for Challenger RP2040 WiFi 2021-09-09 17:36:56 +02:00
microDev
09859a60e7
Merge pull request #5319 from tannewt/fix_nrf_gcc11
Fix the nRF builds with GCC 11.2
2021-09-09 09:09:34 +05:30
Max Holliday
fa83c1c2f9
adding boot counter to main.c
The boot counter is a uint8_t single-byte counter stored in the first NVM byte position (`micrcontroller.nvm[0]`). The counter increments by 1 each time the board boots, regardless if it's a hard or soft reset. 

Enable the boot counter by adding `#define CIRCUITPY_BOOT_COUNTER 1` to your board's mpconfigboard.h file. Note that an error will be thrown during the build if `CIRCUITPY_INTERNAL_NVM_SIZE` is not also set within mpconfigboard.h.
2021-09-08 19:56:23 -06:00
Max Holliday
5d29caf499
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-08 19:37:06 -06:00
Scott Shawcroft
2b4fdcdfa2
Fix scanning after a peripheral bond has been made
The BLE workflow will be advertising and the scan's load of
identities conflicts with it. This change ensures scanning and
advertising happens exclusively.

This showed as an unknown error 3204.

Fixes https://github.com/adafruit/Adafruit_CircuitPython_BLE/issues/134
2021-09-08 16:58:53 -07:00
Robert Pafford
65f8804816
Implement reset_reason for raspberrypi port 2021-09-08 18:34:34 -04:00
Scott Shawcroft
f2de010059
Fix the nRF builds with GCC 11.2
See adafruit/Adafruit_nRF52_Bootloader#221
for background on the flag.
2021-09-08 12:53:39 -07:00
Kattni
2ea330581d
Merge pull request #5310 from dhalbert/rsp2040-i2s-fix
Fix RP2040 I2S: always copy to output buffer
2021-09-07 18:18:30 -04:00
Scott Shawcroft
a5ac5e1efb
Merge pull request #5297 from durapensa/s2mini
Lolin S2 Mini - remove NeoPixel, pin assignments to match Wemos
2021-09-07 14:11:21 -07:00
Dan Halbert
d2d0bd289f Fix RP2040 I2S: always copy to output buffer 2021-09-07 16:35:42 -04:00
Max Holliday
674a3027fc
updating pycubed firmware for mainboardv05 :) 2021-09-04 18:39:24 -06:00
Durapensa
7e10785ec7 Lolin S2 Mini - fix EOF issue caught by pre-commit 2021-09-03 16:46:50 -04:00
durapensa
2fc372b9e1
Lolin S2 Mini - Apply suggestions from code review
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-09-03 15:10:22 -04:00
Neradoc
8625e53817 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
Durapensa
15fc44cab7 Lolin S2 Mini fix typo in pin assignment 2021-09-03 12:20:07 -04:00
Durapensa
32b9450e7f Lolin S2 Mini removed some redundant comments 2021-09-03 12:14:59 -04:00
Durapensa
c0f039da29 Lolin S2 Mini added pin definitions from Wemos/Lolin D1 Mini 2021-09-03 12:08:38 -04:00
Durapensa
ef6d7fe731 Lolin S2 Mini change 'Espressif' references to 'Wemos' 2021-09-03 10:17:44 -04:00
Durapensa
765eee424e Lolin S2 Mini added I2C & SPI defs from Espressif MicroPython 2021-09-03 10:08:38 -04:00
Durapensa
ec20b2a02e Merge branch 'main' of github.com:adafruit/circuitpython into s2mini 2021-09-03 09:26:47 -04:00
Durapensa
762c15535f Lolin S2 Mini pin assignment changes 2021-09-03 09:12:14 -04:00
Scott Shawcroft
3508b01ed9
Merge pull request #5294 from tannewt/patch-1
Add FeatherS2 Neo from Unexpected Maker
2021-09-02 12:44:27 -07:00
Scott Shawcroft
bf5e8bf20b
Use Espressif PID 2021-09-02 10:17:38 -07:00
Scott Shawcroft
a78cc7a22c
Merge pull request #5293 from microDev1/patch
Make `aesio` module full build dependent
2021-09-02 09:34:53 -07:00
microDev
d526925d49
make aesio module full build dependent 2021-09-02 19:02:01 +05:30
Seon Rozenblum
9bfa2a416d Added STAGE support for my TinyS2 board 2021-09-02 18:09:08 +10:00
Seon Rozenblum
24859ed596 Added support for my new FeatherS2 Neo esp32s2 board 2021-09-02 15:01:52 +10:00
Scott Shawcroft
57e4b78340
Merge pull request #5284 from tannewt/linking_fixes
Two fixes, one for ble workflow, one for linking
2021-09-01 15:21:33 -07:00
Scott Shawcroft
cf0899487f
Merge pull request #5237 from jepler/hmi
Add Espressif's HMI DevKit
2021-09-01 13:49:58 -07:00
Scott Shawcroft
0d280fa83c
Two fixes, one for ble workflow, one for linking
BLE workflow had an incorrect list size for characteristics

Linking didn't advance . link it should have without extra ().
2021-09-01 12:43:43 -07:00
Scott Shawcroft
9557ca89f2
Update USB PID 2021-09-01 10:50:48 -07:00
Scott Shawcroft
b80ffee105
Merge pull request #5268 from hathach/nrf-usb-compliance-test
Update tinyusb for USB Compliance Verification test
2021-09-01 10:48:35 -07:00
Scott Shawcroft
9c4c3e1780
Only sort .text for nrf 2021-09-01 08:57:18 -07:00
Damien George
25f30eb8a6 stm32/boards/LEGO_HUB_NO6: Add comment re constraints on SPI flash cfg.
Signed-off-by: Damien George <damien@micropython.org>
2021-09-02 00:03:41 +10:00
Bruce Segal
bec7a6265a Change name VBAT_SENSE -> BATTERY 2021-08-31 19:52:40 -07:00
Scott Shawcroft
0cffa6be81
Sort .text section to reduce fill on nRF 2021-08-31 19:33:44 -07:00
Scott Shawcroft
cd5acae4f4
Sort .text section to reduce fill 2021-08-31 18:04:01 -07:00
Bruce Segal
736b592d2d Add IO9 / VBAT_SENSE to lilygo-t8-s2-st7789 2021-08-31 16:50:50 -07:00
Scott Shawcroft
771b4c7464
Add two space saving knobs
* Reduce the number of supported HID reports of IDs per descriptor.
  This saves ~200 bytes in the default HID objects.
* (Not enabled) Compute QSTR attrs on init. This trades 1k RAM for
  flash. Flash is the default (1).
2021-08-31 13:02:34 -07:00
Scott Shawcroft
cc0a6c8a5f
Merge remote-tracking branch 'adafruit/main' into fix_nrf_wdt_crashes 2021-08-31 11:03:44 -07:00
Damien George
35ead0ff0f javascript/Makefile: Change variable to EXPORTED_RUNTIME_METHODS.
EXTRA_EXPORTED_RUNTIME_METHODS is deprecated.

Signed-off-by: Damien George <damien@micropython.org>
2021-09-01 00:42:40 +10:00
microDev
513ca098f9
Merge pull request #5273 from tannewt/fix_nrf_light_sleep_cdc
Fix nrf light_sleep when on usb
2021-08-31 13:29:04 +05:30
microDev
1dbeed87af
Merge pull request #5253 from tannewt/fix_nrf_gpiote_crash
Fix GPIOTE crashes by checking everything is ok
2021-08-31 09:11:36 +05:30
David Lechner
86371781e9 tools/uncrustify: Force 1 newline at end of file.
To keep things neat and tidy, we ensure that each file has 1 and only 1
newline at the end of each file.

Signed-off-by: David Lechner <david@pybricks.com>
2021-08-31 13:14:45 +10:00
Scott Shawcroft
6ef5241f59
Merge pull request #5267 from pewpew-game/meowbit-stage
stm32: Add support for Stage games to Meowbit
2021-08-30 18:35:41 -07:00
Scott Shawcroft
5fb4fa6f12
Merge pull request #5260 from jepler/paralleldisplay
Split out paralleldisplay to its own module
2021-08-30 18:35:15 -07:00
Scott Shawcroft
fa9c2189d4
Fix nrf light_sleep when on usb
Don't let pending serial input wake us up

Fixes #5257
2021-08-30 18:26:12 -07:00
Scott Shawcroft
a4246bcfa3
Fix two watchdog crashes
Fixes a crash from trying to raise an exception when trying to
deinit a RESET wdt by not raising an exception.

Fixes a crash when raise a wdt exception in the REPL when waiting
for input. We now catch and print any exceptions raised.

Fixes #5261
2021-08-30 18:10:43 -07:00
Scott Shawcroft
3ea90dbc1e
Merge pull request #5263 from jepler/printf-0xp
Include leading 0x on addresses printed with %p
2021-08-30 18:00:43 -07:00
Scott Shawcroft
838d30b3a4
Fix incorrect macros 2021-08-30 14:40:14 -07:00
Scott Shawcroft
8fbb3e6d25
Merge pull request #5239 from durapensa/s2mini
Add board Lolin S2 Mini
2021-08-30 14:12:56 -07:00
Scott Shawcroft
eabceb9fce
Fix builds without alarm 2021-08-30 14:09:36 -07:00
Radomir Dopieralski
89fc1890af stm32: Add support for Stage games to Meowbit
This enables the _stage library and adds stage and ugame modules to the
frozen modules, so that all Stage games should work.

I had to do several hacks:

* Since displayio.release_displays doesn't release the pins, I couldn't
  re-initialize the display inside the ugame module. Instead I changed
  the default display initialization for the board to match what Stage
  expects.

* I wanted to make the MENU key works as K_Z, but when I try to use it
  with the keypad module, I get "pin in use" error. So for now only the
  A and B buttons are used.
2021-08-30 20:27:50 +02:00
Damien George
6f19b9c08d stm32/boards/LEGO_HUB_NO6: Add make commands to backup/restore firmware.
Signed-off-by: Damien George <damien@micropython.org>
2021-08-31 00:16:39 +10:00
Damien George
bac791c5fd stm32/boards/LEGO_HUB_NO6: Skip first 1MiB of SPI flash for storage.
The first 1MiB is used by the built-in bootloader and is best left as-is.

Signed-off-by: Damien George <damien@micropython.org>
2021-08-31 00:16:39 +10:00
Damien George
e3eed26d0b stm32/boards/LEGO_HUB_NO6: Change SPI flash storage to use hardware SPI.
Signed-off-by: Damien George <damien@micropython.org>
2021-08-31 00:16:39 +10:00
Damien George
6936f410ab stm32/storage: Make extended-block-device more configurable.
A board can now define the following to fully customise the extended block
device interface provided by the storage sub-system:
- MICROPY_HW_BDEV_BLOCKSIZE_EXT
- MICROPY_HW_BDEV_READBLOCKS_EXT
- MICROPY_HW_BDEV_WRITEBLOCKS_EXT
- MICROPY_HW_BDEV_ERASEBLOCKS_EXT

Signed-off-by: Damien George <damien@micropython.org>
2021-08-31 00:16:39 +10:00
Patrick Van Oosterwijck
a66bd7a489 esp32/boards: Add GENERIC_C3_USB board with USB serial/JTAG support.
Add a new board type for ESP32-C3 revision 3 and up that implement the USB
serial/JTAG port on pin 18 and 19.  This variant uses the USB serial for
programming and console, leaving the UART free.

- Pins 18 and 19 are correctly reserved for this variant.  Also pins 14-17
  are reserved for flash for any ESP32-C3 so they can't be reconfigured
  anymore to crash the system.
- Added usb_serial_jtag.c and .h to implement this interface.
- Interface was tested to work correctly together with webrepl.
- Interface was tested to work correctly when sending and receiving
  large files with ampy.
- Disconnecting terminal or USB will not hang the system when it's
  trying to print.
2021-08-31 00:12:41 +10:00
Durapensa
80cadc6ec1 Added Espressif-assigned PID for "Lolin S2 Mini - CircuitPython" 2021-08-30 06:31:20 -04:00
lady ada
d50dc064ee fix i2c 2021-08-29 17:53:57 -04:00
Jeff Epler
68af5fd040 unix: Filter out -std=gnu11
On Debian Bullseye, it is an error to include this flag when building
a C++ file, which caused the unix coverage build to fail.
2021-08-29 11:36:17 -05:00
Jeff Epler
d7193dcf7c remove debug print 2021-08-29 11:36:17 -05:00
Jeff Epler
8f024316ad explicitly disable paralleldisplay on a few boards 2021-08-29 07:33:54 -05:00
Jeff Epler
468558896c remove paralleldisplay from ports where it was unimplemented 2021-08-29 07:33:54 -05:00
Jeff Epler
7520feed1c Move ParallelBus to its own module 2021-08-29 07:33:54 -05:00
iabdalkader
a3ce8f08ec rp2/mpconfigport.h: Allow boards to add root pointers. 2021-08-29 12:22:50 +10:00
iabdalkader
79baef843b rp2/CMakeLists.txt: Add option to enable double tap reset to bootrom.
* For boards a with reset switch, pressing twice resets into bootloader.
* Enabled by linking with the pico_bootsel_via_double_reset library.
2021-08-29 12:20:01 +10:00