Commit Graph

624 Commits

Author SHA1 Message Date
Scott Shawcroft fcde108d03
Merge pull request #6194 from jepler/revamp-duplicate-usb-check
Improve the USB vid:pid duplicate checker
2022-03-24 14:57:48 -07:00
jerryneedell bcec1e44f0 add status LED to nrf pca10059 dongdle 2022-03-24 15:05:02 -04:00
Jeff Epler d91ca7369c
Merge remote-tracking branch 'origin/main' into revamp-duplicate-usb-check 2022-03-24 09:44:41 -05:00
Jeff Epler a07ac72cc5
Improve the USB vid:pid duplicate checker
To me, it made more sense to track which boards go together in a cluster;
when reviewing a request to actually use a duplicate vid/pid, you want
to know what board(s) it is aliasing.

I also revamped the detection of non-USB boards so that a board .mk file
that couldn't be parsed by the code here would raise a problem instead
of just being skipped for the purposes of checking.

There were some lines with comments on the end, and some variation in
capitalization of the IDs. These are all normalized and a (sometimes
unfriendly!) error printed when it's incorrect.

Before this, here were some ways to trick the duplicate vid/pid checker:
```
USB_PID = 0XABCD
USB_PID = 0xAbCd
USB_PID = 0xABCD # harmless comment?
```
None of these things were ever done on purpose.
2022-03-24 09:42:11 -05:00
Pontus Oldberg c7b28eb2ef
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:49 +01:00
Pontus Oldberg d26297ae98
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:40 +01:00
Pontus Oldberg 7901850bb8
Update ports/nrf/boards/challenger_840/pins.c
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:28 +01:00
Pontus Oldberg 5e09ed611e Added Challenger 840 board. 2022-03-22 21:36:54 +01:00
Neradoc 367e0ea901 Enable rgb status LED on MakerDiary USB Dongle 2022-03-22 20:53:12 +01:00
Scott Shawcroft 51701e6abe
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2 2022-03-17 14:15:55 -07:00
Scott Shawcroft 78cb61c7a3
Turn off traceback on bluemicro833 2022-03-17 11:38:27 -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 4ffbf0830b
Merge pull request #6157 from arms22/ssci_isp1807_micro_board
Add board ssci_isp1807_micro_board
2022-03-15 13:42:34 -07:00
arms22 2b4917bbf5 change USB_PID 2022-03-15 14:54:29 +09:00
arms22 7482148a78 Add board ssci_isp1807_micro_board 2022-03-15 14:39:32 +09:00
arms22 b671ba81b9 Add board ssci_isp1807_dev_board 2022-03-15 14:29:24 +09:00
Scott Shawcroft a719fabbb6
Shrink bluemicro833 build 2022-03-11 16:04:12 -08: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 c2434782c4 Seeed_XIAO_nRF52840_Sense: remove redundant MICROPY_HW_LED_STATUS 2022-03-03 10:18:58 +11:00
Michael Himing 661140ebcc Add missing BOARD_DICT_STANDARD_ITEMS to two boards 2022-03-03 09:03:34 +11:00
Michael Himing 9ad50dfefb Seeed_XIAO_nRF52840_Sense: Enable rgb status LED 2022-03-02 22:34:01 +11:00
gamblor21 edee8e3409 disable on some boards 2022-02-21 00:47:05 -06:00
Scott Gauche 309f4fb2b9 add half_duplex false param to spi construct function call in some board files 2022-02-08 22:59:26 -05:00
Neradoc b2c8fd3938 add board.STEMMA_I2C alias to some boards 2022-02-02 01:18:46 +01:00
Michael Himing c92c8ac184 Only enable is31fl3741 for led glasses board
Also fix a warning in is31fl3741
2022-02-01 09:45:50 +11:00
jerryneedell 9c31346c45 fix implmetation 2022-01-25 16:42:49 -05:00
jerryneedell 70512758a9 enable binascii in microbit_v2 build 2022-01-25 16:06:47 -05:00
0hotpotman0 9b9dd97e00 add softdev_version 7.0.1 2022-01-17 14:49:11 +08:00
0hotpotman0 86a482f520 add ble stack 7.3.0 version for complie the uf2 flie 2022-01-10 11:05:06 +08:00
Damien George df3f59ca4b ports: Update board.json files to link to new board images.
Signed-off-by: Damien George <damien@micropython.org>
2022-01-07 11:33:28 +11: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
0hotpotman0 0cbbfadad9 Correct the pin name and add the monitor battry function 2021-12-24 18:51:26 +08: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
Asura 7b2980ead2
fix missing pintout.
fix missing pintout p20 & p21 for makerdiary_nrf52840_mdk_usb_dongle.
2021-12-15 09:57:26 +08: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
Dan Halbert 57c33059f3 board_deinit() everywhere 2021-11-30 11:00:10 -05:00
gamblor21 f7df39ef88 Re-enable on microbit v2 2021-11-23 13:20:00 -06:00
gamblor21 6d412e20c4 Disabling from some boards 2021-11-20 14:04:49 -06:00
Dan Halbert e7d9dc323b shrink kicksat-sprite, simmel, pyb_nano_v2 2021-11-10 21:12:41 -05:00
Jeff Epler 63e01cde77 we decided not to add rainbowio on simmel 2021-11-02 19:01:05 -05:00
Jeff Epler 18eaee9beb reenable RAINBOWIO on these boards 2021-11-01 12:52:13 -05:00
Mike Causer 7f14344428 ports: Add images, features and urls to board.json. 2021-10-28 15:25:38 +11:00
Jim Mussared e359b077dd ports: Add board.json for all boards.
This will be used by https://micropython.org/download/ to generate the
full listing of boards and firmware files.

