Scott Shawcroft
b578afa02f
Merge pull request #3523 from tannewt/ble_connectionerror
...
Replace _bleio.ConnectionError with the native version
2020-10-08 13:00:06 -07:00
Lucian Copeland
5af1e054a7
Fix strange merge submodule edit
2020-10-08 14:57:41 -04:00
Lucian Copeland
b5f8321d37
Merge branch 'esp32-analogin' into esp32-analogout
2020-10-08 12:42:00 -04:00
Lucian Copeland
97d217a764
Merge remote-tracking branch 'upstream/main' into esp32-analogin
2020-10-08 12:34:58 -04:00
hierophect
4bec77652b
Merge pull request #3519 from hathach/fix-idf-latest
...
fix espressif latest idf
2020-10-08 12:22:24 -04:00
hathach
e1fc85c56b
fix usb issue with latest idf
2020-10-08 13:30:32 +07:00
Seon Rozenblum
d93a1961c4
Fixed the FeatherS2 prerelease hardware name
2020-10-08 14:03:16 +11:00
Scott Shawcroft
9fcf96cb64
Replace _bleio.ConnectionError with the native version
...
Replace uses of _bleio.ConnectionError with regular ConnectionError
Fixes #3008
2020-10-07 17:11:32 -07:00
Scott Shawcroft
ef42d6bb6c
Update USB PID
2020-10-07 16:12:07 -07:00
Scott Shawcroft
09bc415751
Unify iMX flash config and add Metro M7 1011
...
This unifies the flash config to the settings used by the Boot ROM.
This makes the config unique per board which allows for changing
quad enable and status bit differences per flash device. It also
allows for timing differences due to the board layout.
This change also tweaks linker layout to leave more ram space for
the CircuitPython heap.
2020-10-07 15:23:47 -07:00
gamblor21
085d2a2274
Update submodule to merge commit
2020-10-07 14:09:26 -05:00
hathach
b7ed18d622
change idf to espressif
...
fix hal includes
2020-10-08 00:52:00 +07:00
Lucian Copeland
9ac0aae5a9
Merge remote-tracking branch 'upstream/main' into esp32-analogout
2020-10-07 12:21:04 -04:00
Lucian Copeland
7386a948bd
Merge remote-tracking branch 'upstream/main' into esp32-analogin
2020-10-07 12:20:30 -04:00
Jeff Epler
16ed875f4e
canio: remove unused fields
...
these relate to properties that were removed as well
2020-10-06 20:14:50 -05:00
Jeff Epler
81d7ef0256
stm: canio: remove stray optimization flag for debugging
2020-10-06 20:13:23 -05:00
Jeff Epler
eed3387f4e
stm32: canio: Fix message cancellation
...
.. it's necessary to wait for a cancellation request to actually free
the respective Tx mailbox
2020-10-06 20:12:10 -05:00
Jeff Epler
abe0405d6e
stm32: canio: Fix canio.CAN.restart()
2020-10-06 20:12:06 -05:00
Jeff Epler
e5a0af9216
stm32: canio: When Tx mailboxes are full, cancel an old message
...
.. also add the 8ms wait for transmission that the atmel sam port
has
2020-10-06 20:11:58 -05:00
Jeff Epler
a7dccb39a4
stm32: canio: remove unused functions
2020-10-06 20:11:51 -05:00
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
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
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
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
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
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