Hany Elkomy
f3fb014166
Delete mpconfigboard.h
2020-12-17 17:08:50 +08:00
Hany Elkomy
1284418fa7
Delete mpconfigboard.mk
2020-12-17 17:08:48 +08:00
Hany Elkomy
736c0d4c3d
Delete pins.c
2020-12-17 17:08:46 +08:00
Hany Elkomy
0a7c74230c
Update mpconfigboard.mk
...
updated for 6.1
2020-12-17 16:26:54 +08:00
Hany Elkomy
109e147b46
Update board.c
...
updated path to board.h
2020-12-17 16:22:47 +08:00
Hany Elkomy
23ad9c7402
Update mpconfigboard.h
...
removed whitespace
2020-12-17 15:17:04 +08:00
Hany Elkomy
3d9e4958c5
Add files via upload
2020-12-17 14:24:24 +08:00
Hany Elkomy
f3b7cd6a5d
Delete pins.c
2020-12-17 14:24:07 +08:00
Hany Elkomy
70739ff639
Update pins.c
2020-12-17 13:11:53 +08:00
Hany Elkomy
fac0bf1db8
Add files via upload
2020-12-17 12:37:32 +08:00
Scott Shawcroft
0dcc659d53
Swap to IDF release/4.2 branch for stability
2020-12-15 18:12:59 -08:00
Scott Shawcroft
1ad49d9a18
Add alarm.pin that wakes on pin level
...
Fixes #3787
2020-12-15 18:12:59 -08:00
hierophect
3ad4b12ce1
Merge branch 'main' into esp-analog-hang
2020-12-15 15:08:30 -05:00
Dan Halbert
4521dfb732
squeeze some smaller boards
2020-12-15 13:23:49 -05:00
Dan Halbert
fb33c4e1c0
-ftree-vrp better diagnostics on -Os builds; -fno-inline-functions for -O2; fix struct init in HCI bleio
2020-12-15 12:23:56 -05:00
Jeff Epler
bbbd621b18
nrf: simmel: remove some unneeded modules to make it fit
2020-12-15 10:54:37 -06:00
Dan Halbert
97947b4fe9
shrink bast_pro_mini_m0; use proper flex-array syntax
2020-12-14 22:07:54 -05:00
Scott Shawcroft
d076296659
Merge pull request #3816 from dhalbert/sleepmemory
...
alarm.sleep_memory + alarm.wake_alarm
2020-12-14 17:40:02 -08:00
Scott Shawcroft
d6ee17c6fd
Merge pull request #3817 from BennyE/reserve-pins-only-for-debug
...
esp32s2: Reserve UART pins only if DEBUG=1 is set to address issue 3811
2020-12-14 17:32:17 -08:00
Scott Shawcroft
a1f773d9ed
Merge pull request #3819 from BennyE/issue3663
...
Fix for issue 3663 by returning early if no scan was started before s…
2020-12-14 17:11:18 -08:00
Scott Shawcroft
dc473b29e3
Merge pull request #3643 from hierophect/esp32-pin-reset
...
ESP32-S2: Add IDF pin resets to Microcontroller
2020-12-14 17:09:29 -08:00
Dan Halbert
6abe3cd0ef
-Os for SAMD51; fix CSUPEROPT typo
2020-12-14 18:57:31 -05:00
Lucian Copeland
d793ec2872
Change pinfunc to default of 0 at reset
2020-12-14 14:25:38 -05:00
Lucian Copeland
cac755ba16
Merge remote-tracking branch 'upstream/main' into esp-analog-hang
2020-12-14 13:00:57 -05:00
Lucian Copeland
f15e2d86c0
Reduce samples from 64 to 2
2020-12-14 12:59:20 -05:00
Dan Halbert
e0afa32cfa
use RTC_DATA_ATTR; address review comments
2020-12-14 11:36:54 -05:00
BennyE
210c0ec89c
add country(code) to wifi network objects)
2020-12-13 13:32:12 +01:00
Thea Flowers
fe32dd08b8
Update Big Honking Button configuration to support its newest board revision.
...
v5 of the BHB board has:
* GD25Q64C instead of the GD25Q16C.
* Pin PB10 tied to ground for board revision detection.
2020-12-12 19:16:35 -05:00
microDev
37ee5e683d
Merge branch 'main' into ota-s2
2020-12-12 05:25:46 +05:30
BennyE
c5c13620f2
Fix for issue 3663 by returning early if no scan was started before stop is issued
2020-12-12 00:49:53 +01:00
BennyE
81c4871fdf
Set DEBUG CFLAG if set in make
2020-12-11 22:11:39 +01:00
BennyE
e3194ad54e
Reserve UART pins only if DEBUG=1 is set to address issue 3811
2020-12-11 20:35:28 +01:00
Dan Halbert
cf938983e9
SleepMemory + set alarm.wake_alarm
2020-12-11 08:10:26 -05:00
microDev
cb35abfd04
add docs, update translation & fix ota.flash()
2020-12-11 01:01:01 +05:30
Dan Halbert
55f4110983
fix typo
2020-12-10 14:16:25 -05:00
Dan Halbert
5964163649
Initial SleepMemory code
2020-12-10 13:03:40 -05:00
microDev
6a4f74946f
reset ota module on every vm run
2020-12-10 16:48:58 +05:30
microDev
07015ad527
add ability to switch boot partition
2020-12-10 16:42:45 +05:30
microDev
bfa2c604ef
add ability to flash in discontinuous chunks
2020-12-10 15:45:25 +05:30
microDev
ed5add37f6
add ability to flash in continuous chunks
2020-12-10 14:36:49 +05:30
microDev
dee86a014b
factor out esp_ota_end
2020-12-10 14:04:24 +05:30
microDev
20c3184c87
re-organize and clean-up
2020-12-10 12:34:56 +05:30
Scott Shawcroft
e14b148e62
Merge pull request #3803 from skieast/fix_i2c_hang_with_wifi
...
Working, tested with two i2c busses
2020-12-09 10:03:31 -08:00
Scott Shawcroft
133013083a
Merge pull request #3808 from tannewt/panic_safe_mode
...
Enter safe mode after panic or brownout
2020-12-08 16:31:22 -08:00
Scott Shawcroft
57101d7da6
Merge pull request #3807 from tannewt/sleep_tweaks
...
Add `board_deinit` for use with sleep
2020-12-08 16:30:41 -08:00
Lucian Copeland
9a5006e241
Remove problematic calloc
2020-12-08 17:43:39 -05:00
Scott Shawcroft
0b4bcd9599
Fix build and more comments
2020-12-08 13:05:21 -08:00
Scott Shawcroft
d0a806d797
Enter safe mode after panic or brownout
...
Uses the IDF's reset reason. Does nothing before reset.
Fixes #3389
2020-12-08 11:03:24 -08:00
Scott Shawcroft
40118bcf57
Add `board_deinit` for use with sleep
...
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)
Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.
Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.
ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.
Fixes #3786
2020-12-08 10:52:25 -08:00
microDev
2f95c94ad8
esp32s2 - update common_hal_mcu_reset
2020-12-08 18:00:58 +05:30
microDev
602243748b
add ota support for esp32s2
2020-12-08 11:45:00 +05:30
microDev
fc23a0cc8a
implement ota module
2020-12-08 11:30:00 +05:30
Bruce Segal
571c063c2a
Working, tested with two i2c busses
2020-12-07 17:57:54 -08:00
Scott Shawcroft
44b56f76c4
Store safe mode state in the RTC.
...
Also print backtrace before reset when DEBUG. This will help debug
safe mode issues which calls reset.
2020-12-07 16:39:54 -08:00
Scott Shawcroft
22ad76bb48
Merge pull request #3800 from BennyE/wifi-better-logs
...
Enhance debug log for wifi scan, sta_start, sta_stop
2020-12-07 12:32:15 -08:00
Lucian Copeland
c1a2ea27ce
Change to config-based resets
2020-12-07 13:57:47 -05:00
Lucian Copeland
c7b5928833
Fix submodule desync
2020-12-07 11:47:39 -05:00
Lucian Copeland
40a536904f
Merge remote-tracking branch 'upstream/main' into esp32-pin-reset
2020-12-07 11:45:27 -05:00
Dan Halbert
169b487509
Include wifi.radio singleton in gc
2020-12-07 11:07:56 -05:00
BennyE
70827ac3da
debug log for wifi scan, start stop
2020-12-06 23:38:04 +01:00
Scott Shawcroft
1130b80e2a
Merge pull request #3612 from gamblor21/bus_device
...
Moving Adafruit_CircuitPython_BusDevice to core
2020-12-02 13:23:02 -08:00
Dan Halbert
348392f8cc
Merge pull request #3775 from tannewt/nina_certs
...
Use nina-fw root certs
2020-12-02 16:13:19 -05:00
Dan Halbert
9b3186b625
Merge pull request #3776 from tannewt/backup_socket_timeout
...
Two minor socket changes
2020-12-02 16:12:29 -05:00
Dan Halbert
31acfedf93
Merge pull request #3780 from tannewt/block_while_erasing
...
Block all tasks (not interrupts) during flash erase
2020-12-02 16:10:25 -05:00
Scott Shawcroft
d7ba641ff6
Merge pull request #3767 from dhalbert/sleep
...
Initial alarm and sleep PR: time alarms with light and deep sleep; PinAlarms not yet implemented
2020-12-02 12:51:43 -08:00
gamblor21
cb863e4c5c
Added to partial builds where frozen removed
2020-12-01 22:19:48 -06:00
Scott Shawcroft
73e22f9eeb
Block all tasks (not interrupts) during flash erase
...
Otherwise we risk running code from flash while an erase is in
progress, crashing and corrupting the file system.
Related to #3744
2020-12-01 18:15:06 -08:00
gamblor21
fe1c2fa6f0
Removed bus device from simmel build
2020-12-01 19:11:17 -06:00
Dan Halbert
8b7c23c1ee
address review comments
2020-12-01 20:01:14 -05:00
Mark
237385798c
Merge branch 'main' into bus_device
2020-12-01 15:47:16 -06:00
Scott Shawcroft
927624468d
Two minor socket changes
...
* Remove BrokenPipeError and prefer to return the number of bytes
received. (May be zero.)
* Add two minute backup timeout to reduce the chance we hang on
recv accidentally.
2020-11-30 18:39:50 -08:00
Scott Shawcroft
4ac4faaaf6
Use nina-fw root certs
...
That way we have one set we use for all of Adafruit's connected
devices.
2020-11-30 17:02:26 -08:00
Scott Shawcroft
5b3c930e38
Merge pull request #3738 from microDev1/fix-touch
...
ESP32S2: Fix multiple touchpad don't work simultaneously
2020-11-30 16:03:16 -08:00
Scott Shawcroft
a975ef4971
Merge pull request #3695 from cwalther/movable
...
Add movable supervisor allocations
2020-11-30 16:00:55 -08:00
Scott Shawcroft
98cf7f67d4
Merge pull request #3773 from dhalbert/no-samd21-complex-arithmetic
...
Disable complex arithmetic on SAMD21 builds to make space
2020-11-30 13:47:56 -08:00
Dan Halbert
dbfabddf58
rename ESP TX and RX pins; remove support
2020-11-30 11:11:04 -05:00
Dan Halbert
9768951a2a
Disable complex arithmetic on SAMD21 builds to make space
2020-11-29 15:34:38 -05:00
Dan Halbert
848eb28132
esp-uart-pins
2020-11-28 14:52:56 -05:00
Christian Walther
c7404a3ff8
Add movable allocation system.
...
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap.
By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
2020-11-28 17:50:23 +01:00
Dan Halbert
28d9e9186e
Disable complex arithmetic on SAMD21 builds to make space
2020-11-28 10:12:46 -05:00
Dan Halbert
596e0e4bd2
merge from upstream
2020-11-27 16:06:57 -05:00
Dan Halbert
e308a9ec11
working! PinAlarm not implemented yet.
2020-11-27 16:03:37 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
microDev
e90cb3ad86
Merge branch 'main' into fix-touch
2020-11-26 11:33:45 +05:30
microDev
6af48bb24c
reset touchin on every vm run
2020-11-26 11:22:44 +05:30
Jeff Epler
7923aa0a62
Merge pull request #3708 from hierophect/esp32s2-udp
...
ESP32-S2: Add UDP with recvfrom_into and sendto
2020-11-25 21:11:20 -06:00
Jeff Epler
6fd123a5c4
Merge pull request #3758 from tannewt/update_connect_doc
...
Update wifi.Radio.connect doc
2020-11-25 21:09:56 -06:00
Scott Shawcroft
abff2615cb
Merge pull request #3754 from hierophect/esp-spi-pinclaim
...
ESP32S2: fix pin claiming bugs
2020-11-25 15:11:29 -08:00
Dan Halbert
ef0830bfe2
merge from upstream + wip
2020-11-25 17:52:06 -05:00
Dan Halbert
9dbea36eac
changed alarm.time API
2020-11-25 15:09:27 -05:00
Lucian Copeland
a854da35d3
Fix masking issue causing pin claim problems
2020-11-25 12:14:56 -05:00
Lucian Copeland
c9bc877683
Merge remote-tracking branch 'upstream/main' into esp-spi-pinclaim
2020-11-25 10:43:35 -05:00
Scott Shawcroft
9a692c3222
Exit faster on recv when TLS connection closed
...
When a TLS connection is closed by the server it usually sends a
notice. We see this incoming byte with lwip_ioctl and try to read
it. The read returns 0 but we keep trying anyway. Now, we quit
trying when we get zero back. If the connection was still alive
it'd either read a byte or delay until a byte could be read.
2020-11-24 18:14:22 -08:00
Scott Shawcroft
4ac11c8d31
Update wifi.Radio.connect doc
...
Now it includes bssid info.
2020-11-24 17:54:39 -08:00
Jeff Epler
e778fc1f87
Merge pull request #3741 from hathach/fix-cdc-connection-race
...
update tinyusb to fix cdc connection race
2020-11-24 19:11:41 -06:00
hierophect
510f464234
Merge branch 'main' into esp32s2-udp
2020-11-24 18:28:10 -05:00
Scott Shawcroft
8364734ba3
Merge pull request #3749 from skerr92/add-cpsapling-spiflash
...
Add cpsapling spiflash
2020-11-24 15:22:21 -08:00
Jeff Epler
c451b22255
Disable 3-arg pow() function on m0 boards
...
`pow(a, b, c)` can compute `(a ** b) % c` efficiently (in time and memory).
This can be useful for extremely specific applications, like implementing
the RSA cryptosystem. For typical uses of CircuitPython, this is not an
important feature. A survey of the bundle and learn system didn't find
any uses.
Disable it on M0 builds so that we can fit in needed upgrades to the USB
stack.
2020-11-24 16:54:33 -06:00
Scott Shawcroft
669f17e5bf
Merge pull request #3678 from microDev1/nvm-s2
...
ESP32S2: Support for NVM
2020-11-24 14:45:35 -08:00
Lucian Copeland
59458a9013
Add pin claiming to SPI construct
2020-11-24 16:46:11 -05:00