Optionally supports a board.md for additional customisation of the
download page, as well as deploy.md for flashing instructions.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-10-27 14:04:53 +11:00
Pierre Constantineau 002383691c changing MICROPY_HW_BOARD_NAME from Dongle to DK 2021-10-07 21:57:04 -06:00
Pierre Constantineau ed68e1f047 fix pre-commit trailing whitespace 2021-10-06 17:46:30 -06:00
Pierre Constantineau 79e68a7404 adding battery monitoring pins to M60 2021-10-06 17:41:49 -06: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
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 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
Dan Halbert 0ab4df6f2f shrink some SAMD21 builds, and nrf simmel 2021-09-14 17:10:49 -04:00
Scott Shawcroft 5d90991745
Trade RAM for flash on pca10100 2021-09-13 12:04:27 -07: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
Neradoc 8625e53817 change board dicts to include a common macro with __name__ 2021-09-03 21:03:55 +02:00
microDev d526925d49
make aesio module full build dependent 2021-09-02 19:02:01 +05:30
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 9c4c3e1780
Only sort .text for nrf 2021-09-01 08:57:18 -07:00
Scott Shawcroft 0cffa6be81
Sort .text section to reduce fill on nRF 2021-08-31 19:33:44 -07:00
lady ada d50dc064ee fix i2c 2021-08-29 17:53:57 -04:00
Jeff Epler c174b7c7e7
Merge pull request #5229 from warmbit/warmbit_bluepixel
add warmbit_bluepixel
2021-08-27 06:48:34 -05:00
Neradoc 1302ef62f7 rebase, add adafruit_led_glasses_nrf52840 2021-08-26 23:18:44 +02:00
Neradoc 4d05bb26bf change board.ID to board.board_id 2021-08-26 23:11:55 +02:00
Neradoc b14b294516 add board.ID 2021-08-26 23:11:55 +02:00
WarmBit da644bebb3 add warmbit_bluepixel 2021-08-25 15:16:59 -06:00
Dan Halbert c0c9892887 Add adafruit_led_glasses_nrf52840 2021-08-25 11:29:31 -04:00
Dan Halbert fa9a98d96c
Merge pull request #5206 from microDev1/patch
Turn off `synthio` on `pca10100`
2021-08-23 16:20:10 -04:00
microDev 533eab5b7f
turn off `synthio` on `pca10100` 2021-08-23 23:33:55 +05:30
Jeff Epler 379461df7d Deprecate Display's constructor arg set_vertical_scroll 2021-08-23 09:17:59 -05:00
Scott Shawcroft e0ce5ff045
Fix some builds by disabling exfat 2021-08-18 08:22:29 -07:00
Dan Halbert 064e086570 correct some status LED pin defns per #5161 2021-08-17 09:33:34 -04:00
Scott Shawcroft 0632a1e681
Merge pull request #5060 from cdwilson/cdwilson/circuitpython/sparkfun-stm32f405-micromod
stm/boards: Add support for SparkFun STM32 MicroMod Processor board.
2021-08-11 12:19:16 -07:00
Chris Wilson e741330ca8 Consistent pin naming for SparkFun MicroMod processor boards. 2021-08-09 23:10:52 -07:00
Pierre Constantineau aec965e6d9 changed PID as suggested by Scott 2021-08-09 15:25:06 -06:00
Pierre 7d02fd42f8 removed trailing spaces at end of pins.c 2021-08-08 21:56:24 -06:00
Pierre 1a7cad6562 removed trailing spaces in pins.c 2021-08-08 21:43:03 -06:00
Pierre b1d5b50551 fromatting updates to pins.c 2021-08-08 21:38:23 -06:00
Pierre 9de8045dca foromatting updates to pins.c 2021-08-08 21:31:07 -06:00
Pierre 45d4058981 adding initial files for BlueMicro840 Board 2021-08-08 21:25:54 -06:00
Glenn Ruben Bakke 55d4321c3e nrf/boards: Enable MICROPY_VFS_LFS2 for all target boards.
Enable LittleFS v2 for all targets, except nrf51 targets when SoftDevice is
present.
2021-08-08 23:17:55 +10:00
Glenn Ruben Bakke ffc636de2f nrf/boards: Set FROZEN_MANIFEST blank when SD present on nrf51 targets. 2021-08-08 23:17:55 +10:00
Glenn Ruben Bakke 3b594f7b27 nrf/boards/common.ld: Calculate unused flash region.
Calculate the unused flash area on the target device.  The values will be
exposed by _unused_flash_start and _unused_flash_length.  The start address
and the length are not aligned to either word or pages.
2021-08-08 23:09:26 +10:00
Dan Halbert 81833035fc raytac_mdbt50q-rx 2021-08-04 15:47:19 -04:00
Kattni fc59a7ac02
Merge pull request #5068 from dhalbert/remove-gamepad
remove gamepad; deprecate gamepadshift
2021-07-27 11:35:06 -04:00
Dan Halbert b0fb709d83 more gamepad removal 2021-07-26 23:34:25 -04:00
Dan Halbert 901a6c27c0 remove gamepad; deprecate gamepadshift 2021-07-26 22:15:09 -04:00
Dan Halbert 11ca505fdb add board.LED wherever possible 2021-07-26 19:57:12 -04:00
Scott Shawcroft 70cbb4eddb
Support multiple status neopixels
Use the 10 neopixels on the playgrounds for status.

Fixes #5039
2021-07-23 15:17:09 -07:00
Scott Shawcroft 0fadf028ef
Create first BLE-only board, Micro:Bit v2
This fixes build issues with USB off, tweaks the README to allow
for BLE-only boards and adds the Micro:Bit v2 definition.

Fixes #4546
2021-07-14 09:55:51 -07:00
Scott Shawcroft 3940878695
Shrink builds and handle 0-length writes 2021-07-01 12:49:11 -07:00
David Lechner ca920f7218 py/mpstate: Make exceptions thread-local.
This moves mp_pending_exception from mp_state_vm_t to mp_state_thread_t.
This allows exceptions to be scheduled on a specific thread.

Signed-off-by: David Lechner <david@pybricks.com>
2021-06-19 09:43:44 +10:00
Dan Halbert 04b69cde9b turn off gamepad on most builds;turn off keypad where appropriate 2021-06-17 13:46:45 -04:00
Dan Halbert 4655a71793 Turn off keypad on some builds to avoid overflow 2021-06-15 14:11:04 -04:00
Bruno Martins ea2d83e961 nrf/boards: Add support for evk_nina_b3 board. 2021-05-18 12:14:57 +10:00