Jeff Epler
23bd2496de
stm32: canio: remove some unneeded declarations
2020-10-06 20:11:43 -05:00
Jeff Epler
7df01d3fbd
stm32: canio: enable on all stm32f405 boards
2020-10-06 20:11:39 -05:00
Jeff Epler
01e9e355ce
canio: implement for stm32f405
...
The has successfully run my loopback self-test program for CAN,
which tests transmission, reception, and filtering. The 1M baud rate setting
was also verified on saleae to be accurate.
2020-10-06 20:11:35 -05:00
Scott Shawcroft
8c428a3bdd
Merge pull request #3492 from hierophect/esp32-update-idf
...
ESP32S2: move to official IDF submodule
2020-10-06 16:53:32 -07:00
Lucian Copeland
d5c8e55769
Add AnalogIO
2020-10-06 15:13:50 -04:00
Lucian Copeland
68cb384f8f
Remove logging from shared-bindings, fix translations, revert config target macro
2020-10-06 13:29:12 -04:00
Lucian Copeland
f90eb23db1
Merge branch 'esp32-update-idf' into esp32-analogin
2020-10-06 12:52:40 -04:00
Lucian Copeland
0d7552b67e
Update ESP-IDF to newer fixed fork
2020-10-06 12:48:28 -04:00
Seon Rozenblum
5c00ba8592
Removed hardware APA settings from mpconfigboard.h because they make the APA flicker on boot. I need to look into why, but I don't think they are being used for anything right now anyway.
2020-10-06 07:40:20 +11:00
hierophect
e93a274f2f
Merge branch 'main' into esp32-analogin
2020-10-05 13:02:42 -04:00
Lucian Copeland
0467a82880
Fix/remove various style issues
2020-10-05 13:00:42 -04:00
Lucian Copeland
a8dfae58d9
Add ADC calibration module support
2020-10-01 17:17:39 -04:00
Scott Shawcroft
d62ac24493
Merge pull request #3469 from jepler/noreturn
...
Add some NORETURN attributes
2020-10-01 11:18:36 -07:00
Scott Shawcroft
2ad54f8413
Merge pull request #3463 from UnexpectedCircuitPython/UM_S2_Boards
...
Updated UM FeatherS2 boards
2020-10-01 10:56:55 -07:00
Lucian Copeland
9a3bd82f40
Update TinyUSB include compatibility
2020-10-01 13:19:54 -04:00
Lucian Copeland
0bbd067a17
Revert ADC calibration removal, complete merge
2020-10-01 13:06:48 -04:00
Lucian Copeland
c624c1e838
Merge branch 'esp32-update-idf' into esp32-analogin
2020-09-30 16:51:19 -04:00
Lucian Copeland
e01e8dd6b9
Revert HAL refactor changes to avoid USB breaking changes past esp-idf dde6222cd
2020-09-30 16:36:13 -04:00
Scott Shawcroft
a739d314f1
Add Metro ESP32S2
...
Also fix two bugs:
* Crash when resetting board.SPI when it hasn't been inited.
* Reading back the output value is always false. Fixes #3353
2020-09-30 12:57:39 -07:00
Scott Shawcroft
7f803c0b51
Merge pull request #3489 from astrobokonon/esp32s2-fixconnection
...
ESP32S2: Enter station mode before connecting
2020-09-30 12:16:15 -07:00
Scott Shawcroft
5ac3c36d64
Merge pull request #3450 from mdroberts1243/New_quirk_for_SH1107
...
New quirk for sh1107
2020-09-30 12:03:10 -07:00
Scott Shawcroft
a09a158ddc
Fix trailing line
2020-09-30 11:36:51 -07:00
Lucian Copeland
66b8559fd4
Change submodule, rework all includes
2020-09-30 11:26:07 -04:00
Jeff Epler
c129c8f296
Merge remote-tracking branch 'origin/main' into canbus-api-changes
2020-09-29 20:15:11 -05:00
Seon Rozenblum
819b5faa71
Removed ProS2 board files for now
2020-09-30 10:23:54 +10:00
Seon Rozenblum
4b1a7d812e
Updated UM boards
2020-09-30 10:16:24 +10:00
Seon Rozenblum
a2a0aa058f
Updated UM boards
2020-09-30 10:13:05 +10:00
Ryan T. Hamilton
2f6d7c9002
Make sure you're a STA before connecting
2020-09-29 13:41:56 -07:00
Jeff Epler
2bb44f6c4d
Merge pull request #3486 from microDev1/fixTranslate
...
Update make translate script
2020-09-29 14:32:49 -05:00
Jeff Epler
611f81ac1a
canio: actually drop the _error_count properties
...
thanks @tannewt
2020-09-29 14:25:53 -05:00
microDev
4c7d9e3aaf
Update make translate script
2020-09-29 11:14:30 +05:30
Jeff Epler
d4ee440a91
Merge pull request #3475 from tannewt/esp_uf2
...
Reorganize sdkconfigs and release UF2s
2020-09-28 20:39:37 -05:00
Ryan T. Hamilton
2a4a244245
Add ap_ssid and ap_bssid
2020-09-28 17:25:09 -07:00
Jeff Epler
dd6e7f5a8a
mimxrt10xx: Add required header for NORETURN definition
2020-09-28 18:56:01 -05:00
Jeff Epler
1dbb59271c
esp32: Use esp_restart from reset_to_bootloader; redeclare it NORETURN
2020-09-28 18:56:01 -05:00
Jeff Epler
726dcdb60a
Add some NORETURN attributes
...
I have a function where it should be impossible to reach the end, so I put in a safe-mode reset at the bottom:
```
int find_unused_slot(void) {
// precondition: you already verified that a slot was available
for (int i=0; i<NUM_SLOTS; i++) {
if( slot_free(i)) {
return i;
}
}
safe_mode_reset(MICROPY_FATAL_ERROR);
}
```
However, the compiler still gave a diagnostic, because safe_mode_reset was not declared NORETURN.
So I started by teaching the compiler that reset_into_safe_mode never returned. This leads at least one level deeper due to reset_cpu needing to be a NORETURN function. Each port is a little different in this area. I also marked reset_to_bootloader as NORETURN.
Additional notes:
* stm32's reset_to_bootloader was not implemented, but now does a bare reset. Most stm32s are not fitted with uf2 bootloaders anyway.
* ditto cxd56
* esp32s2 did not implement reset_cpu at all. I used esp_restart(). (not tested)
* litex did not implement reset_cpu at all. I used reboot_ctrl_write. But notably this is what reset_to_bootloader already did, so one or the other must be incorrect (not tested). reboot_ctrl_write cannot be declared NORETURN, as it returns unless the special value 0xac is written), so a new unreachable forever-loop is added.
* cxd56's reset is via a boardctl() call which can't generically be declared NORETURN, so a new unreacahble "for(;;)" forever-loop is added.
* In several places, NVIC_SystemReset is redeclared with NORETURN applied. This is accepted just fine by gcc. I chose this as preferable to editing the multiple copies of CMSIS headers where it is normally declared.
* the stub safe_mode reset simply aborts. This is used in mpy-cross.
2020-09-28 18:55:56 -05:00
Ryan T. Hamilton
7b7ef8edde
Merge branch 'main' of https://github.com/adafruit/circuitpython into esp32s2-morenet
2020-09-28 16:50:02 -07:00
Ryan T. Hamilton
66d55738c1
Enable DNS info
2020-09-28 16:49:20 -07:00
mdroberts1243
b1e1237887
Merge branch 'main' into New_quirk_for_SH1107
2020-09-28 19:40:47 -04:00
Jeff Epler
f4e36fc7f6
CAN: Use mp_obj_t insteaed of canio_message_obj_t, get rid of rtr field
2020-09-28 17:22:00 -05:00
Jeff Epler
3e97e9c4be
canio: Listener: shuffle function declarations around
2020-09-28 17:22:00 -05:00
Jeff Epler
48bda589b8
Listerner: read -> receive, drop readinto
...
This prepares for creating a separate RemoteTransmissionRequest class
2020-09-28 17:22:00 -05:00
Jeff Epler
79ca430ddf
Match: address -> id
2020-09-28 17:22:00 -05:00
Scott Shawcroft
abdbbf9e24
One grep
2020-09-28 15:10:12 -07:00
Lucian Copeland
128b4a013b
Add non-calibrated ADC
2020-09-28 12:11:08 -04:00
Anson He
96323ac3ac
Default power on Wio Terminal's 40 Pin
2020-09-27 10:21:25 +08:00
Ryan T. Hamilton
b9968ea801
Merge branch 'main' of https://github.com/adafruit/circuitpython into esp32s2-morenet
2020-09-26 13:37:14 -07:00
Jeff Epler
791d20f16c
give qtpy haxpress its own USB PID
2020-09-26 11:45:53 -05:00
Jeff Epler
9944935fde
qtpy haxpress: enable RTC
2020-09-26 11:33:10 -05:00
Mark Roberts
22a7696fac
Changes take 2: missed ugame10 board
2020-09-25 22:17:59 -04:00
Mark Roberts
b921543571
Requested changes take 1
2020-09-25 21:27:29 -04:00
Jeff Epler
eadb4de144
qtpy_m0_haxpress: add
2020-09-24 16:58:24 -05:00
Scott Shawcroft
dd86cb00ad
Merge pull request #3448 from hierophect/esp32-sd-fix
...
ESP32S2 - Fix SPI's SD card issue, add pin protections
2020-09-23 12:30:01 -07:00
Scott Shawcroft
bcabf5e019
Merge pull request #3457 from ladyada/qtpy_m0
...
fix pins for rev C
2020-09-23 11:31:28 -07:00
Lucian Copeland
00517b2600
Move missing pin warning to shared-bindings
2020-09-23 11:39:39 -04:00
lady ada
9db7625717
neopix is default on!
2020-09-23 11:19:01 -04:00
lady ada
5384479a61
fix pins for rev C
2020-09-22 23:28:23 -04:00
Scott Shawcroft
98185e914b
Merge pull request #3425 from jepler/canbus
...
canio: Initial implementation for SAM E5x MCUs
2020-09-22 12:39:52 -07:00
Jeff Epler
59580d0f2d
canio: Fix implementation bugs in atmel-sam
2020-09-22 09:36:29 -05:00
microDev
add230b4da
Update port.c
2020-09-22 11:37:12 +05:30
Ryan T. Hamilton
a77966a736
Try to reuse/share existing objects
2020-09-21 21:36:46 -07:00
Ryan T. Hamilton
2fa269ccbc
Additional error handling
2020-09-21 20:56:03 -07:00
Jeff Epler
4869dbdc67
canio: rename from _canio
...
This reflects our belief that the API is stable enough to avoid incompatible changes during 6.x.
2020-09-21 16:44:26 -05:00
Jeff Epler
9e8f1820c8
canio.CAN: switch rx/tx, make both mandatory, move declarations around
2020-09-21 16:44:26 -05:00
Jeff Epler
4e4853dcb2
common.template.ld: remove unneeded line
2020-09-21 16:44:26 -05:00
Jeff Epler
df379b84cb
remove unneeded symbols
2020-09-21 16:44:26 -05:00
Jeff Epler
7fd6cab2ac
canio: Make both tx and rx (but not both) optional
...
.. loopback and silent come from the (optional) constructor parameters
not guessing based on the pin specification
.. docstring & comment improvements
2020-09-21 16:44:26 -05:00
Jeff Epler
09f8a83a75
samd: template.ld: put canram in its own output section
2020-09-21 16:44:26 -05:00
Jeff Epler
a76119afcb
add _canio to Feather M4 CAN
2020-09-21 16:44:26 -05:00
Jeff Epler
67d8f108bb
Add CAN to SAM E51 clock config
2020-09-21 16:44:26 -05:00
Jeff Epler
44c5b2bbb1
Respond to review comments
...
Thanks @tannewt!
2020-09-21 16:44:26 -05:00
Jeff Epler
58b920ed97
fix whitespace
2020-09-21 16:44:26 -05:00
Jeff Epler
27cbb690e5
_canio: Add listener matching
...
Lightly tested:
* no matches (catch-all)
* standard address single address matches (even and odd positions)
* standard address mask matches
* only tested that extended doesn't match non-extended
2020-09-21 16:44:26 -05:00
Jeff Epler
635fcadb59
_canio.CAN: add error handling & bus state
2020-09-21 16:44:26 -05:00
Jeff Epler
a2e1867f69
_canio: Minimal implementation for SAM E5x MCUs
...
Tested & working:
* Send standard packets
* Receive standard packets (1 FIFO, no filter)
Interoperation between SAM E54 Xplained running this tree and
MicroPython running on STM32F405 Feather with an external
transceiver was also tested.
Many other aspects of a full implementation are not yet present,
such as error detection and recovery.
2020-09-21 16:44:26 -05:00
Jeff Epler
183649aad8
samd: move mcu_find_pin_function to header
...
.. it'll be used in can as well as sdio
2020-09-21 16:44:07 -05:00
Lucian Copeland
22d9a94f2b
Use write_value, add missing pin exceptions
2020-09-21 13:47:14 -04:00
Scott Shawcroft
c963771b4b
Merge pull request #3445 from microDev1/boardInfo
...
Update microS2 config files
2020-09-21 10:33:38 -07:00
microDev
40ec7a66e4
Update microS2 config files
2020-09-21 14:39:31 +05:30
Jeff Epler
ce266425e1
Merge pull request #3441 from hierophect/stm32-rgbmatrix-crashfix
...
STM32: Add never_reset reservation to RGBMatrix init
2020-09-20 07:51:09 -05:00
Ryan T. Hamilton
bc8863a3c7
Simplify now that I have it working
...
still need to figure out the bound method business
2020-09-19 21:04:07 -07:00
Ryan T. Hamilton
04ffd0dca0
Add gateway, subnet, and rssi info for current connected AP
...
ap_rssi is a bound method, which I'm not keen on, but it works
2020-09-19 13:38:04 -07:00
Dan Halbert
9cc803eb95
Merge pull request #3432 from bd34n/rename-bdmicro-vina-m0-d21
...
Rename board bdmicro_vina_m0 to bdmicro_vina_d21 and update boardfiles.
2020-09-19 13:41:21 -04:00
Dan Halbert
b28b31196d
Merge pull request #3438 from nitz/patch-1
...
[Makerdiary nRF52840 M.2 Devkit] Add SDA & SDL, RX & TX to pins.c
2020-09-18 21:51:22 -04:00
Dan Halbert
dfd09bba57
Merge pull request #3433 from astrobokonon/esp32s2-bssid
...
ESP32S2: Allow connecting to specific bssid
2020-09-18 21:31:15 -04:00
Dan Halbert
8cf0171c06
Merge pull request #3431 from hierophect/stm32-spi-writevalue
...
STM32: Change SPI Read to acknowledge write_value
2020-09-18 19:46:21 -04:00
Dan Halbert
5116375604
Merge pull request #3436 from jepler/fix-spi-sercom4
...
samd: SPI: improve conditional code
2020-09-18 19:14:39 -04:00
Dan Halbert
23dd7c7c96
Merge pull request #3435 from jepler/fix-sdhc1
...
sdioio: fix code for the case where there is no SDHC1
2020-09-18 17:10:59 -04:00
nitz
8d6a28a9ff
Update user button names.
2020-09-18 17:01:44 -04:00
Dan Halbert
550b42e4d3
Merge pull request #3434 from jepler/same54-disable-cpu-voltage
...
sam e54: disable microcontroller.cpu.voltage
2020-09-18 15:20:43 -04:00
nitz
5249a228a0
More pin names cleanup.
2020-09-18 14:27:00 -04:00
Lucian Copeland
3a59d30e1a
Remove timer debug messages
2020-09-18 12:48:15 -04:00
Lucian Copeland
c58bd4c047
Add never_reset reservation to RGBMatrix init
2020-09-18 12:38:15 -04:00
nitz
db078922e4
Removed TXD/RXD, fixed whitespace.
2020-09-17 21:32:19 -04:00
Chris Dailey
be3e478fce
Add SDA & SDL, RX & TX to pins.c
...
Despite the [silk on the dock board](https://wiki.makerdiary.com/nrf52840-m2-devkit/resources/nrf52840_m2_devkit_hw_diagram_v1_0.pdf ), the SDA/SCL pins weren't defined. Though, they were already defined in `mpconfigboard.h`.
Same for RX/TX. It looks like it declared `TXD` and `RXD`, so I didn't want to remove those, but I think it makes sense to have the "standard" pin names, but I moved ithem to illustrate they were all referencing the same pins.
I mimicked the whitespace I saw in the metro_nrf52840_express port.
2020-09-17 20:46:59 -04:00
Jeff Epler
45eec5b5a5
samd: SPI: improve conditional code
...
I recently misdiagnosed a "maybe-uninitialized" diagnostic as a bug in
asf4. However, the problem was in our SPI code.
A special case for samr21 MCUs was being applied to same54p20a and possibly
other D5x/E5x MCUs, since the check was simply for pin PC19 existing at all.
Change the check to use the macro PIN_PC19F_SERCOM4_PAD0 which is only
defined if special function F of pin PC19 is SERCOM4 PAD0.
Reorganize the code a little bit so that brace-matching in editors is
not confused by the conditionalized code, including an unrelated change
for APA102_SCK's condition.
Revert the change to the Makefile that incorrectly attempted to silence
the diagnostic.
2020-09-17 18:30:22 -05:00
Jeff Epler
c73182803d
sdioio: fix code for the case where there is no SDHC1
...
.. it doesn't really make a difference (the old code created an empty
else{} statement) but this is more correct.
2020-09-17 18:29:31 -05:00
Jeff Epler
1b29ceaf1a
sam e54: disable microcontroller.cpu.voltage
...
This hangs, and the usual workarounds didn't work.
2020-09-17 18:27:43 -05:00
Scott Shawcroft
17bdc969db
Reorganize sdkconfigs and release UF2s
2020-09-17 16:01:23 -07:00
Ryan T. Hamilton
1805e92038
Add else case for non-bssid usage
2020-09-17 15:04:27 -07:00
Scott Shawcroft
7f60ebd6c7
Merge pull request #3426 from tannewt/esp_flash_sizes
...
Add partition layouts for 8 and 16 MB as well.
2020-09-17 13:27:58 -07:00
Scott Shawcroft
4b827b25ad
Merge pull request #2966 from sommersoft/ci_check_vid_pid
...
Automate USB VID/PID Uniqueness Check
2020-09-17 11:48:46 -07:00
Scott Shawcroft
9cf9441ba6
Merge pull request #3393 from tannewt/fix_spi_psram
...
Add non-DMA SPI support.
2020-09-17 11:11:56 -07:00
Scott Shawcroft
78338ac12b
Merge pull request #3417 from hierophect/esp32s2-readme
...
ESP32S2: Add Readme
2020-09-17 10:58:17 -07:00
Ryan T. Hamilton
1e3241ec6d
Merge branch 'main' into esp32s2-bssid
2020-09-16 17:15:01 -07:00
Ryan T. Hamilton
daa1dd278d
connect now accepts bssid
2020-09-16 16:25:17 -07:00
Brian Dean
81ee874531
pins.c: fix trailing whitespace
2020-09-16 16:40:04 -04:00
Brian Dean
847d609ddc
rename board bdmicro_vina_m0 to bdmicro_vina_d21 and update boardfiles appropriately
2020-09-16 16:27:24 -04:00
Scott Shawcroft
c55deb54f0
Merge pull request #3427 from usini/muselab_nanoesp32_s2
...
Added board - Muselab nanoESP32-S2
2020-09-16 12:23:41 -07:00
Lucian Copeland
00ee94d24b
Add SPI memset, optional flags
2020-09-16 14:22:18 -04:00
Scott Shawcroft
fb90daa0ff
Merge pull request #3422 from askpatrickw/rtc-support
...
RTC enabled
2020-09-16 11:12:00 -07:00
askpatricw
18285f96e8
RTC is pickd up automatically
2020-09-16 10:13:07 -07:00
Dan Halbert
d774678a0f
Merge pull request #3369 from kamtom480/camera
...
Add camera module
2020-09-16 12:29:58 -04:00
Lucian Copeland
478a4b6405
Clarify location of port root
2020-09-16 10:51:08 -04:00
Jeff Epler
1fc797132a
Merge pull request #3237 from DavePutz/issue3216
...
Issue#3216 - Needed an alternate way to check if background tasks were run
2020-09-16 08:47:33 -05:00
Kamil Tomaszewski
61687c81d8
camera: Pass width and height to take_picture()
2020-09-16 13:55:57 +02:00
Rémi Sarrailh
c06aeda399
Add Muselab nanoesp32 s2 definition
2020-09-16 13:10:01 +02:00
Ryan T. Hamilton
fead60d2d8
Add BSSID to Network
2020-09-15 23:32:53 -07:00
Scott Shawcroft
2bd169ec32
Add partition layouts for 8 and 16 MB as well.
2020-09-15 18:12:06 -07:00
Scott Shawcroft
95e27bb8bf
Add more PIDs for unique boards
2020-09-15 13:43:35 -07:00
askpatricw
bd381e434f
Revert "code review feedback"
...
This reverts commit f9f614b3a2
.
2020-09-15 13:02:26 -07:00
askpatricw
f9f614b3a2
code review feedback
2020-09-15 11:28:31 -07:00
askpatricw
8fcdc7da16
RTC enabled
2020-09-14 23:24:44 -07:00
Dan Halbert
3c6af94fb3
Merge pull request #3384 from jepler/feather_m4_can
...
atmel-samd: add same51, feather_m4_can
2020-09-14 23:57:51 -04:00
Jeff Epler
067a975875
update submodules to merge commits
2020-09-14 17:22:30 -05:00
DavePutz
2a2a8d6457
Merge pull request #28 from adafruit/main
...
Merge from adafruit/main
2020-09-14 16:50:40 -05:00
Lucian Copeland
3640ef2b7f
Fix toctree, incorrect flash port assumptions
2020-09-14 17:37:55 -04:00
Lucian Copeland
6ecfdda580
Add Readme
2020-09-14 13:18:51 -04:00
DavePutz
2eca4ee902
Update PulseIn.c
2020-09-14 11:04:45 -05:00
Lucian Copeland
e504438fd2
Remove unlicensed file, fix reset pin type check
2020-09-14 11:58:13 -04:00
DavePutz
c014ac3089
Reworked check for input taking too long
2020-09-14 10:54:57 -05:00
Lucian Copeland
ecc219fe50
Merge remote-tracking branch 'upstream/main' into esp32-displayio-fix
2020-09-14 10:44:31 -04:00
Kamil Tomaszewski
ce7ee58e92
camera: Update camera module
2020-09-14 13:12:20 +02:00
Kamil Tomaszewski
c2fc592c2c
camera: Change API
2020-09-14 13:11:15 +02:00
Kamil Tomaszewski
143a1ff94a
spresense: change the GC to do 32-byte blocks
2020-09-14 13:11:15 +02:00
Kamil Tomaszewski
1fde8ef9bc
spresense: Add support for camera
2020-09-14 13:11:15 +02:00
Jeff Epler
b3bdd4686b
PacketBuffer: add missing 'break's, remove unneeded {}
2020-09-13 15:10:38 -05:00
Jeff Epler
af24c8ae06
Merge remote-tracking branch 'origin/main' into implicit-fallthrough-diagnostic
...
Conflict in locale/circuitpython.pot resolved with 'make translate'
2020-09-13 14:21:21 -05:00
Jeff Epler
73ad78ed1b
Merge pull request #3395 from microDev1/safeMode
...
Add esp32s2 safe mode support & fix user_safe_mode output
2020-09-13 14:18:59 -05:00
Jeff Epler
90f7340bfc
move implicit-fallthrough warning enable to defns.mk
2020-09-13 13:13:09 -05:00
microDev
36da92075b
Update safe mode reason
2020-09-13 22:57:24 +05:30
microDev
5deac8d249
Update board specific safe mode message
2020-09-13 18:22:40 +05:30
lady ada
2fac4851a5
fix typo, tested hardware, neopixel doesnt work tho
2020-09-12 19:56:13 -04:00
lady ada
6fff4ec00d
cutie variant
2020-09-12 19:00:26 -04:00
Jeff Epler
01fdd9598a
disable iimplicit-fallthrough warning inside asf4
...
.. there is an instance of it that looks like a "true positive", but it only
affects sdhc transfers that are not a multiple of 4 bytes, which I don't think
happens. (sd card blocks are always 512 bytes) I can fix this in our
asf4 repo but that would mean this should be deferred until after #3384 is
merged, since that also touches asf4 very invasively by adding a whole new
chip family.
2020-09-12 17:48:42 -05:00
Jeff Epler
5729097bc4
atmel-samd: enable build error for implicit fallthrough
...
If any diagnostics occur, we will want to either add `/* FALLTHROUGH */`
or `break;` as appropriate. I only tested a few builds (trinket m0
and metro m4 express)
2020-09-12 15:11:29 -05:00
microDev
4da478382d
Fix serial console output & add more boards
2020-09-12 17:46:52 +05:30
microDev
305bed6d9e
Added esp32s2 safe_mode & fixed user_safe_mode
2020-09-11 21:06:54 +05:30
Jeff Epler
cacb0124ac
feather_m4_express: Use quad data mode on flash
...
Limor confirmed that the all shipping revisions starting with Rev D had QSPI flash chips installed.
Note that when neither EXTERNAL_FLASH_QSPI_SINGLE nor EXTERNAL_FLASH_QSPI_DUAL is specified quad mode is assumed, so this is addressed by removing the setting altogether.
2020-09-10 20:20:21 -05:00
Scott Shawcroft
c7c90f47b0
Add non-DMA SPI support.
...
This fixes SPI with PSRAM allocated buffers. DMA with SPI2 was
attempted but produced junk output. This manual copy is less than
2x slower than DMA when not interrupted.
Fixes #3339
2020-09-10 17:32:20 -07:00
Scott Shawcroft
9e722c8c99
Merge pull request #3375 from DavePutz/issue3296
...
Correction for Issue #3296 - ble hanging on nrf52840
2020-09-10 12:36:17 -07:00
Scott Shawcroft
e5dd2a32f4
Merge pull request #3388 from jerryneedell/jerryn_rfm69
...
freeze rfm69 and bus_device libraries into feather_m0_rfm69
2020-09-10 11:49:37 -07:00
Scott Shawcroft
683462c1b1
Merge pull request #3326 from tannewt/native_wifi
...
Add native wifi API with ESP32S2 support
2020-09-10 11:20:44 -07:00
Jerry Needell
2529ee2359
freeze rfm69 and bus_device libraries int feather_m0_rfm69
2020-09-09 14:54:20 -04:00
Lucian Copeland
be199983c1
Merge remote-tracking branch 'upstream/main' into esp32-displayio-fix
2020-09-09 13:24:30 -04:00
Scott Shawcroft
99f5011d74
Fix heap without PSRAM. Never set heap_size.
2020-09-08 17:06:09 -07:00
Jeff Epler
b49099c8f3
additional asf4 updates
2020-09-08 15:31:13 -05:00
Jeff Epler
e066448e36
atmel-samd: add same51, feather_m4_can
...
This is compile-tested, and requires updates in the related submodules:
https://github.com/adafruit/samd-peripherals/pull/35
https://github.com/adafruit/asf4/pull/37
This should not be merged until those can also be merged.
2020-09-08 13:06:45 -05:00
microDev
14af8e4b42
Added temp_sensor_stop
...
Co-authored-by: hierophect <hierophect@gmail.com>
2020-09-08 21:07:00 +05:30
microDev
c68723db3c
Update Processor.c
2020-09-08 15:13:48 +05:30
root
2690faec43
Moved checks for invalid pin to common-hal/microcontroller/Pin.c
2020-09-05 11:42:06 -05:00
root
ed6cc64c49
Corrected issue with BLE not working on nrf52840
2020-09-04 16:59:41 -05:00
Dan Halbert
42df254683
Merge pull request #3373 from dhalbert/trellis-m4-board-i2c
...
fix pins for trellis_m4 board.I2C()
2020-09-04 11:15:18 -04:00
Scott Shawcroft
96cf60fbbd
Merge remote-tracking branch 'adafruit/main' into native_wifi
2020-09-03 16:34:56 -07:00
Scott Shawcroft
0b94638aeb
Changes based on Dan's feedback
2020-09-03 16:32:12 -07:00
Dan Halbert
960888a3bd
fix pins for trellis_m4 board.I2C()
2020-09-03 14:22:18 -04:00
Scott Shawcroft
786f4ed114
Merge pull request #3344 from jepler/issue-3184
...
Fix RGBMatrix, FrameBufferDisplay bugs
2020-09-02 15:32:30 -07:00
Lucian Copeland
4733a67226
Add GDB debugging capability
2020-09-02 11:27:42 -04:00
Scott Shawcroft
f0e60da51f
Merge pull request #3310 from dhalbert/ble_hci
...
_bleio HCI implementation
2020-09-01 11:28:05 -07:00
Jeff Epler
952d9bbb4a
samd: Ignore a maybe-uninitialized diagnostic in asf4
...
I encountered this when changing optimization flags for debugging
purposes. The diagnostic appears spurious and unrelated to what
I'm debugging.
2020-09-01 10:55:45 -05:00
Jeff Epler
ad4bf75367
samd: only set NDEBUG for non-debug builds
2020-09-01 10:55:45 -05:00
Dan Halbert
4ac7650f22
matrix portal board
2020-08-31 23:56:38 -04:00
Dan Halbert
6dbd369272
merge from upstream
2020-08-30 14:39:03 -04:00
Limor "Ladyada" Fried
0adccc50dc
Merge pull request #3346 from tannewt/add_kaluga
...
Add Kaluga board definition
2020-08-29 21:05:20 -04:00
Scott Shawcroft
7b59ede25e
Add remaining pins
2020-08-28 18:22:22 -07:00
Scott Shawcroft
0bb5c6c07f
Add unique USB PID
2020-08-28 16:37:25 -07:00
lady ada
81870413af
add default I2C
2020-08-28 19:08:36 -04:00
Scott Shawcroft
a09243472c
Add Kaluga board definition
2020-08-28 16:08:24 -07:00
Dan Halbert
893a125dd0
Merge pull request #3338 from jepler/endpoint-count-checking-stm32f405
...
add endpoint count checking on stm32f405
2020-08-28 11:12:31 -04:00
Dan Halbert
ac06202c21
Merge pull request #3238 from ElectronicCats/bastwifi
...
Add Bastwifi by Electronic Cats
2020-08-28 11:03:52 -04:00
Scott Shawcroft
5d8ac0428b
-Os espruino_pico to save space
2020-08-27 13:34:37 -07:00
Jeff Epler
563e038c0d
stm: Specify max endpoints for stm32f405xx
...
.. which is why we can't have HID or MIDI on the stm32f405 feather
2020-08-27 15:11:17 -05:00
Scott Shawcroft
2b71635c49
Fix esp-idf requirements
2020-08-27 11:45:51 -07:00
Scott Shawcroft
fd6e63d806
Hopefully final partition scheme.
2020-08-27 11:43:06 -07:00
Scott Shawcroft
767ca5c3dc
Merge remote-tracking branch 'adafruit/main' into native_wifi
2020-08-27 11:42:31 -07:00
Jeff Epler
49a22b0c55
Merge pull request #3320 from hierophect/stm32-meowbit-fix
...
STM32: Fix Meowbit startup and associated bugs
2020-08-27 13:05:56 -05:00
Dan Halbert
24fb08dbd9
Merge pull request #3337 from hierophect/pulseout-errorstyle
...
Fix problematic whitespace on pulseout parameter errors
2020-08-27 13:22:26 -04:00
Dan Halbert
350e88d4b9
Merge pull request #3324 from hierophect/esp32-random
...
Add random to ESP32-S2, fix it on STM32
2020-08-27 13:22:05 -04:00
Dan Halbert
6100027243
Merge pull request #3315 from tannewt/add_psram
...
Add PSRAM support to ESP32S2
2020-08-27 11:58:59 -04:00
Lucian Copeland
8021da08d3
Fix problematic whitespace on pulseout parameter errors
2020-08-27 11:07:47 -04:00
hierophect
772052598d
Merge branch 'main' into stm32-meowbit-fix
2020-08-27 11:00:29 -04:00
hierophect
a15f948a40
Merge branch 'main' into esp32-random
2020-08-27 10:49:14 -04:00
Dan Halbert
fe73cfb922
Merge pull request #3333 from hierophect/esp32-enable-ulab
...
Fix all assignments affected by inline makefile comments
2020-08-27 10:36:59 -04:00
Lucian Copeland
8d2299e61e
Merge remote-tracking branch 'upstream/main' into stm32-meowbit-fix
2020-08-26 18:50:26 -04:00
Lucian Copeland
c229345741
improve efficiency of stm32 random gen
2020-08-26 18:47:19 -04:00
Lucian Copeland
553ac576eb
Disable ulab
2020-08-26 17:48:29 -04:00
Lucian Copeland
c77523503b
Fix trailing whitespace errors across ports and docs
2020-08-26 14:48:46 -04:00
Jeff Epler
44342732a4
Fix DOS line endings, they give my git fits
2020-08-26 10:56:00 -05:00
Dan Halbert
5755160720
Merge pull request #3322 from microDev1/microS2
...
Added board - microS2
2020-08-26 11:03:46 -04:00
microDev
f26d15c5c9
Added PSRAM support
2020-08-26 18:39:30 +05:30
Dan Halbert
01ddb177fc
Remove whitespace in sdkconfig
2020-08-26 09:07:54 -04:00
Dan Halbert
f7d224705f
Trim trailing whitespace in pins.c
2020-08-26 09:01:27 -04:00
microDev
0425305a73
Change microS2 board name
2020-08-26 08:40:46 +05:30
microDev
b019ef2e43
Change microS2 board name
2020-08-26 08:38:42 +05:30
microDev
f1f316c502
Change microS2 board name
2020-08-26 08:37:36 +05:30
microDev
3f699024d9
Change microS2 board name
2020-08-26 08:36:38 +05:30
microDev
1dce6bd7ca
Change microS2 board name
2020-08-26 08:35:09 +05:30
microDev
bf2b594066
Change microS2 board name
2020-08-26 08:33:21 +05:30
Scott Shawcroft
8b71e26abd
Merge remote-tracking branch 'adafruit/main' into native_wifi
2020-08-25 16:39:23 -07:00
Scott Shawcroft
380cbfba55
Add hash to Socket so it can be used in dicts
2020-08-25 16:15:45 -07:00
Scott Shawcroft
69fc872944
Fix espidf.MemoryError print
2020-08-25 16:14:31 -07:00
Lucian Copeland
f71f6631cc
Enable ulab
2020-08-25 14:24:35 -04:00
Lucian Copeland
05bde255f7
Add random to ESP32-S2, fix it on STM32
2020-08-25 14:00:29 -04:00
microDev
89c6a44e4e
Added microS2 specific config files
2020-08-25 20:35:08 +05:30
microDev
645adaadb0
Added microS2 specific config files
2020-08-25 20:32:44 +05:30
Lucian Copeland
de9fd4a0fb
Fix null dereference, invert auto_brightness to reenable screen
2020-08-25 10:37:55 -04:00
Scott Shawcroft
0cc438e6b9
Fix pycubed pwm use
2020-08-24 18:29:34 -07:00
Scott Shawcroft
1527a3ce92
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-24 18:25:18 -07:00
Lucian Copeland
c137a16121
Remove Meowbit LSE flag, harsher failure for LSE issues
2020-08-24 14:49:06 -04:00
microDev
3eea3b5311
Added microS2 specific config files
2020-08-24 11:12:35 +05:30
root
fe0f79adce
Making requested modifications
2020-08-21 20:38:19 -05:00
Scott Shawcroft
f39708abb2
Add PSRAM support to ESP32S2
...
When configured the CircuitPython heap will be on the external RAM.
When not available, the heap will be 48k inside the IDF heap.
2020-08-21 16:20:58 -07:00
Scott Shawcroft
da61845f56
Add missing include
2020-08-21 13:32:59 -07:00
Scott Shawcroft
644d2ba7a2
Add more "extern" declarations for gcc10 compat
...
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
2020-08-21 14:39:37 -05:00
Scott Shawcroft
83deea0e03
Fix copy pasta and stub build
2020-08-21 11:17:42 -07:00
Scott Shawcroft
a5b01f7361
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-21 11:13:53 -07:00
Scott Shawcroft
701e80a025
Make socket reads interruptable
2020-08-21 11:00:02 -07:00
Dan Halbert
58573a70e1
bring submodules up to date
2020-08-21 11:10:33 -04:00
Dan Halbert
f714f53552
Merge remote-tracking branch 'adafruit/main' into ble_hci
2020-08-21 10:45:05 -04:00
Dan Halbert
0e30dd8bcc
merge from upstream; working; includes debug_out code for debugging via Saleae for posterity
2020-08-20 20:29:57 -04:00
Jeff Epler
ba2db853a4
Merge pull request #3308 from bwshockley/update_Mini_sam_m4_memory
...
Update mini sam m4 memory
2020-08-20 19:05:39 -05:00
root
6eae7ce78f
Requested changes to pulsein
2020-08-20 16:57:00 -05:00
Benjamin Shockley
135626a038
Update mpconfigboard.mk
...
Added support for second type of memory chip.
2020-08-20 13:50:52 -05:00
Scott Shawcroft
400701004b
Merge pull request #3279 from hierophect/esp32-pulseinout
...
ESP32-S2: Add PulseOut and PulseIn
2020-08-20 11:24:08 -07:00
Scott Shawcroft
e47447ba59
Merge pull request #3306 from kamtom480/usb_fix
...
spresense: call usb_background function
2020-08-20 11:23:16 -07:00
Scott Shawcroft
31a3d0e815
Merge pull request #3304 from jepler/count-usb-descriptors
...
Add usb-endpoint-count checking
2020-08-20 11:21:01 -07:00
Scott Shawcroft
a86d6aeac4
Merge pull request #3303 from jepler/samd-tinyusb-family
...
SAM E54: Use correct CFG_TUSB_MCU
2020-08-20 11:13:05 -07:00
Kamil Tomaszewski
e2891bc7d4
spresense: call usb_background function
2020-08-20 16:21:25 +02:00
Scott Shawcroft
80b15f6b3b
Add error handling w/temp debug logs
2020-08-19 17:51:33 -07:00
Jeff Epler
23aefe9509
Add usb-endpoint-count checking
...
.. however, the number of endpoints is only set for SAMD (8).
Other ports need to set the value. Otherwise, the build will show
the message
```
Unable to check whether maximum number of endpoints is respected
```
2020-08-19 16:47:40 -05:00
Scott Shawcroft
eb8b42aff1
Add basic error handling
2020-08-19 14:23:28 -07:00
Scott Shawcroft
9602ee6265
Disable wifi debug logging and memory log
2020-08-19 14:23:28 -07:00
Scott Shawcroft
dcc42f6281
Remove debug prints
2020-08-19 14:23:28 -07:00
Scott Shawcroft
1034cc1217
Add espidf module.
2020-08-19 14:23:28 -07:00
Scott Shawcroft
b3a449c276
Turn on json and enable socket.close
2020-08-19 14:23:28 -07:00
Scott Shawcroft
430530c74b
SSL works until it runs out of memory
2020-08-19 14:23:28 -07:00
Scott Shawcroft
eb2c38825e
HTTP works with my adafruit_requests
2020-08-19 14:23:18 -07:00
Scott Shawcroft
c9ece21c28
SocketPool stubbed out
2020-08-19 14:22:13 -07:00
Scott Shawcroft
7bdd243bf6
Ping works!
2020-08-19 14:22:13 -07:00
Scott Shawcroft
3860991111
Ping work and start to add socketpool
2020-08-19 14:22:13 -07:00
Scott Shawcroft
cdab5e793e
Update to latest idf
2020-08-19 14:22:13 -07:00
Scott Shawcroft
c62ab6e09a
Add ipaddress
2020-08-19 14:22:12 -07:00
Scott Shawcroft
ddcff85fa2
Add debugging. Scanning doesn't crash but returns no results. Need to config station.
2020-08-19 14:22:12 -07:00
Scott Shawcroft
1a6f4e0fe0
Scanning WIP. Need to sort out supervisor memory
2020-08-19 14:22:12 -07:00
Scott Shawcroft
c5b8401a15
First crack at native wifi API
2020-08-19 14:21:59 -07:00
Jeff Epler
6ae5bedf3b
SAM E54: Use correct CFG_TUSB_MCU
...
This doesn't actually change the code that is built, but it is
"more correct".
2020-08-19 11:27:52 -05:00
Scott Shawcroft
6857f98426
Split pulseio.PWMOut into pwmio
...
This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.
Fixes #3211
2020-08-18 13:08:33 -07:00
Scott Shawcroft
8e77981ad5
Merge pull request #3297 from simmel-project/i2c
...
Update Simmel board definition to reflect DVT hardware
2020-08-18 12:55:45 -07:00
Lucian Copeland
dd425ee6c5
Remove breaking parenthesis
2020-08-18 15:54:50 -04:00
Scott Shawcroft
24ca5c0218
Merge pull request #3295 from tannewt/turn_off_terminalio
...
Turn off terminalio for ja and ko
2020-08-18 12:10:31 -07:00
Scott Shawcroft
771388cde2
Remove trailing space.
2020-08-18 11:44:31 -07:00
Lucian Copeland
da75445cd5
Style changes, reposition runtime errors
2020-08-18 11:42:06 -04:00
bunnie
211c134950
add I2C, remove unused pins
2020-08-18 19:02:23 +08:00
bunnie
a4508f846d
stash config
2020-08-18 18:16:49 +08:00
Scott Shawcroft
d01f5dc0bd
Turn off terminalio for ja and ko
...
The font is missing many characters and the build needs the space.
We can optimize font storage when we get a good font.
The serial output will work as usual.
2020-08-17 17:17:59 -07:00
Dan Halbert
94ecf33a5c
Merge pull request #3281 from dhalbert/fix-spim3-buffer-location
...
SPIM3 buffer must be in first 64kB of RAM
2020-08-17 19:28:03 -04:00
Scott Shawcroft
19706a7eec
Merge pull request #3280 from hierophect/esp32-wroom-neopixel
...
ESP32-S2: Add Neopixel to Wroom
2020-08-17 15:07:19 -07:00
Scott Shawcroft
377503e61c
Merge pull request #3284 from dhalbert/fix-3171-evt-handler
...
Remove event handler before setting it to NULL
2020-08-17 15:02:29 -07:00
Brent Rubell
b1a8fb83fa
Merge pull request #3251 from jerryneedell/jerryn_rfm9x
...
RFM9x -- freeze library into build
2020-08-17 17:11:35 -04:00
Dan Halbert
6e5c2b3fe2
Merge pull request #3260 from rhooper/pixelbuf-iterable
...
Make pixelbuf support iterables and floats
2020-08-17 11:56:31 -04:00
Dan Halbert
16ff7b167c
bdmicro_vina_m0: inline limit 60 -> 50
...
The ja translation was not fitting.
2020-08-17 10:05:25 -04:00
Dan Halbert
ef40f83f99
Remove event handler before setting it to NULL
2020-08-15 14:39:53 -04:00
Dan Halbert
cf0f3d70b5
SPIM3 buffer must be in first 64kB of RAM
2020-08-15 10:31:56 -04:00
Lucian Copeland
7078c63062
Add missing Neopixel pin definition
2020-08-14 16:58:24 -04:00
Lucian Copeland
0fc730bc5a
Expand PulseOut API, debug cleanup
2020-08-14 16:36:02 -04:00
Lucian Copeland
88fcc19e24
Add PulseIn
2020-08-14 15:30:48 -04:00
Lucian Copeland
f9512983ff
Add PulseOut
2020-08-14 12:21:41 -04:00
Dan Halbert
98469322b7
Merge pull request #3276 from xiongyihui/main
...
support to change ble mac address
2020-08-14 11:14:36 -04:00
Yihui Xiong
52990a332d
fix
2020-08-14 17:48:15 +08:00
Dan Halbert
a28d0f6c80
Merge pull request #3273 from jepler/ja-firmware-size
...
Squeeze firmwares to fit the new ja translation
2020-08-13 12:19:28 -04:00
Dan Halbert
329f4fb2e6
Update mpconfigboard.mk
...
The stm boards default to `-O2`. Changing to `-Os` brings it back to ~43kB (!) free even for ja.
2020-08-13 10:09:46 -04:00
Jeff Epler
42b860e91a
stm: meowbit_v121: remove _pixelbuf to fit ja translation
2020-08-13 07:49:45 -05:00
Yihui Xiong
e7da652711
able to change ble mac address
2020-08-13 16:54:29 +08:00
Dan Halbert
44c9c43cd1
ble_uart_echo_test works
2020-08-13 00:03:39 -04:00
Jeff Epler
239c8ff87f
metro_m0_express: put back audiobusio
...
this now fits locally (though it's very close to capacity);
let's see what the CI says.
```
make BOARD=metro_m0_express clean && make BOARD=metro_m0_express TRANSLATION=ja
...
253448 bytes used, 248 bytes free in flash firmware space out of 253696 bytes (247.75kB).
```
2020-08-12 19:11:33 -05:00
Scott Shawcroft
7ffa2a103c
Merge pull request #3269 from jepler/sharpdisplay-v2
...
Sharp Memory Display displayio support (v2)
2020-08-12 16:53:09 -07:00
Jeff Epler
aa0b4f7045
cpx_display: Put back AUDIOBUSIO, take away ROTARYIO
...
AUDIOBUSIO is needed for the on-board mic using PDMIn
2020-08-12 16:17:48 -05:00
Jeff Epler
ea8e9b8cef
metro_m0_express: Put back GAMEPAD, take away AUDIOBUSIO
...
Dan notes that this is more frequently the solution we've chosen
2020-08-12 16:17:13 -05:00
Jeff Epler
299894025a
stringcar_m0_express: make ja translation fit
2020-08-12 13:47:10 -05:00
Jeff Epler
f08ee0db20
itsybitsy_m0_express: make ja translation fit again
2020-08-12 13:44:00 -05:00
Jeff Epler
7bd42244c9
snekboard: make ja translation fit
2020-08-12 13:34:36 -05:00
Jeff Epler
45f6bc1f3e
serpente: make ja translation fit
2020-08-12 13:32:08 -05:00
Jeff Epler
36bfbaae69
feather_radiofruit_zigbee: make ja translation fit
2020-08-12 13:28:30 -05:00
Jeff Epler
58a1361d3e
Merge remote-tracking branch 'origin/main' into ja-firmware-size
2020-08-12 13:26:12 -05:00
Jeff Epler
06f6cd067d
nrf: Improve commenting about disabled warnings
2020-08-12 12:59:48 -05:00
Jeff Epler
813dcd1b73
trinket_m0_haxpress: make ja translation fit
2020-08-12 12:44:17 -05:00
Jeff Epler
88f222f1a1
metro_m0_express: make ja translation fit
2020-08-12 12:38:17 -05:00
Jeff Epler
ba91023fff
itsybitsy_m0_express: make ja translation fit
2020-08-12 12:35:29 -05:00
Jeff Epler
6b9f7c9047
hallowing_m0_express: make ja translation fit
2020-08-12 12:29:30 -05:00
Jeff Epler
58afda342d
feather_m0_supersized: make ja translation fit
2020-08-12 11:53:34 -05:00
Jeff Epler
27c2eb1869
feather_m0_express: make ja translation fit
2020-08-12 11:51:56 -05:00
Jeff Epler
8865e4ca97
circuitplayground_express_displayio: make ja translation fit
2020-08-12 11:46:52 -05:00
Jeff Epler
f3748fe20d
circuitbrains_basic_m0: Use optimization flags to let ja translation fit
2020-08-12 11:46:31 -05:00
Jeff Epler
f9d1d9d114
atmel-samd: disable FRAMEBUFFERIO on samd21
...
.. this disables SHARPMEMORY as well.
2020-08-12 11:15:34 -05:00
Jeff Epler
454e616d13
atmel-samd: disable FRAMEBUFFERIO on samd21
...
.. this disables SHARPMEMORY as well.
2020-08-12 10:46:56 -05:00
Scott Shawcroft
3197c579e0
Merge pull request #3262 from tannewt/fix_fs_corruption
...
Fix writing sector 0 as the first write.
2020-08-12 08:14:55 -07:00
Jeff Epler
32fc8b0676
nrf: reset_pin_number: reset pin clears never-reset, mirroring samd
2020-08-12 07:32:18 -05:00
Jeff Epler
760a171903
nrf: Make port build with -Werror=undef
...
.. build-tested on particle_xenon
2020-08-12 07:32:18 -05:00
bleeptrack
49407b6c06
trailing spaces fix
2020-08-12 13:42:45 +02:00
bleeptrack
e34fac6645
Whitespace and Newline fix
2020-08-11 23:59:32 +02:00
Dan Halbert
06f3b4048a
fix #3228 for nrf; still needs to be fixed for HCI; tested
2020-08-11 16:21:16 -04:00
bleeptrack
228d9b5a12
Fixing indentation
2020-08-11 22:18:15 +02:00
bleeptrack
22ae1dbac8
Removing unnecessary pin ignored
2020-08-11 22:17:17 +02:00
bleeptrack
00676ff5a9
PicoPlanet
2020-08-11 21:49:52 +02:00
Scott Shawcroft
8488b31aa0
Init directly
2020-08-11 11:19:40 -07:00
Scott Shawcroft
bbac68e77c
Merge pull request #3232 from hierophect/esp32-neopixel
...
ESP32-S2: Add Neopixel support
2020-08-11 11:04:39 -07:00
Scott Shawcroft
87c78be8f4
Fix writing sector 0 as the first write.
...
This was the FS issue I saw when debugging wifi and only happens
when the first write is to sector 0. It causes issues because it
blanks all of sector 0 after the first block.
Fixes #3133
2020-08-10 17:14:49 -07:00
Jeff Epler
807f049dc3
Merge pull request #3244 from xiongyihui/main
...
add an option to turn off QSPI when sleep
2020-08-10 16:06:57 -05:00
Jeff Epler
1cf3762392
Merge remote-tracking branch 'origin/main' into stm32-sdioio
2020-08-10 12:54:12 -05:00
Lucian Copeland
d47bd5529c
Fix neopixel macro issue, set default neopixel color
2020-08-10 13:16:20 -04:00
Dan Halbert
0f4b969d62
discovery of Nordic UART service working
2020-08-08 00:29:37 -04:00
Jerry Needell
1d980d527e
Merge remote-tracking branch 'upstream/main' into jerryn_rfm9x
2020-08-07 12:48:41 -04:00
Yihui Xiong
af1291ec28
dynamically enable or disable QSPI by default
2020-08-07 16:23:42 +08:00
Jerry Needell
f7961b96a9
update comment
2020-08-06 10:05:18 -04:00
Jerry Needell
c42ffb8f3d
remove usb_hid
2020-08-06 05:44:26 -04:00
Yihui Xiong
d8257380d7
add qspi_disable()
2020-08-06 09:56:05 +08:00
Lucian Copeland
78d049d0f1
Fix pwm reset spew, protect against null reference in led status
2020-08-05 14:05:53 -04:00
Jerry Needell
432f43a472
freeze rfm9x and BusDevice, remove many built-in modules
2020-08-05 11:37:57 -04:00
root
c7b6e66426
Fixes for pulsein tick handling
2020-08-05 10:03:20 -05:00
Yihui Xiong
7854625c4e
avoid using the RGB LEDs to save energy
2020-08-05 16:08:13 +08:00
Yihui Xiong
dbe47a6a2a
adjust
2020-08-05 16:07:18 +08:00
Jeff Epler
93b373d617
"pop from empty %q"
...
Saves 12 bytes code on trinket m0
2020-08-04 18:42:09 -05:00
Lucian Copeland
14b3b51c58
Rework build flags, prevent idf errors
2020-08-04 18:40:24 -04:00
Dan Halbert
ac95106b88
service discovery works; need to work on char and descriptor discovery
2020-08-04 18:24:37 -04:00
Jeff Epler
c849b781c0
Combine 'index out of range' messages
2020-08-04 14:45:45 -05:00
Jeff Epler
89797fd3f9
various: Use mp_obj_get_type_qstr more widely
...
This removes runtime allocations of the cstring version of the qstring.
It is not a size improvement
2020-08-04 14:45:45 -05:00
Jeff Epler
dddd25a776
Combine similar strings to reduce size of translations
...
This is a slight trade-off with code size, in places where a "_varg"
mp_raise variant is now used. The net savings on trinket_m0 is
just 32 bytes.
It also means that the translation will include the original English
text, and cannot be translated. These are usually names of Python
types such as int, set, or dict or special values such as "inf" or
"Nan".
2020-08-04 13:34:29 -05:00
Yihui Xiong
6dc0f4f1b6
add an option to turn off QSPI when sleep
2020-08-05 01:10:58 +08:00
Jeff Epler
0e2d231445
Merge remote-tracking branch 'origin/main' into stm32-sdioio
2020-08-03 21:01:53 -05:00
Dan Halbert
a995a5c58f
wip: partial discovery responses; compiles; not tested
2020-08-03 21:02:57 -04:00
DavePutz
d7eedc5e38
Merge pull request #20 from adafruit/main
...
Update from main
2020-08-03 13:14:01 -05:00
root
9203a77804
Turn off interrupts while in handler
2020-08-03 11:31:12 -05:00
Lucian Copeland
4900668778
Merge remote-tracking branch 'upstream/main' into esp32-neopixel
2020-08-03 12:26:37 -04:00
sabas1080
0e30fe1cc5
Update VID & PID codes
2020-08-02 19:54:11 -05:00
Dan Halbert
0a60aee3e4
wip: compiles
2020-08-02 11:36:38 -04:00
sabas1080
b074f8a161
update for build test
2020-08-02 00:42:36 -05:00
sabas1080
fea1cad02c
add support for Bast Wifi Electronic Cats
2020-08-01 17:51:45 -05:00
root
12b81618a3
Changes for getting supervisor ticks
2020-08-01 13:27:02 -05:00
Dan Halbert
1771858f4a
add RELEASE_NEEDS_CLEAN_BUILD for lang-specific CFLAGS_INLINE_LIMIT changes
2020-08-01 13:20:46 -04:00
Dan Halbert
4b71831d8b
SUPEROPT_VM = 0 for de_DE
2020-08-01 12:36:20 -04:00
Lucian Copeland
94b2561860
Fix include error
2020-08-01 09:22:18 -04:00
Lucian Copeland
1c1df053d5
Add neopixel support
2020-07-31 15:34:12 -04:00
Jeff Epler
27c6ffb9a2
atmel-samd: gemma, trinket: Make space for de_DE translation
2020-07-30 11:29:47 -05:00
Jeff Epler
d69f081c04
Merge remote-tracking branch 'origin/main' into blm_badge
2020-07-30 07:24:48 -05:00
Jeff Epler
531c1e046c
Merge pull request #3226 from joeycastillo/main
...
Small updates to Open Book board
2020-07-30 07:21:50 -05:00
Jeff Epler
f175a49444
stm: sdioio: include header for common_hal_mcu_pin_claim
2020-07-30 07:18:12 -05:00
Jeff Epler
b57e6e9856
stm: sdioio: call common_hal_mcu_pin_claim
2020-07-30 07:18:12 -05:00
Jeff Epler
d73505a027
stm: fix if-guard of conditional code
2020-07-30 07:18:12 -05:00
Jeff Epler
60dd5a8d7d
stm: sdioio: remove unused code related to "SD Card detect pin"
...
.. this probably came from the examples that I studied at the beginning
of implementation.
The card detection feature is unused. As a "detect pin" is not
sent from the shared-bindings, there is no way to get the correct pin
anyway. Instead, if code needs to detect the insertion state it can
directly use the pin as GPIO in Python code.
2020-07-30 07:18:02 -05:00
Jeff Epler
ccd3013396
stm: stioio: correctly claim pins
2020-07-30 07:18:02 -05:00
Jeff Epler
3cf1258c87
stm: sdioio: Get rid of debug code and useless comments
2020-07-30 07:18:02 -05:00
Jeff Epler
6a99a7b551
stm: Use 'Invalid %q pin selection' more places
2020-07-30 07:18:02 -05:00
Jeff Epler
92d2f47503
feather_stm32f405_express: sdio_data_tuple should be static
2020-07-30 07:18:02 -05:00
Jeff Epler
4adbd23b75
stm: Add sdioio support for feather_stm32f405_express
...
Currently, only the bus specs of the stm32f405xx have been coded.
Other stm-family chips need (at a minimum) the specs added in their
periph.[ch] files.
2020-07-30 07:18:02 -05:00
Jeff Epler
d30f11163c
stm: enable SD module in HAL
2020-07-30 07:18:02 -05:00
Jeff Epler
af135a7560
atmel-samd: move samd-specific script
2020-07-30 07:18:02 -05:00
Joey Castillo
8acec2ca35
add descriptive pin names
2020-07-29 13:49:08 -04:00
Joey Castillo
ea9bc9b4b6
set screen orientation to portrait
2020-07-29 13:46:10 -04:00
hathach
b2ec77e554
Merge remote-tracking branch 'adafruit/main' into improve-highspeed-usb
2020-07-29 23:14:52 +07:00
hathach
b6724e843c
update CDC/MIDI bufsize to at least 512 for highspeed port
2020-07-29 16:22:27 +07:00
hathach
6063828279
replace USB_MSC_MAX_PACKET_SIZE with USB_HIGHSPEED in descriptor gen tool
2020-07-29 15:38:55 +07:00
Dan Halbert
ca9eae8eea
Merge pull request #3209 from pewpew-game/fluff-m0-pins
...
fluff_m0: add pin aliases
2020-07-28 15:15:15 -04:00
Dan Halbert
824a57c6f4
Merge pull request #3218 from tannewt/use_gcc10_peripherals
...
Use samd peripherals fixed for gcc 10
2020-07-28 15:14:20 -04:00
Scott Shawcroft
b30d89131b
Merge pull request #3215 from ansonhe97/main
...
Added display QSTR to Wio Terminal
2020-07-28 11:53:17 -07:00
Dan Halbert
aa97ea2501
Merge remote-tracking branch 'adafruit/main' into blm_badge
2020-07-28 14:15:02 -04:00
Scott Shawcroft
92216d6417
Use samd peripherals fixed for gcc 10
2020-07-28 11:14:25 -07:00
Dan Halbert
e5e132a364
add blm_badge; add CIRCUITPY_AUDIOBUSIOIO_I2SOUT
2020-07-28 11:49:54 -04:00
ansonhe97
e15bcebb6e
Added display QSTR to Wio Terminal
2020-07-28 17:31:17 +08:00
sabas1080
d37326326d
init bastwifi
2020-07-28 00:56:37 -05:00
Jerry Needell
945736e9bb
add adjustments for crickit and displayio variants of CPX
2020-07-27 22:13:04 -04:00
Jerry Needell
2bdd62220e
adjust stack for SAMD21 to accomodate larger pystack -- update frozen module adafruit_busdevice
2020-07-27 21:50:36 -04:00
Scott Shawcroft
debbf1028a
Merge pull request #3196 from IkigaiSense/ikigaisense_vita
...
add-ikigaisense_vita-nRF52840
2020-07-27 16:10:57 -07:00
Scott Shawcroft
f4f2018952
Merge pull request #3101 from ndGarage/ndgarage_ndbit6_v2
...
ndgGarage ndbit6 v2
2020-07-27 15:51:23 -07:00
Scott Shawcroft
7be9837f73
Merge pull request #3193 from ciscorn/type-annotations
...
More type hints
2020-07-27 14:26:54 -07:00
Taku Fukada
d356581651
Fix several type hints
2020-07-27 18:05:13 +09:00
Radomir Dopieralski
b2c4b0bcfa
fluff_m0: don't exclude portb pins explicitly
2020-07-26 17:26:32 +02:00
Radomir Dopieralski
b1b253c012
fluff_m0: add pin aliases
...
Add aliases for SDI, SDO and EN, so that pin names match the text on the
PCB to avoid confusion.
Also disable all pins from port B, because that package of SAMD21
doesn't have port B.
2020-07-26 13:39:42 +02:00
Dan Halbert
7ab5c520e6
Merge pull request #3190 from DavePutz/opt-test
...
Changes to allow different compiler optimizations per board
2020-07-25 17:03:10 -04:00
Dan Halbert
b7e6bf959e
Merge pull request #3205 from burtyb/commander-2
...
Add GamePad to Commander board
2020-07-25 16:57:58 -04:00
Chris Burton
c4a5297ee2
Add GamePad to Commander
2020-07-25 17:53:27 +00:00
ikigaisense
6696915801
fix-ndbit6-for-ndbit6_v2
2020-07-25 10:07:33 -06:00
root
c4817968ee
Merge branch 'opt-test' of https://github.com/DavePutz/circuitpython into opt-test
2020-07-24 23:28:41 -05:00
DavePutz
3dfed3c4aa
Merge pull request #15 from adafruit/main
...
update from main
2020-07-24 20:29:53 -05:00
root
739981b34e
update for pewpew
2020-07-24 17:27:25 -05:00
DavePutz
a14101cd13
Use current mpconfigboard.mk with optimization change
2020-07-24 14:09:09 -05:00
Lucian Copeland
356b1a8d6d
Finish common-hal pin API
2020-07-24 12:29:18 -04:00
hierophect
c735dceed5
Merge pull request #3099 from hierophect/stm32-timer-allocator
...
STM32: Add timer allocator, PulseIO adjustments
2020-07-24 11:16:39 -04:00
root
b9cdf195e2
board mk file changes
2020-07-24 10:00:42 -05:00
root
204cdada7c
remove unnecessary mk files parameters
2020-07-24 09:53:40 -05:00
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
root
ce37a442e8
format fix
2020-07-23 19:35:04 -05:00
root
c937fa1760
fix formatting
2020-07-23 19:29:57 -05:00
root
778e8bfda9
Changes to optimization option
2020-07-23 19:27:02 -05:00
ikigaisense
703fb9d4a1
update-ndGarage_ndbit6_v2
2020-07-23 16:08:30 -06:00
Scott Shawcroft
060ab8a1f0
Merge pull request #3194 from tannewt/gcc10
...
Prep for GCC10
2020-07-23 14:39:21 -07:00
ikigaisense
1ee8a09da2
add-ikigaisense_vita-nRF52840
2020-07-23 14:39:59 -06:00
Scott Shawcroft
6a46fd5b91
Merge pull request #3185 from hierophect/esp32-pulseio
...
ESP32-S2: PWMOut
2020-07-23 13:11:33 -07:00
Lucian Copeland
cf0a4d208e
Fix unintended timer reset, style changes
2020-07-23 14:01:10 -04:00
Scott Shawcroft
2bd6d05663
Add externs. GCC10 complains about duplicate defines
2020-07-22 16:26:46 -07:00
Lucian Copeland
61a2e4f94b
Add PWMOut
2020-07-22 16:34:18 -04:00
Lucian Copeland
c1f731d62e
Claim USB pins at startup to prevent overwrites
2020-07-22 14:22:05 -04:00
hierophect
e232ec10ce
Merge branch 'main' into stm32-timer-allocator
2020-07-22 13:59:39 -04:00
Lucian Copeland
138189bad1
Free timers when modules de-init
2020-07-22 13:58:57 -04:00
root
d83a4ac72d
Changes to add compiler optimization option
2020-07-22 12:44:41 -05:00
DavePutz
39e01c3938
Merge pull request #14 from adafruit/main
...
update from main
2020-07-22 11:30:49 -05:00
Scott Shawcroft
8ff2846bb2
Disable countio on circuitbrains basic
2020-07-21 16:21:49 -07:00
root
db5c3c9676
dded optimization for esp32s2
2020-07-21 17:54:47 -05:00
Scott Shawcroft
cb7df2e1ed
Merge pull request #3160 from tannewt/enable_pystack
...
Enable PYSTACK to keep function state out of the heap
2020-07-21 13:38:52 -07:00
Scott Shawcroft
5e3a853db4
Turn off GC opt on uchip board
2020-07-21 12:51:59 -07:00
Scott Shawcroft
678faff464
Be more aggressive with uChip build
2020-07-21 11:02:23 -07:00
root
49decf90c9
Add option for higher optimization levels
2020-07-21 10:11:08 -05:00
Scott Shawcroft
0c6935e336
Merge branch 'main' into disable_network
2020-07-20 16:28:22 -07:00
Scott Shawcroft
12edb57aac
Merge pull request #3166 from theacodes/bhb-adc
...
Add _bhb user module for Big Honking Button
2020-07-20 16:24:36 -07:00
Thea Flowers
7ba89f5330
Add _bhb user module for Big Honking Button
...
BHB needs better accuracy from the ADC readings. To avoid changing the ADC configuration for all boards or adding complexity to AnalogIn, I implemented a custom user module to allow the BHB to talk to the ADC in the way that it needs to. I'm open to other approaches here, but this seemed like the least invasive and complex option.
2020-07-18 22:45:08 -07:00
Radomir Dopieralski
11ef43b071
pewpew_m4: Disable USB_HID back
...
German translation fails to build, so I have to disabled USB_HID after
all.
2020-07-18 20:09:30 +02:00
Radomir Dopieralski
8d692f33a8
pewpew_m4: Enable analogio and usb_hid
...
The newest version for the Stage library for PewPewM4 no longer contains
embedded graphics, which frees enough space in flash to enabled back
AnalogIO and also add USB_HID. There is still ~192 bytes left free.
If new additions to CircuitPython make it grow further, we can disable
USB_HID again.
2020-07-18 19:30:40 +02:00
Scott Shawcroft
610e0171aa
Disable existing native networking.
...
We're moving towards a co-processor model and a Wiznet library is
already available.
New native APIs will replace these for chips with networking like the
ESP32S2 but they won't be these.
2020-07-17 17:43:02 -07:00
Lucian Copeland
207369ec09
Add boilerplate, create basic PWMOut test
2020-07-17 17:28:23 -04:00
Jeff Epler
9cdf5e148a
Merge pull request #2879 from jepler/background-callback
...
Use a linked list of background tasks to perform
2020-07-17 15:46:03 -05:00
Jeff Epler
6912d31560
uchip: reclaim some flash space
2020-07-17 14:32:05 -05:00
Dan Halbert
6494bbdc64
snapshot
2020-07-16 23:14:49 -04:00
Lucian Copeland
dc6902a33e
Exclude timers from H7 builds
2020-07-16 17:11:24 -04:00
Lucian Copeland
6a49766df0
Fix pulseIO reset and frequency issues, remove IRQ conflict
2020-07-16 15:45:18 -04:00
Scott Shawcroft
72f6d7ee21
Merge pull request #3155 from jepler/esp32s2-parallel-build
...
esp32s2: Take care to invoke the sub-build-system only once
2020-07-16 11:26:53 -07:00
Scott Shawcroft
7bb508bf43
Merge pull request #3157 from tinkeringtech/tinkeringtech-scoutmakes-azul
...
Addition of Tinkeringtech ScoutMakes Azul nRF52840 based platform to CircuitPython
2020-07-16 11:03:31 -07:00
TinkeringTech
49fcfd14d2
Added the TinkeringTech ScoutMakes Azul platform to CircuitPython
2020-07-15 21:49:34 -04:00
Jeff Epler
1df48176ce
supervisor: factor supervisor_background_tasks from sundry ports
2020-07-15 11:49:44 -05:00
Jeff Epler
6160d11c5a
supervisor: factor out, Handle USB via background callback
2020-07-15 11:49:44 -05:00
Jeff Epler
a2919a6fb2
esp32s2: Use the device's EUI-48 address as unique ID
...
On my hardware, esptool reports
MAC: 7c:df:a1:02:6c:b8
after this change, the USB descriptor says SerialNumber: 7CDFA1026CB8
and microcontroller.cpu.id has
>>> "".join("%02x" % byte for byte in microcontroller.cpu.uid)
'c7fd1a20c68b'
Note that the nibble-swapping between USB and cpu.uid is typical.
For instance, an stm32 board has USB SerialNumber
24002500F005D42445632302 but hex-converted microcontroller.cpu.id
420052000f504d4254363220.
2020-07-15 11:45:13 -05:00
Jeff Epler
910f69c42b
esp32s2: Take care to invoke the sub-build-system only once
...
This allows "make -j" in the outer build system to function properly,
with a potentially large decrease in build times on high end desktop
systems.
2020-07-15 10:30:07 -05:00
Jeff Epler
742aa740f6
samd: audio: Move to background callback
...
Testing performed: Played half of the Bartlebeats album :) :)
2020-07-15 09:26:47 -05:00
Jeff Epler
dc74ae83da
nRF: Always use sd_nvic_critical_region calls
...
The motivation for doing this is so that we can allow
common_hal_mcu_disable_interrupts in IRQ context, something that works
on other ports, but not on nRF with SD enabled. This is because
when SD is enabled, calling sd_softdevice_is_enabled in the context
of an interrupt with priority 2 or 3 causes a HardFault. We have chosen
to give the USB interrupt priority 2 on nRF, the highest priority that
is compatible with SD.
Since at least SoftDevice s130 v2.0.1, sd_nvic_critical_region_enter/exit
have been implemented as inline functions and are safe to call even if
softdevice is not enabled. Reference kindly provided by danh:
https://devzone.nordicsemi.com/f/nordic-q-a/29553/sd_nvic_critical_region_enter-exit-missing-in-s130-v2
Switching to these as the default/only way to enable/disable interrupts
simplifies things, and fixes several problems and potential problems:
* Interrupts at priority 2 or 3 could not call common_hal_mcu_disable_interrupts
because the call to sd_softdevice_is_enabled would HardFault
* Hypothetically, the state of sd_softdevice_is_enabled
could change from the disable to the enable call, meaning the calls
would not match (__disable_irq() could be balanced with
sd_nvic_critical_region_exit).
This also fixes a problem I believe would exist if disable() were called
twice when SD is enabled. There is a single "is_nested_critical_region"
flag, and the second call would set it to 1. Both of the enable()
calls that followed would call critical_region_exit(1), and interrupts
would not properly be reenabled. In the new version of the code,
we use our own nesting_count value to track the intended state, so
now nested disable()s only call critical_region_enter() once, only
updating is_nested_critical_region once; and only the second enable()
call will call critical_region_exit, with the right value of i_n_c_r.
Finally, in port_sleep_until_interrupt, if !sd_enabled, we really do
need to __disable_irq, rather than using the common_hal_mcu routines;
the reason why is documented in a comment.
2020-07-15 09:26:47 -05:00
Lucian Copeland
818b96ae61
Fix IRQ enum protections
2020-07-14 16:33:36 -04:00
Scott Shawcroft
90ad9beff5
Merge pull request #3136 from xiongyihui/master
...
Add 2 boards nRF52840 M.2 devkit and M60 Keyboard
2020-07-13 17:14:18 -07:00
Scott Shawcroft
51c888d4be
Merge pull request #3003 from Flameeyes/master
...
License tagging according to REUSE specifications.
2020-07-13 16:28:49 -07:00
Scott Shawcroft
d712d1281c
Merge branch 'main' into master
2020-07-13 15:53:44 -07:00
Dan Halbert
3fcd999130
Merge pull request #3130 from pewpew-game/brownout-level
...
SAMD: make the brownout detection level configurable per board
2020-07-13 16:26:11 -04:00
Lucian Copeland
b8910676db
Add missing enum preprocessor protection
2020-07-13 11:52:30 -04:00
Dan Halbert
f6869c69c5
wip: advertising; not tested
2020-07-12 19:45:23 -04:00
Yihui Xiong
c8752ff93e
use RGB LEDs as status indicators
2020-07-11 21:25:32 +08:00
Yihui Xiong
8e26fdc0e9
add LED status, remove unused macros
2020-07-11 10:51:31 +08:00
Radomir Dopieralski
742f9cfdb0
Fluff M0: additional pins on version 1.3 of the board
2020-07-10 20:40:58 +02:00
Yihui Xiong
7ff499046b
use VID & PIDs granted by Seeed
2020-07-11 00:37:45 +08:00
Lucian Copeland
eb86010176
Enable RGB Matrix
2020-07-10 11:06:12 -04:00
Scott Shawcroft
0068c76fa6
Merge pull request #3135 from arms22/bless_dev_board_multi_sensor
...
Add new board BLE-SS dev board Multi Sensor
2020-07-09 10:29:57 -07:00
Lucian Copeland
edc48a505f
Complete F405 pin and periph definitions
2020-07-09 13:10:18 -04:00
Lucian Copeland
2bcc5c06c2
Fix advanced claimed pin/package timer search
2020-07-09 11:42:37 -04:00
Yihui Xiong
678f266394
fix pre-commit check
2020-07-09 10:25:46 +00:00
Radomir Dopieralski
e0733d153e
SAMD: configurable brownout, separate the variables
2020-07-09 12:17:07 +02:00
Yihui Xiong
96f6ce222c
add makerdiary m60 keyboard
...
Signed-off-by: Yihui Xiong <yihui.xiong@hotmail.com>
2020-07-09 10:02:27 +00:00
Yihui Xiong
e81d22cd67
add makerdiary nrf52840 m.2 devkit
...
Signed-off-by: Yihui Xiong <yihui.xiong@hotmail.com>
2020-07-09 10:01:04 +00:00
arms22
bb5cdcf954
Add new board BLE-SS dev board Multi Sensor
2020-07-09 11:26:45 +09:00
Lucian Copeland
9c38f5dcb1
Merge remote-tracking branch 'upstream/main' into stm32-timer-allocator
2020-07-08 16:03:12 -04:00
Scott Shawcroft
ce214e82a5
Merge pull request #3127 from Arudinne/Raytac_MDBT50Q-DB-40
...
Add new board Raytac MDBT50Q-DB-40
2020-07-08 11:34:56 -07:00
Radomir Dopieralski
83a27edd20
SAMD: make the brownout detection level configurable per board
...
Not all boards have external flash or other components that make them
require 2.7V -- sometimes we can get considerably longer battery life
by decreasing this requirement.
In particular, pewpew10 and pewpew_m4 are powered directly from
battery, with no LDO, and should work fine down to 1.6V.
2020-07-08 19:59:53 +02:00
Arudinne
768149fb01
modified: ports/nrf/boards/raytac_mdbt50q-db-40/pins.c
2020-07-08 10:36:41 -05:00
Arudinne
5a9aac472a
modified: ports/nrf/boards/raytac_mdbt50q-db-40/pins.c
2020-07-07 14:37:59 -05:00
Jeff Epler
57ab4f1329
stm: SPI: revamp pin search code
...
I discussed with Hierophect on Discord about how to "de-nest" the code
for configuring SPI objects on STM, because the problems with one
nesting level per pin becomes unmanageable with the up to 10 pins of
SDIO.
This code (which is only compile-tested so far) demonstrates the concept
we discussed.
The SCK pin is always required. Loop over all possibilities of the SCK
pin. When we are considering a particular item in the mcu_spi_sck_list
we have now become committed to using a particular periph_index. If all
the other pins can be satisfied by that periph_index, then we have a
working combination. Once we have a working combination that is not
reserved, we can return that combination. On reaching the end, we have
checked all the possible possibilities and can give the same errors as
before: One if there was a possibility that worked but was reserved;
and another if no possibility worked.
2020-07-07 14:37:50 -05:00
Arudinne
dc2f729d19
modified: ports/nrf/boards/raytac_mdbt50q-db-40/mpconfigboard.mk
...
modified: ports/nrf/boards/raytac_mdbt50q-db-40/pins.c
2020-07-07 14:37:08 -05:00
Arudinne
b5af05cd31
new file: ports/nrf/boards/raytac_mdbt50q-db-40/board.c
...
new file: ports/nrf/boards/raytac_mdbt50q-db-40/bootloader/6.0.0/pca10056_bootloader_6.0.0_s140.zip
new file: ports/nrf/boards/raytac_mdbt50q-db-40/mpconfigboard.h
new file: ports/nrf/boards/raytac_mdbt50q-db-40/mpconfigboard.mk
new file: ports/nrf/boards/raytac_mdbt50q-db-40/pins.c
2020-07-07 12:27:23 -05:00
Scott Shawcroft
965a4961ce
Merge pull request #3120 from DavePutz/issue#3049
...
Issue#3049 -PulseIn not working in CP5.4
2020-07-07 08:59:22 -07:00
DavePutz
0932b64ae7
Correct for SAMD51 build
2020-07-06 23:25:33 -05:00
DavePutz
1b3cb17abd
Corrected file for SAMD51 build
2020-07-06 21:47:11 -05:00
DavePutz
ab4a453006
Made requested changes
2020-07-06 21:40:38 -05:00
Scott Shawcroft
a7844205bd
Merge pull request #3123 from kamtom480/sdk2.0
...
spresense: update SDK to 2.0.1
2020-07-06 15:09:46 -07:00
Scott Shawcroft
846f01b2c8
Merge pull request #3113 from ansonhe97/main
...
ADD: Added Wio Terminal's functional pins and LCD driver to board init
2020-07-06 14:50:47 -07:00
Diego Elio Pettenò
34b4993d63
Add license to some obvious files.
2020-07-06 19:16:25 +01:00
Radomir Dopieralski
2f80460a2f
Fluff M0: additional pins on version 1.3 of the board
2020-07-06 19:15:41 +01:00
Kamil Tomaszewski
97355f8fb7
spresense: update SDK to 2.0.1
2020-07-06 17:13:28 +02:00
DavePutz
ac33c3fe2c
Implementation of continuous synchronization of RTC during pulsein
...
Flags and code to implement continuous synchronization of RTC during pulsein
2020-07-04 21:17:19 -05:00
DavePutz
94d90742dd
Implementation of RTC continuous synchronization during pulsein
...
Flags and code to implement RTC continuous synchronization during pulsein
2020-07-04 21:15:38 -05:00
ndgarage
e514782cc6
update-with-new-usb-PID
2020-07-04 10:39:21 -06:00
ansonhe97
36ef3476de
Fix depreciate terminology
2020-07-04 11:21:58 +08:00
Lucian Copeland
c72e3536f1
Merge remote-tracking branch 'upstream/main' into stm32-timer-allocator
2020-07-03 09:50:05 -04:00
ansonhe97
2ecb46f192
Fix CI
2020-07-03 13:42:27 +08:00
ansonhe97
2a92cf8d8b
ADD: Added LCD driver to board init
2020-07-03 12:44:20 +08:00
ansonhe97
49aacc8596
ADD: Fixed wrong SPI pins and added more functional pins
2020-07-03 12:43:21 +08:00
Scott Shawcroft
4d7b9cde33
Merge pull request #3109 from pewpew-game/fluff_m0
...
Fluff M0: additional pins on version 1.3 of the board
2020-07-02 15:43:32 -07:00
Radomir Dopieralski
fce35c3481
Fluff M0: additional pins on version 1.3 of the board
2020-07-02 22:57:58 +02:00
Scott Shawcroft
4a21426377
Merge pull request #3103 from hierophect/stm32-simplex-spi-fix
...
STM32: add debug flags, fix hang in simplex SPI
2020-07-02 13:42:08 -07:00
Lucian Copeland
4b66483757
Update submodule, revert direction change
2020-07-02 15:38:37 -04:00
Kamil Tomaszewski
f4a2474447
spresense: Add support for sdioio
2020-07-02 15:26:59 +02:00
Jeff Epler
fcddfd0f39
Merge pull request #3083 from tannewt/esp32s2_busio
...
Add busio support for the ESP32-S2
2020-07-01 21:02:08 -05:00
Lucian Copeland
87d58b3b0a
STM32: add debug flags, fix hang in simplex SPI
2020-07-01 17:48:10 -04:00
Scott Shawcroft
367d3800fc
Return false if we already have the lock
2020-07-01 14:35:25 -07:00
ndgarage
0537f4e775
restore-ndgarage_ndbit6-to-original
2020-07-01 14:12:52 -06:00
ndgarage
c759c9a2aa
add-ndgarage_ndbit6_v2-update
2020-07-01 13:58:07 -06:00
svgops
b80dbb4b2c
add-ndgarage_ndbit6_v2
2020-07-01 12:06:59 -06:00
Lucian Copeland
ab9a64eafa
Add timer allocator, adjust pulsio to use general purpose timers
2020-07-01 10:35:49 -04:00
Jeff Epler
3a17a79bf2
Merge pull request #3094 from kamtom480/mkspk
...
spresense: add elf32.h for mkspk
2020-07-01 06:58:40 -05:00
ansonhe97
d4e28dd233
ADD: added more special pins on Wio Terminal
2020-07-01 17:06:26 +08:00
Dan Halbert
11cb3e3b4b
hci skeleton done; not working yet
2020-06-30 23:19:40 -04:00
Scott Shawcroft
5028804878
Remove fixed pointers and check UART return
2020-06-30 15:29:42 -07:00
Scott Shawcroft
74ad5e80ce
Merge pull request #3089 from ansonhe97/main
...
Add: added Seeed's Wio Terminal Board Support
2020-06-30 10:58:24 -07:00
Scott Shawcroft
69b3d47564
Fix other esp builds
2020-06-29 18:21:53 -07:00
Scott Shawcroft
965a40b6a1
Fix cxd56 function signature
2020-06-29 17:17:46 -07:00
Scott Shawcroft
111f7ddf69
Merge pull request #2863 from jepler/sdcard-in-core
...
Sdcard in core
2020-06-29 16:49:58 -07:00
ansonhe97
4613f80d7a
Fix end of line
2020-06-29 17:41:48 +08:00
ansonhe97
0dd17f4418
Add: Added Seeed Wio Terminal board support
2020-06-29 16:22:41 +08:00
jerryneedell
bbedd43273
change CMake verision requirement
2020-06-27 13:27:42 -04:00
Scott Shawcroft
7f6bef3251
Remove debug prints
2020-06-26 16:56:17 -07:00
Scott Shawcroft
08749630a2
Fix SPI RX and remove debug prints
2020-06-26 16:30:24 -07:00
Scott Shawcroft
2d579cc995
Use NULL for deinited DigitalInOut
...
This fixes a Display issue where no backlight pin is given but it's
still deinitialized.
2020-06-26 12:33:50 -07:00
Scott Shawcroft
a9f257bcd6
Store host_id so that never reset works
2020-06-26 12:32:56 -07:00
Jeff Epler
c5db97c50f
atmel-sam: sdio: disable debug prints by default
2020-06-26 13:16:16 -05:00
Scott Shawcroft
0f074fb956
Merge pull request #3072 from PTS93/patch-2
...
Update minimum required cmake to 3.16
2020-06-26 10:02:24 -07:00
Jeff Epler
f496c0b58d
atmel-samd: Add SDIO SD card interface
2020-06-26 11:50:42 -05:00
Jeff Epler
d4b9458512
samd: sdio: Add needed files from atmel start
2020-06-26 11:50:41 -05:00
Jeff Epler
57fde2e07b
sdcardio: implement new library for SD card I/O
...
Testing performed: That a card is successfully mounted on Pygamer with
the built in SD card slot
This module is enabled for most FULL_BUILD boards, but is disabled for
samd21 ("M0"), litex, and pca10100 for various reasons.
2020-06-26 11:50:23 -05:00
Scott Shawcroft
9ec9644928
Merge pull request #3071 from jgillick/jeremy/stm-nvm-flash
...
STM32 (ThunderPack) - Move NVM sector to increase program size.
2020-06-26 09:45:26 -07:00
Dan Halbert
3e616ccead
update submodules
2020-06-26 12:21:57 -04:00
jgillick
017c188ab5
Move NVM block to increase program size.
2020-06-25 21:46:15 -07:00
Dan Halbert
759929c24a
hci early wip; refactor supervisor bluetooth.c for nrf: tested
2020-06-25 20:57:17 -04:00
Timon
a80d7479d0
Update minimum required cmake to 3.16
...
Earliest tested version that compiles.
Failed with version 3.10
2020-06-26 02:04:14 +02:00
Timon
0a41b86f6b
Fix typo inserting IDF_PATH variable
2020-06-26 01:36:03 +02:00
Lucian Copeland
6c91af7d56
WIP
2020-06-25 17:27:01 -04:00
Jeff Epler
103ad9966a
remove machine_i2c, machine_spi
...
This micropython code is not used in circuitpython
2020-06-25 11:44:21 -05:00
Jeff Epler
1d2cc0b968
I2CPeripheral: Rename class and its module
...
This is an incompatible change.
2020-06-25 11:44:19 -05:00
Jeff Epler
07eb7d653c
Merge pull request #3042 from kamtom480/gnss
...
Add gnss module
2020-06-25 11:08:40 -05:00
Jeff Epler
076a96ccc6
Merge pull request #3046 from jepler/same51
...
Add basic SAM E54 support and SAM E54 Xplained board
2020-06-25 06:55:27 -05:00
Kamil Tomaszewski
436b15e558
spresense: add elf32.h for mkspk
2020-06-25 10:26:33 +02:00
Scott Shawcroft
d768d4d37a
Merge branch 'main' into gnss
2020-06-24 17:17:43 -07:00
Scott Shawcroft
03e5043af4
Turn off Idle WDT and speed up CPU
2020-06-24 13:10:31 -07:00
Scott Shawcroft
ed6e81d688
Switch SPI to polling DMA and enable displayio
2020-06-24 13:10:08 -07:00
Scott Shawcroft
496e16d99b
Handle memory (hopefully). Short TX works
2020-06-24 12:47:59 -07:00
Scott Shawcroft
c5fa9730a8
Compiles!
2020-06-24 12:47:59 -07:00
Scott Shawcroft
fc9c0ba573
Initial SPI implementation. Almost certainly doesn't compile
2020-06-24 12:47:59 -07:00
Scott Shawcroft
f52f60b17d
Add UF2 build target
2020-06-24 12:47:59 -07:00
Scott Shawcroft
7b56617f8e
Turn off stub so flash works over native usb
2020-06-24 12:47:58 -07:00
Scott Shawcroft
a26102607e
Add UART support
2020-06-24 12:47:58 -07:00
Scott Shawcroft
6f050d7af3
Add pull up testing, proper us delay and stop supporting 45 and 46 for I2C
2020-06-24 12:47:58 -07:00
Scott Shawcroft
ae52d052cb
Fix I2C thanks to Mark!
2020-06-24 12:47:58 -07:00
Scott Shawcroft
d0401f02a9
Add initial I2C support, not quite working fully though
2020-06-24 12:47:58 -07:00
Jeff Epler
87835c77e8
Merge pull request #3038 from jepler/compute-usb-devices
...
Compute USB_DEVICES instead of requiring it to be specified
2020-06-24 13:31:56 -05:00
Kamil Tomaszewski
ab4c09cea7
gnss: Add timestamp
2020-06-24 11:14:44 +02:00
Kamil Tomaszewski
3509dad5b3
gnss: Remove start and stop
2020-06-24 11:14:44 +02:00
Kamil Tomaszewski
343f093ead
spresense: Add support for GNSS
2020-06-24 11:14:44 +02:00
Jeff Epler
f232aef786
supervisor.mk: Compute USB_DEVICES; remove from boards and ports
...
Since Actions passed on the previous commit, where this computed value
was checked against the specified value (if any), this is no net change,
except that we no longer need to specify it for particular boards or
ports.
2020-06-23 12:59:01 -05:00
Scott Shawcroft
f67b307371
Merge pull request #3045 from k0d/stm32_alignment_issue
...
Fixes issue with memory alignment in STM32
2020-06-23 10:54:08 -07:00
Jeff Epler
93d3629da2
stm: Sort configuration options and make them all conditional
...
This makes them all overridable on the board level, tersely
2020-06-23 11:02:38 -05:00
Jeff Epler
0110463811
stm: Disable USB MIDI and most USB HID
...
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
2020-06-23 11:01:36 -05:00
Jeff Epler
3f112d28e3
mimxrt10xx: Disable USB MIDI
...
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
2020-06-23 10:57:32 -05:00
Jeff Epler
458eef052e
esp32s2: Disable USB MIDI
...
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
2020-06-23 10:57:25 -05:00
Jeff Epler
38659b566c
atmel-samd: Finish disabling USB MIDI and/or HID on certain boards
2020-06-23 10:56:27 -05:00
Jeff Epler
d5074220a8
atmel-samd: Add SAM E54 Xplained board
...
Few peripherals are actually tested. However, USB, I2C and GPIO seem to work.
Most pins are silkscreened with the "PX00" style, so the board module
only includes the small number that are screened differently.
The default SPI, I2C, and UART are the ones on the EXT2 header. This is
arbitrary, but the I2C on this connector is shared with the on-board I2C
devices and the PCC header, making it the most versatile.
2020-06-23 10:41:48 -05:00
Jeff Epler
da733c01da
atmel-samd: Add support for SAM E54 family MCUs
...
This introduces the new macro SAM_D5X_E5X. This is mostly the same
as SAMD51 before, except in a few places where a special case for
SAME54 is required
2020-06-23 10:41:48 -05:00
Scott Shawcroft
0b99baccb8
Merge pull request #3050 from florin-trutiu/loc-ber-m4-base-board
...
PID request for a new board configuration
2020-06-22 15:09:42 -07:00
Scott Shawcroft
54b66d9484
Merge pull request #3052 from dhalbert/samd51-voltage-check-delay
...
delay 1ms on SAMD51 when reading processor voltage
2020-06-22 14:29:43 -07:00
Jeff Epler
d43449a6d6
sparkfun samd51 thing plus: Fix board.I2C()
...
This had the SDA and SCL pins transposed, so nothing worked.
2020-06-22 10:45:27 -05:00
Jeff Epler
a770b5a919
never_reset_pin: Move pin validity check before first use of pin number
2020-06-22 10:45:27 -05:00
Jeff Epler
6638bc32c3
samd: Makefile: Regularize whitespace
2020-06-22 10:45:27 -05:00
Jeff Epler
8a760b0657
stm: Pin.c: Compute GPIO_PORT_COUNT instead of specifying manually
2020-06-22 10:45:27 -05:00
Jeff Epler
a580f0f1c4
_pew: move to common-hal
...
I noticed that this code was referring to samd-specific functionality,
and isn't enabled except in one samd board (pewpew10). Move it.
There is incomplte support for _pew in mimxrt10xx which then caused build
errors; adding a #if guard to check for _pew being enabled fixes it.
The _pew module is not likely to be important on mimxrt but I'll leave the
choice to remove it to someone else.
2020-06-22 10:45:27 -05:00
Jeff Epler
5a3a0a5092
stm: Makefile: sort files in SRC_STM32
2020-06-22 10:45:23 -05:00
Dan Halbert
1687c8b1e3
delay 1ms on SAMD51 when reading processor voltage
2020-06-19 15:25:04 -04:00
Florin Trutiu
b316549590
Added the new assigned VID/PID pair
2020-06-19 19:26:29 +03:00
Florin Trutiu
178be2e3c9
loc_ber_m4_base_board
2020-06-19 18:56:20 +03:00
Mark Olsson
23da0fa99c
Fixes issue with memory alignment in STM32
...
When compiling with optimizations on, an issue occurs where the claimed_pins/never_reset_pins memory location is shared with another variable. This causes some bad memory read, so the USB pins ended up being reset. Setting these to have an alignment of 4 bytes resolves this.
Tested on nucleo_f746zg
2020-06-18 00:51:04 +02:00
Scott Shawcroft
a345223dac
Merge pull request #3031 from jepler/improve-shared-bindings-links
...
docs: Improve 5.0.x <-> main branch doc linkrot
2020-06-16 11:49:27 -07:00
Lucian Copeland
fd4aafacbe
Add port D to LQFP64
2020-06-16 12:33:15 -04:00
Jeff Epler
9d5ccccf7d
cxd56: Disable HID and MIDI
...
These are already disabled via the USB_DEVICES setting, but the code is
included anyway.
2020-06-15 15:22:45 -05:00
Jeff Epler
a9614bb964
cxd56: Sort the configuration settings
2020-06-15 15:22:45 -05:00
Lucian Copeland
2aac3cbdce
Revert I2C timing overrides, reduce scope to module only
2020-06-15 13:51:09 -04:00
Jeff Epler
3c3cad5ae6
docs: Improve 5.0.x <-> main branch doc linkrot
...
This improves, but does not entirely fix, the broken links that result
from the autoapi change. It fixes module-level links, but class links
still do not work (e.g., /shared-bindings/displayio/Palette.html (5.0.x)
is now just /shared-bindings/displayio/#displayio.Palette).
2020-06-14 11:12:35 -05:00
Scott Shawcroft
e27f68ffe7
Merge pull request #3025 from hierophect/stm32-f7-startup
...
STM32: Add DTCM and ITCM support to F7 series
2020-06-11 11:03:48 -07:00
Lucian Copeland
724637faa3
Move I2C speed to clock-style definition
2020-06-11 11:17:51 -04:00
Lucian Copeland
c08702414e
Add macros for setting correct F7 and H7 I2C timing
2020-06-10 16:36:44 -04:00
Lucian Copeland
bf3a5afca1
Merge branch 'stm32-f7-startup' into stm32-i2cspeed
2020-06-10 16:16:15 -04:00
Lucian Copeland
c88a8e66c6
Minor comment fix
2020-06-10 13:22:21 -04:00
Lucian Copeland
7cc8b784c3
Add missing openmv definitions
2020-06-10 10:31:24 -04:00
Lucian Copeland
b414f82669
Add DTCM and ITCM support to F7 series
2020-06-09 18:01:52 -04:00
Scott Shawcroft
9b8d648986
Merge pull request #3020 from DavePutz/issue2958
...
Issue #2958 Correct calculation of subticks being returned from port_get_raw_ticks() for esp32s2
2020-06-09 12:41:18 -07:00
DavePutz
ec7a3feeba
Redid formula for calculating subticks
...
changed subticks calculation to give a range from 0 to 32767.
2020-06-09 10:08:49 -05:00
Scott Shawcroft
0ba541d498
Merge pull request #3017 from Nicell/nice_nano
...
Add nice!nano board support
2020-06-08 14:47:22 -07:00
DavePutz
d8bb2d7c6d
Correct ticks being returned from port_get_raw_ticks()
...
Issue #2958 . Correct calculation of usec back to ticks in port_get_raw_ticks().
2020-06-08 10:52:27 -05:00
Scott Shawcroft
004d644184
Merge pull request #3009 from hierophect/stm32-LSE-startup-fix
...
STM32: Rework LSE clock init, allow clock overrides
2020-06-07 22:37:53 -07:00
Nick
33496e9c68
Add nice!nano board support
2020-06-05 19:58:54 -05:00
Lucian Copeland
93cffaa87e
Fix pin macros typo, add extra flash protection
2020-06-05 16:43:08 -04:00
Lucian Copeland
ad0971fb25
Override HAL_Delay and HAL_GetTick
2020-06-05 13:56:32 -04:00
Scott Shawcroft
6400113bb9
Merge pull request #3001 from hierophect/mimxrt-teensy-boot
...
mimxrt10xx: Disable pin_reset on 1060 boards
2020-06-05 10:28:53 -07:00
Lucian Copeland
a0977cac7b
Merge remote-tracking branch 'upstream/master' into stm32-LSE-startup-fix
2020-06-04 16:15:38 -04:00
Lucian Copeland
74effeeefd
Add temporary fix warning
2020-06-04 13:30:07 -04:00
Lucian Copeland
d14e34449b
Rework LSE clock init, allow clock overrides
2020-06-04 13:21:29 -04:00
Lucian Copeland
c93ccd1e91
Disable pin resets on the 1060
2020-06-03 12:07:08 -04:00
Diego Elio Pettenò
dd5d7c86d2
Fix up end of file and trailing whitespace.
...
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-03 10:56:35 +01:00
Lucian Copeland
b5b9a56918
Update teensy 4.0/4.1 pin protections
2020-06-02 18:05:59 -04:00
Scott Shawcroft
db04fd1725
Merge pull request #2933 from simmel-project/wdt-nrf
...
Add Watchdog timer and add support for NRF watchdog
2020-06-02 10:33:24 -07:00
Sean Cross
ed8a52d1db
litex: remove call to board_init()
...
These calls were all moved into `main.c`, however this call was not
removed from litex. As a result, litex was calling `board_init()` twice.
This is currently not a problem, as `fomu` is able to be initialized
twice without issue, however future boards may have issue with this.
This fixes #2991 .
Signed-off-by: Sean Cross <sean@xobs.io>
2020-06-02 10:19:40 +08:00
Scott Shawcroft
959f7297da
Merge remote-tracking branch 'adafruit/master' into wdt-nrf
2020-06-01 17:01:16 -07:00
Scott Shawcroft
4146d6f872
Merge pull request #2890 from jepler/nrf-audio-tick
...
nrf: put supervisor enable/disable tick in place
2020-06-01 15:51:22 -07:00