Commit Graph

633 Commits

Author SHA1 Message Date
Dan Halbert
947f564672 tune LTO on nrf 2022-05-26 22:16:41 -04:00
Dan Halbert
d74193c298 Use -flto and -flto-partition only as needed 2022-05-26 11:36:41 -04:00
Jim Mussared
f67ac90fa9 nrf: Make port-specific modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-18 20:57:09 +10:00
Jim Mussared
0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable.
This replaces occurences of

    foo_t *foo = m_new_obj(foo_t);
    foo->base.type = &foo_type;

with

    foo_t *foo = mp_obj_malloc(foo_t, &foo_type);

Excludes any places where base is a sub-field or when new0/memset is used.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-03 22:28:14 +10:00
Neradoc
17bba7b17d remove Adafruit_CircuitPython_BusDevice from frozen modules, it's built in now 2022-04-19 06:49:11 +02:00
Dan Halbert
2693a4cfe1
Merge pull request #6069 from gamblor21/uzlib-module
zlib Module
2022-04-06 12:06:44 -04:00
Pontus Oldberg
286e26edf0 Added support for 4MB flash. 2022-04-06 11:08:22 +02:00
Mark
8ed7b114cd
Merge branch 'main' into uzlib-module 2022-04-03 11:48:37 -05:00
Pontus Oldberg
f2d10237d2
Merge branch 'adafruit:main' into main 2022-03-30 16:43:39 +02:00
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