lady ada
999ee68e12
try adding new feather def
2021-01-09 12:22:53 -05:00
foamyguy
13efbf24e5
disable msgpack on boards without room
2021-01-09 10:33:56 -06:00
Caio Henrique de Queiroz Katayama
7b4558b750
Fix socket.recvfrom_into()
2021-01-08 19:17:17 -05:00
anecdata
06ab848a0d
added platform
2021-01-08 16:48:25 -06:00
jerryneedell
de5b138dcf
remove commented line
2021-01-08 14:46:37 -05:00
jerryneedell
7556f38f04
initialize LDO2 in board_init()
2021-01-08 14:40:06 -05:00
Dan Halbert
39c166ba6a
update tinyusb; _ticks_enabled only for SAMD21
2021-01-08 13:30:11 -05:00
Jeff Epler
5f0e41ad60
I2SOut: Enable ticks during audio playback
...
.. otherwise, the background callback to load the I2S fifos does not get
run. (I'm not sure this is _correct_ behavior of sleep + background
tasks, but it is the current behavior)
2021-01-08 09:01:34 -06:00
Jeff Epler
430bcdb59d
port_i2s_play: fill the initial buffer via background callback
...
There were _possibly_ problems where this routine was being entered
by direct call AND by background callback. Schedule the work here,
and it will be done almost immediately, without worry about interference.
I don't know if this is strictly necessary, but it doesn't hurt. Since
the I2S clock is being run all the time, we have to enter the background
task to fill the FIFO with zeros constantly anyway.
2021-01-08 08:49:25 -06:00
Jeff Epler
12264cca34
port_i2s_play: remove build error
2021-01-08 08:47:13 -06:00
Jeff Epler
0b7a4c4b2b
i2s_fill_buffer: remove debug print
2021-01-08 08:46:56 -06:00
Jeff Epler
873a300d02
i2s_fill_buffer: Need to fill with zeros when stopping
2021-01-08 08:46:41 -06:00
Jeff Epler
cfd8288dfa
esp2s2: enlarge stack-buffer, use it instead of i2s_zero_dma_buffer
...
.. it's not clear that there was a problem with i2s_zero_dma_buffer, but
just in case.
2021-01-07 16:29:52 -06:00
Jeff Epler
d3afda61d8
esp32s2: i2s: must reset buffer, otherwise wave samples don't start
...
.. and other housekeeping when starting to play a sample
2021-01-07 16:29:08 -06:00
Jeff Epler
352226402c
esp32s2: i2s: fix accounting for "stretched" frames
2021-01-07 16:28:33 -06:00
Jeff Epler
010a4e7b0f
esp32s2: port: Ensure JTAG pins are available for debugging
2021-01-07 16:23:21 -06:00
Bernhard Boser
c7dc5f2507
support RTS/CTS hardware flow control
2021-01-07 14:13:19 -08:00
BennyE
115f3e0867
Updated code as per helpful suggestion
2021-01-07 23:05:16 +01:00
Jeff Epler
7bb196b9d2
esp32s2: 'make flash': Allow customizing the esptool flags
...
This can be useful so that e.g., on a Kaluga when programming via
the FTDI chip, you can override the variable to specify "--after=hard_reset"
to automatically return to running CircuitPython, choose a different
baud rate (921600 is about 2s faster than 460800), etc:
make BOARD=espressif_kaluga_1 ESPTOOL_FLAGS="-b 921600 --before=default_reset --after=hard_reset"
2021-01-07 15:01:33 -06:00
Jeff Epler
30c6dd3f76
Merge remote-tracking branch 'origin/main' into audioout-esp32
2021-01-07 14:11:14 -06:00
jerryneedell
6976ec6ef9
Merge remote-tracking branch 'upstream/main' into jerryn_feathers2_led
2021-01-07 15:02:40 -05:00
Scott Shawcroft
55c80754c7
Merge pull request #3945 from 2bndy5/fix-table-in-a-readme
...
convert esp32s2 port readme to rst
2021-01-07 10:43:34 -08:00
Scott Shawcroft
0b0b476be6
Merge pull request #3940 from caternuson/magtag_accelo_irq_pin
...
Add MagTag accelo IRQ pin
2021-01-07 10:31:33 -08:00
Dan Halbert
5358524941
Merge pull request #3939 from dhalbert/tick-overflow
...
overflowed tick counter needs 64 bits everywhere
2021-01-07 13:01:30 -05:00
brendan
18122e0455
missed a couple inline code snippets
2021-01-06 15:28:19 -08:00
brendan
092331eee1
convert esp32s2 readme to rst
2021-01-06 15:19:40 -08:00
BennyE
66d87782be
Adding authmode keyword
2021-01-06 23:52:30 +01:00
caternuson
9db0a4f265
add magtag accelo irq pin
2021-01-06 09:17:19 -08:00
Scott Shawcroft
a33359762d
Merge pull request #3903 from anecdata/reasons
...
ESP32-S2: Log all Wi-Fi events & remove unneeded call
2021-01-06 08:41:19 -08:00
Dan Halbert
9a1d864331
overflowed tick counter needs 64 bits everywhere
2021-01-06 11:09:06 -05:00
jerryneedell
14e2a02c04
Merge remote-tracking branch 'upstream/main' into jerryn_feathers2_led
2021-01-06 05:47:37 -05:00
anecdata
98c9492a8c
change ESP_EARLY_LOG* to ESP_LOG* throughout event_handler
2021-01-05 18:39:51 -06:00
iot49
1a82555803
Merge branch 'main' into msgpack
2021-01-05 11:19:11 -08:00
Kattni Rembor
bbd4de33d1
Add adafruit_bus_device to CPX builds.
2021-01-04 15:53:39 -05:00
jerryneedell
ec02102409
implment use of DotStar for staus led
2021-01-04 07:41:25 -05:00
Limor "Ladyada" Fried
dcf88e1e91
Merge pull request #3923 from bwshockley/Add_dotstar_mini_sam_m4
...
Add dotstar mini sam m4
2021-01-03 19:40:43 -05:00
Seon Rozenblum
10f178d162
Fixed incorrect pin assignment on header
...
IO13 is for blue LED
IO14 is the correct pin header between IO18 and IO12
The silk is wrong (shows IO13), but hardware is correct as IO14, but IO14 was not included in pins.c
Silk will be updated on next PCB production run
2021-01-04 10:06:32 +11:00
Benjamin Shockley
9286f26831
Added CP Dotstart Lib to Build
...
Added the CircuitPython dotstar library to the Mini SAM M4 build so users do not have to include the library to utilize the built-in APA102 LED.
2021-01-03 10:42:58 -06:00
askpatricw
2ce07209df
changes based on UM's input
2021-01-01 17:23:11 -08:00
askpatricw
220501e159
dupe LED entries
2020-12-31 18:02:44 -08:00
askpatricw
43f93b097f
release and pre-release FeatherS2 NSync
2020-12-31 17:50:41 -08:00
Jeff Epler
5698b8bb0a
Merge pull request #3850 from microDev1/touch-s2
...
Support for Touch Alarm
2020-12-30 16:25:11 -06:00
microDev
0bad6110d4
update wake-alarm implementation
2020-12-31 02:44:20 +05:30
microDev
b83bdc540d
enable light-sleep functionality
2020-12-31 02:22:20 +05:30
Dan Halbert
fb216148ec
Merge pull request #3900 from jepler/restore-frozen-busdevice
...
Restore frozen adafruit_bus_device module
2020-12-30 13:22:46 -05:00
microDev
28ce5e8988
Merge branch 'main' into touch-s2
2020-12-30 22:44:22 +05:30
Jeff Epler
83c6774a44
Revert "Removing frozen libs"
...
This reverts commit 23ed3ef971
.
2020-12-30 10:55:28 -06:00
microDev
c7f68022ef
add pretend-to-sleep functionality
2020-12-30 22:11:22 +05:30
anecdata
d537d94a4c
see what we're missing
2020-12-30 09:45:15 -06:00
anecdata
0914b71653
remove unneeded set_config (wrong param; called in connect anyway)
2020-12-30 09:26:25 -06:00
Hugo Dahl
72cad49c69
Fix minor typo in ESP32S2 readme
2020-12-29 22:52:59 -06:00
Jeff Epler
a7542598a0
esp32s2: add I2SOut
2020-12-29 14:46:38 -06:00
Jeff Epler
b40a579d18
esp32s2: espidf: Consistent error checking of esp-idf calls
...
By surrounding most ESP-IDF API calls with this new macro, their failure will
result in a CircuitPython exception.
2020-12-29 14:06:32 -06:00
Jeff Epler
05ba1431c3
esp32s2: espidf: Add IDFError
...
this is an exception class for "generic" IDF errors that don't have
their own exception type.
2020-12-29 14:06:32 -06:00
Jeff Epler
d024df6b06
esp32s2: Use better optimizer flags in debug builds
...
(note that the before and after files both lack trailing newlines; this is
how the esp-idf do)
OPTIMIZATION_DEFAULT is -Og, which enables optimizations that do not
interfere with the debugger:
```
elseif(CONFIG_COMPILER_OPTIMIZATION_DEFAULT)
list(APPEND compile_options "-Og")
```
2020-12-29 14:06:32 -06:00
Jeff Epler
7401aa8e85
Merge pull request #3888 from microDev1/fix-reset-pin
...
FIX : common_hal_reset_pin()
2020-12-29 10:08:47 -06:00
Scott Shawcroft
f9d9c031a9
Merge pull request #3878 from xobs/fomu-fixes-6.0.0
...
Fomu fixes for 6.0.0
2020-12-28 11:51:26 -08:00
Scott Shawcroft
c3396e4b49
Merge pull request #3868 from BennyE/wifi-enhancement-countrycode
...
esp32-s2: wifi enhancement to include countrycode
2020-12-28 11:49:41 -08:00
Dan Halbert
171efd55e0
Merge pull request #3830 from tannewt/pin_alarm
...
Add pin alarming
2020-12-28 12:59:27 -05:00
microDev
dc332baa87
update common_hal_reset_pin()
2020-12-28 20:04:00 +05:30
Scott Shawcroft
6c7e6abcfd
Downgrade OTA API for IDF 4.2
2020-12-27 20:30:49 -08:00
Uwe Gartmann
2729666d82
SAMD51: change of DAC power setting
...
Fixes wrong DAC output levels at high data rate
closes adafruit#3796
2020-12-25 17:53:43 +01:00
BennyE
64bb055700
Updating comment to reflect feedback of espressif from IDFGH-4486 -> works correct as per the protocol
2020-12-24 15:40:53 +01:00
Sean Cross
2f95cc95a4
litex: move more critical code to RAM
...
The XIP SPI flash on Fomu is slow, which results in certain operations
taking a long time. This becomes a problem for time-critical operations
such as USB.
Move various calls into RAM to improve performance.
This includes the call to __modsi3 and __udivsi3 which are used by the
supervisor handler to determine if periodic callbacks need to be run.
This finishes fixing #3841
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-24 14:06:57 +08:00
Sean Cross
f3e54414e5
litex: ensure we don't re-enable interrups during ISR
...
During an interrupt handler, interrupts are implicitly disabled. They
will be re-enabled when the interrupt handler returns.
Due to some changes that were made, varous calls will re-enable
interrupts after they're finished. Examples of this include calling
`CALLBACK_CRITICAL_END` and getting the number of ticks with
`port_get_raw_ticks()`.
This patch prevents this from happening by doing two things:
1. Use standard calls in `port_get_raw_ticks()` to disable and re-enable
interrupts, preventing nesting issues, and
2. Increase the nesting count inside `isr()`, reflecting the implicit
call that is made by hardware when an interrupt is handled
This helps to address #3841 .
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-24 14:03:10 +08:00
Dan Halbert
8061a2574d
Merge branch 'main' into pin_alarm
2020-12-23 22:05:02 -05:00
BennyE
1a6b1b1953
implementing suggested changes
2020-12-24 00:37:37 +01:00
Dan Halbert
a11ad25727
BLE fixes
2020-12-23 16:39:27 -05:00
Scott Shawcroft
1a8033470a
Stub out mp_hal_is_interrupted for UNIX
2020-12-23 12:22:50 -08:00
Scott Shawcroft
eb65765d52
Merge pull request #3867 from dhalbert/frequencyin-fix-6.0.x
...
FrequencyIn: do not raise in interrupt handler
2020-12-23 12:14:16 -08:00
BennyE
e9c9fce15d
Remove debug log messages
2020-12-23 14:59:09 +01:00
Scott Shawcroft
1fca297a2d
A couple sleep fixes
...
* Better messaging when code is stopped by an auto-reload.
* Auto-reload works during sleeps on ESP32-S2. Ticks wake up the
main task each time.
* Made internal naming consistent. CamelCase Python names are NOT
separated by an underscore.
2020-12-22 16:13:02 -08:00
Dan Halbert
89079039ad
FrequencyIn: do not raise in interrupt handler
2020-12-22 18:54:42 -05:00
Scott Shawcroft
8b03951fee
Merge pull request #3866 from jepler/use-stub
...
esp32s2: make flash: use the stub
2020-12-22 10:16:54 -08:00
Jeff Epler
da8f023665
esp32s2: make flash: use the stub
...
Very long ago, this was apparently not supported in esptool yet, at
least when operating over USB CDC. This now works just fine, and
our esp webtool relies on it as well. It makes flashing faster,
too.
2020-12-22 10:27:42 -06:00
Dan Halbert
d4e9eea397
mark alarm.wake_alarm during gc sweep
2020-12-22 08:11:01 -08:00
Jonathan Giles
aaa3c61819
Add default I2C pins for STM32F411CE
2020-12-22 09:11:05 -05:00
Dan Halbert
d6df43b943
Merge pull request #3863 from dhalbert/adafruit-prefix
...
Add Adafruit to MICROPY_HW_BOARD_NAME for various boards
2020-12-22 08:02:35 -05:00
Dan Halbert
39ca406a31
Add Adafruit to MICROPY_HW_BOARD_NAME for various boards
2020-12-21 23:32:11 -05:00
Scott Shawcroft
6347a3fcdb
Merge pull request #3812 from microDev1/ota-s2
...
Support for OTA update
2020-12-21 18:46:13 -08:00
Scott Shawcroft
fb0c74c5f1
Merge pull request #3662 from ElectronicCats/bastble
...
Add new board BastBLE
2020-12-21 17:39:08 -08:00
BennyE
ae3b440835
more fixes and still with debug
2020-12-22 00:32:48 +01:00
Lucian Copeland
75620884e6
Fix stubs, recv_into error
2020-12-21 13:26:43 -05:00
Lucian Copeland
32736dd2c3
Implement server API
2020-12-20 17:12:03 -05:00
sabas1080
d24a5d6270
update path board.h
2020-12-20 15:52:19 -06:00
BennyE
2e393ed195
adding debug infos
2020-12-20 22:03:38 +01:00
sabas1080
bd3c5c33fb
define QSPI pinout
2020-12-20 14:57:10 -06:00
sabas1080
88b1e2fe61
remove Internal flash unnecessary
2020-12-20 13:35:15 -06:00
microDev
ecd7c0878e
expose wake pin parameter and more tweaks
2020-12-19 20:54:36 +05:30
microDev
a60fabdffa
add touch alarm support for esp32s2
2020-12-19 12:56:34 +05:30
Dan Halbert
f202eb734a
Merge pull request #3842 from StackRduino/main
...
add stackrduino_m0_pro
2020-12-18 12:33:34 -05:00
microDev
8eaf2b0c19
implement touch alarm
2020-12-18 12:54:36 +05:30
microDev
4512290ba0
Merge branch 'main' into ota-s2
2020-12-18 00:44:00 +05:30
microDev
4863413bc9
rename ota to dualbank
2020-12-18 00:34:56 +05:30
Dan Halbert
8f9cd7075e
Merge pull request #3752 from jepler/gcc10
...
build: Update to gcc10
2020-12-17 11:03:40 -05:00
Hany Elkomy
7afa1a1d76
Update mpconfigboard.mk
...
reduced to CFLAGS_INLINE_LIMIT = 35 for tranaslations
2020-12-17 22:47:01 +08:00
Hany Elkomy
06022a5e91
Update mpconfigboard.mk
...
changed CFLAGS_INLINE_LIMIT = 55
2020-12-17 21:58:24 +08:00
Hany Elkomy
81ff95a8eb
Add files via upload
2020-12-17 20:29:54 +08:00
Hany Elkomy
bc95c7f219
Delete board.c
2020-12-17 17:08:52 +08:00
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
Scott Shawcroft
344d3c59cb
Merge branch 'main' into msgpack
2020-12-11 11:10:30 -08: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
Scott Shawcroft
608c98501b
Merge remote-tracking branch 'adafruit/main' into msgpack
2020-12-02 13:10:39 -08: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
Bernhard Boser
34bbcc4910
exclude nrf/simmel due to lack of flash
2020-12-02 13:05:00 -08: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
Bernhard Boser
546b15bf1a
add trailing newline
2020-12-01 18:42:07 -08:00
Bernhard Boser
87d4184dd5
exclude spresense
2020-12-01 18:42:06 -08:00
Bernhard Boser
582a47d71a
rename read, write to read_bytes, write_bytes
2020-12-01 18:41:11 -08:00
Bernhard Boser
59c3e25168
disable on boards tight on memory. add stddef.h to imports (not actually needed).
2020-12-01 18:39:24 -08:00
Bernhard Boser
513253bc3f
moved logic to shared-module and added documentation
2020-12-01 18:38:14 -08:00
Bernhard Boser
90c203a3dd
add module msgpack
2020-12-01 18:38:14 -08: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
hierophect
d0e75e635a
Merge pull request #3714 from microDev1/ps2io-S2
...
ESP32S2: Support for PS/2-IO
2020-11-24 14:56:09 -05:00
Lucian Copeland
0c5e0954db
Add closed socket identification
2020-11-24 14:51:06 -05:00
Lucian Copeland
1031fe2992
correct submodule
2020-11-24 14:46:43 -05:00
Jeff Epler
0836abba41
Merge pull request #3720 from tannewt/more_wifi_retry
...
Retry connection when getting NOT_AUTHED
2020-11-24 09:54:54 -06:00
Seth Kerr
686edcef3f
fixing PID issues with CI Test (whoops)
2020-11-24 07:41:32 -05:00
jgillick
f8499a468e
Remove filesystem from linker script.
2020-11-23 22:56:38 -08:00
microDev
bbe13490b5
Merge branch 'main' into nvm-s2
2020-11-24 12:24:48 +05:30
jgillick
570353b946
Merge remote-tracking branch 'circuitpython/main' into thunderpack1.2
2020-11-23 22:40:47 -08:00
microDev
6ff24410eb
use values pointer directly
2020-11-24 11:44:11 +05:30
microDev
9dd1783da5
Merge branch 'main' into ps2io-S2
2020-11-24 11:11:11 +05:30
Dan Halbert
7a45afc549
working, but need to avoid deep sleeping too fast before USB ready
2020-11-23 22:44:53 -05:00
Dan Halbert
ebdc48ae22
Merge pull request #3745 from kattni/magtag-pin-update
...
Add pin names from silk
2020-11-23 19:48:12 -05:00
Seth Kerr
e5cee98977
removing icy tree files/directory
2020-11-23 19:31:06 -05:00
Seth Kerr
2635132ce5
adding 'haxpress' kind of build for CP Sapling for use with SPI Flash
2020-11-23 19:21:12 -05:00
Lucian Copeland
1c9f33a372
Replace reset with mux change
2020-11-23 19:01:30 -05:00
Lucian Copeland
86694262b8
Merge remote-tracking branch 'upstream/main' into esp32-pin-reset
2020-11-23 18:58:46 -05:00
Lucian Copeland
8ffd973e22
Merge remote-tracking branch 'upstream/main' into esp32s2-udp
2020-11-23 18:40:14 -05:00
Scott Shawcroft
a80bf22211
Merge pull request #3727 from BennyE/wifi-full-scan
...
esp32s2: Do a full scan when channel/BSSID are not given
2020-11-23 15:19:57 -08:00
Scott Shawcroft
f8dcb25170
Merge pull request #3694 from jepler/update-ulab2
...
ulab: Update to release tag 1.1.0
2020-11-23 15:17:46 -08:00
Scott Shawcroft
491e314799
Merge pull request #3718 from jepler/epd-rotation
...
EPaperDisplay: add rotation property
2020-11-23 15:04:26 -08:00
Scott Shawcroft
c67f5892ff
Merge pull request #3704 from microDev1/frequencyio-S2
...
ESP32S2: Support for FrequencyIO
2020-11-23 14:59:27 -08:00
Kattni Rembor
7928a0d454
Blank lines to group aliases.
2020-11-23 16:02:45 -05:00
Kattni Rembor
3730862362
Update to match silk rev 1
2020-11-23 15:56:36 -05:00
Kattni Rembor
efda912437
Add pin names from silk
2020-11-23 15:53:28 -05:00
Jeff Epler
16fe2de703
Merge pull request #3732 from skerr92/add-cpsapling
...
adding CP-Sapling
2020-11-23 10:29:58 -06:00
Jeff Epler
70e978f48b
stm: disable ulab on two resource-constrained boards
2020-11-23 10:23:53 -06:00
jgillick
4c5e7520f5
Fix NVM by clearing FLASH_FLAG_PGPERR
2020-11-23 00:25:41 -08:00
Dan Halbert
3abee9b256
compiles; maybe ready to test, or almost
2020-11-22 21:52:37 -05:00
jgillick
661c20dd18
Create a new linker script with more space for the firmware.
2020-11-22 18:25:37 -08:00
Dan Halbert
25591a3f8a
Merge branch 'esp32s2-common-hal-mcu-delay-us' into sleep
2020-11-22 21:01:49 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
f62ea25331
ESP32S2: common_hal_mcu_delay_us() now calls mp_hal_delay_us()
2020-11-22 19:08:27 -05:00
microDev
f3b5ca5f01
replace goto with conditional break
2020-11-22 19:20:21 +05:30
microDev
048ca2a570
get multiple touchpad working
2020-11-22 18:54:18 +05:30
jgillick
fe6e50b770
Update USB_PID
2020-11-22 01:49:23 -08:00
jgillick
56634eb00e
Rename thunderpack to v11
2020-11-22 01:31:41 -08:00
jgillick
381889f6bc
Cleanup
2020-11-22 01:19:28 -08:00
jgillick
0b858440b0
Fix formatting.
2020-11-22 01:15:05 -08:00
jgillick
63b0bf9075
Merge remote-tracking branch 'origin/main' into thunderpack1.2
2020-11-22 01:07:03 -08:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
Dan Halbert
e4c66990e2
compiles
2020-11-20 23:33:39 -05:00
Seth Kerr
1c92b1bf61
forgot to run pre-commit local
2020-11-20 15:35:52 -05:00
Seth Kerr
c4f4cdd8c1
readding cp_sapling directory
2020-11-20 15:31:49 -05:00
Seth Kerr
29e91424d4
removing cp sapling temporarily to read
2020-11-20 15:29:35 -05:00
Seth Kerr
b69bbfa3d6
fixed issues with trailing whitespace check
2020-11-20 15:17:44 -05:00
Seth Kerr
0a06530d52
adding CP-Sapling
2020-11-20 15:06:57 -05:00
BennyE
2773f534c9
Update ports/esp32s2/common-hal/wifi/Radio.c
...
adding suggested changes
2020-11-20 09:40:32 +01:00
BennyE
6760cdf678
Let connect() choose strongest AP if channel and BSSID are not given
2020-11-20 00:11:17 +01:00
Dan Halbert
39e1f52e28
wip; not compiling yet
2020-11-19 17:47:12 -05:00
BennyE
17a8bafe05
Choose best AP in range if no channel/bssid given
2020-11-19 23:39:48 +01:00
Scott Shawcroft
2f14609044
Merge pull request #3716 from jepler/keep-event-loop
...
esp32s2: don't delete the event loop
2020-11-19 14:28:31 -08:00
Jeff Epler
aaca3eccf1
samd: PDMIn: Reduce code unrolling on samd21 only
...
Instead of unrolling the code 16 times, unroll it 4 times and loop
over it 4 times. This gives the same 16 iterations, but at an expense
of less flash space.
2020-11-19 16:19:37 -06:00
Jeff Epler
c06fc8e02d
Introduce, use mp_raise_arg1
...
This raises an exception with a given object value. Saves a bit of
code size.
2020-11-19 16:15:06 -06:00
Jeff Epler
0556f9f851
Revert "samd21: Enable terse error reporting on resource constrained chip family"
...
This reverts commit 9a642fc049
.
2020-11-19 15:12:56 -06:00
Dan Halbert
cd436bad1a
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-19 15:43:49 -05:00
Dan Halbert
649c930536
wip
2020-11-19 15:43:39 -05:00
microDev
a25b27520d
update nvm implementation
2020-11-20 00:22:00 +05:30
microDev
bc9036f353
use pointer to get nvs handle
2020-11-20 00:15:30 +05:30
Jeff Epler
dd108b755d
esp32s2: initialize event loop ane netif only once
...
deinitting these seems to cause problems.
2020-11-19 11:36:02 -06:00
Kamil Tomaszewski
76d4824728
spresense: Return fixed stack
2020-11-19 15:04:52 +01:00
microDev
040eaa0443
re-organize and clean-up
2020-11-19 15:30:15 +05:30
microDev
b56645808c
fix crash on user code exit
2020-11-19 11:44:22 +05:30
Dan Halbert
5bb3c321e9
merge from main
2020-11-19 00:29:14 -05:00
Dan Halbert
682054a216
WIP: redo API; not compiled yet
2020-11-19 00:23:27 -05:00
Jeff Epler
9a642fc049
samd21: Enable terse error reporting on resource constrained chip family
...
This reclaims over 1kB of flash space by simplifying certain exception
messages. e.g., it will no longer display the requested/actual length
when a fixed list/tuple of N items is needed:
if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) {
mp_raise_ValueError(translate("tuple/list has wrong length"));
} else {
mp_raise_ValueError_varg(translate("requested length %d but object has length %d"),
(int)len, (int)seq_len);
Other chip families including samd51 keep their current error reporting
capabilities.
2020-11-18 20:37:36 -06:00
Scott Shawcroft
081aec4429
Retry connection when getting NOT_AUTHED
...
I saw it once with a correct password. Retrying may still fail
but at least it'll try first.
2020-11-18 16:39:34 -08:00
Jeff Epler
83d790ad8f
esp32s2: don't delete the event loop
...
.. it seems to make the esp-idf grumpy.
2020-11-18 17:45:42 -06:00
microDev
0d3e81f969
update interrupt handling
2020-11-18 22:22:42 +05:30
microDev
bab41afce7
ps2io implementation for esp32s2
2020-11-18 12:34:56 +05:30
microDev
c457d373e1
update init_timer & frequency calculation
2020-11-18 12:24:48 +05:30
microDev
ff987e7496
add timer peripheral
2020-11-18 12:16:14 +05:30
Jeff Epler
9206925bf8
esp32s2: port_get_raw_ticks: Use a more efficient, monotonic routine
...
While trying to debug #3572 , I noticed that I would frequently break in
the midst of gettimeofday and that the routine get_adjusted_boot_time
had to take and release locks. Furthermore, we don't want "adjusted"
boot time, which could go forwards or backwards depending on the
adjustment (such as setting the clock used by gettimeofday() to the network
time)
2020-11-17 17:45:41 -06:00
Jeff Epler
1bc770c3dc
esp32s2: PulseIn: Fix supervisor tick enabling
...
Before, there were two problems:
* Even if a pulsein was never constructed, supervisor_disable_tick
would occur during restart. This could cancel out a supervisor_enable_tick
from someplace else, with unexpected results.
* If two or more pulseins were constructed, each one would enable ticks,
but only the last one deinited (or the reset routine) would disable,
leaving ticks running indefinitely.
In my testing, it seemed that this led to the board sometimes stopping when
it should have auto-reloaded.
2020-11-17 17:45:41 -06:00
Scott Shawcroft
e2b5ae2d77
Merge pull request #3689 from jepler/issue-3688
...
esp32s2: wifi: fix several debug-build errors
2020-11-17 13:26:43 -08:00
Lucian Copeland
0bbdf05936
Implement recvfrom_into and sendto for UDP
2020-11-17 16:11:04 -05:00
jgillick
5f0a372a22
Merge tag '6.0.0' into thunderpack1.2
2020-11-17 00:02:24 -08:00
jgillick
119e9d3820
Add Thunderpack 1.2
2020-11-16 23:50:00 -08:00
sabas1080
33ca357094
fix VID and PID
2020-11-16 22:10:37 -06:00
sabas1080
089fa82067
Fix pre-commit
2020-11-16 21:21:24 -06:00
Scott Shawcroft
66fb095069
Merge pull request #3667 from microDev1/watchdog-s2
...
ESP32S2: Support for WatchDog
2020-11-16 15:01:54 -08:00
Scott Shawcroft
f4fd236605
Merge pull request #3698 from BennyE/disablesoftap
...
esp32s2: Set station mode early to avoid SoftAP on startup
2020-11-16 14:51:57 -08:00
Scott Shawcroft
f8eed1f74c
Merge pull request #3691 from jepler/issue-3424
...
esp32s2: Update esp-idf submodule to include fix for #3424
2020-11-16 14:21:13 -08:00
microDev
0686cde226
update internal nvm size
2020-11-17 01:19:12 +05:30
microDev
18e463cca5
add pcnt overflow handler & clean-up
2020-11-16 23:32:22 +05:30
Dan Halbert
ffff02c053
Merge remote-tracking branch 'adafruit/main' into sleep
2020-11-16 12:06:11 -05:00
Dan Halbert
bb77f1d130
wip: initial code changes, starting from @tannewt's sleepio branch
2020-11-16 11:56:20 -05:00
microDev
f2824f6a68
update frequency measurement
2020-11-16 12:55:55 +05:30
microDev
2bec02738f
move interrupt handler to iram
2020-11-16 11:44:11 +05:30
BennyE
d4ab00f734
Set station mode early to avoid SoftAP on startup
2020-11-16 00:31:06 +01:00
microDev
c4917cdabd
frequencyio implementation for esp32s2
2020-11-16 00:11:00 +05:30
Jeff Epler
231e3d362d
esp32s2: Update esp-idf submodule to include fix for #3424
...
This re-points the submodule to my personal fork of esp-idf.
Users may need to `git submodule sync` in their existing trees when
this change occurs.
Adds just the following commit in esp-idf:
> esp_crt_bundle: Allow verify_callback to correct BADCERT_BAD_MD
2020-11-14 10:16:39 -06:00
microDev
146adca060
Add watchdog mode raise
2020-11-14 11:41:14 +05:30