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
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
Scott Shawcroft
bda3267432
Save flash space
...
* No weak link for modules. It only impacts _os and _time and is
already disabled for non-full builds.
* Turn off PA00 and PA01 because they are the crystal on the Metro
M0 Express.
* Change ejected default to false to move it to BSS. It is set on
USB connection anyway.
* Set sinc_filter to const. Doesn't help flash but keeps it out of
RAM.
2020-11-13 18:57:52 -08:00
Scott Shawcroft
68eb809fbf
Update parallel bus signatures
2020-11-13 18:57:52 -08:00
Scott Shawcroft
8d4296f964
Add board.DISPLAY to MagTag. Fix luma computation
...
* Initialize the EPaper display on the MagTag at start.
* Tweak the display send to take a const buffer.
* Correct Luma math
* Multiply the blue component, not add.
* Add all of the components together before dividing. This
reduces the impact of truncated division.
2020-11-13 18:57:52 -08:00
Jeff Epler
0f7081781e
esp32s2: wifi: fix several debug-build errors
...
Closes #3688
With this change, I don't get the ESP_ERROR_CHECK failed repeatedly
running code that imports wifi. (I'm not getting a successful connection
but that's probably my own fault, such as a secrets problem)
2020-11-12 20:40:45 -06:00
Scott Shawcroft
c9952798fb
Merge pull request #3683 from BHDynamics/dynossat_edu
...
Rename pins on dynossat_edu_eps to make them the same as the Arduino core
2020-11-12 12:33:16 -08:00
Enrique Casado
aa68b17223
Freed some more space
2020-11-12 13:26:26 +01:00
Enrique Casado
9774736a50
Rename pins to make them the same as the Arduino core
2020-11-12 12:30:34 +01:00
microDev
ff41180237
pcnt reset on reload
2020-11-12 16:30:30 +05:30
Scott Shawcroft
a47dea4922
Merge pull request #3671 from FoamyGuy/um_feathers2_board_spi_i2c
...
board.SPI() and board.I2C() for UnexpectedMaker Feather S2
2020-11-11 17:22:23 -08:00
microDev
35ef6c687f
nvm implementation for esp32s2
2020-11-11 23:11:12 +05:30
gamblor21
23ed3ef971
Removing frozen libs
2020-11-11 11:36:04 -06:00
gamblor21
f61c4e62c1
Removing from smaller builds
2020-11-11 10:24:33 -06:00
foamyguy
118ca7cff4
adding default uart pins
2020-11-11 06:56:57 -06:00
microDev
f9842566d8
Add default pin definitions
2020-11-11 10:22:48 +05:30
foamyguy
8373146c56
newline end of file
2020-11-10 15:29:17 -06:00
Scott Shawcroft
ddb3590944
Merge pull request #3647 from DavePutz/issue3579
...
Issue3579 - Check for CTRL-C During sleep on esp32s2
2020-11-10 13:09:57 -08:00
foamyguy
1192eebcdf
adding spi and i2c to board for um feather s2
2020-11-10 14:12:44 -06:00
Lucian Copeland
21ca1b8c2b
Merge remote-tracking branch 'upstream/main' into esp32s2-udp
2020-11-10 14:59:32 -05:00
Lucian Copeland
d16d27a449
Merge remote-tracking branch 'tannewt/esp32s2_udp' into esp32s2-udp
2020-11-10 14:51:36 -05:00
Scott Shawcroft
75a977febd
Merge pull request #3668 from jepler/esp32s2-stack-size
...
esp32s2: Correct port_stack_get_top()
2020-11-10 10:56:12 -08:00
microDev
10e8b8cf45
move port specific check
2020-11-11 00:24:01 +05:30
root
fe7ed99939
Split out extern declare to ports/esp32s2/supervisor/esp_port.h
2020-11-10 12:45:39 -06:00
root
44425b8d94
Requested review changes made
2020-11-10 11:32:59 -06:00
Jeff Epler
2d8ebfcf63
esp32s2: Correct port_stack_get_top()
...
Closes #3649
2020-11-10 10:42:53 -06:00
microDev
6c59836c5d
watchdog implementation for esp32s2
2020-11-10 16:32:46 +05:30
Scott Shawcroft
61bf0e99c6
Merge pull request #3653 from tannewt/magtag
...
Rebrand EInk Portal to MagTag
2020-11-09 16:00:09 -08:00
Scott Shawcroft
d1f15d314b
Rename to include display details
2020-11-09 15:03:22 -08:00
microDev
7ba2c5772c
Update license
2020-11-08 11:18:05 +05:30
microDev
55e0e2c4ba
Update rotaryio implementation
2020-11-08 11:12:32 +05:30
microDev
479567059e
Merge branch 'main' into rotaryio-S2
2020-11-08 00:00:01 +05:30
Scott Shawcroft
b2e83952c0
Rebrand EInk Portal to MagTag
2020-11-06 15:27:16 -08:00
Scott Shawcroft
01c7a06dcc
Merge pull request #3615 from microDev1/CountIO-S2
...
ESP32S2: Support for CountIO
2020-11-06 12:29:13 -08:00
root
d948e6570f
Changes to handle Ctrl-C during sleep
2020-11-05 21:27:21 -06:00
Dan Halbert
36a8828fa3
Merge pull request #3632 from dhalbert/add-binascii
...
add binascii to most builds
2020-11-05 16:16:41 -05:00
microDev
ac8a0faa0d
update peripherals_pcnt_init()
2020-11-06 01:42:20 +05:30
Dan Halbert
81bb92bdd2
Merge pull request #3639 from tannewt/fix_recv
...
Rework socketpool.Socket.recv to return sooner
2020-11-05 14:11:13 -05:00
Scott Shawcroft
8fc1be5ef2
Merge pull request #3645 from BradChan/main
...
Modify the pins of the hiibot_bluefi.
2020-11-05 11:02:40 -08:00
root
c2aa54ae66
Check for Ctrl-C during sleeps
2020-11-05 11:10:40 -06:00
microDev
d8ef9a127b
rename pcnt_handler to pcnt
2020-11-05 10:10:39 +05:30
cyz
92cd599ea3
Modify the pins of the hiibot_bluefi.
2020-11-05 09:14:53 +08:00
Scott Shawcroft
e02539bdf5
Merge pull request #3633 from ITACAInnovation/patch-2
...
Update pins.c
2020-11-04 10:30:09 -08:00
microDev
fe6bfde590
move pcnt handler
2020-11-04 21:20:24 +05:30
Scott Shawcroft
5a079256d5
Merge pull request #3642 from ehagerty/patch-1
...
Update README.md
2020-11-03 13:02:58 -08:00
ITACA Innovation S.R.L
ca935c0daf
Update pins.c
...
Changed builtin to standard
2020-11-03 21:22:19 +01:00
Scott Shawcroft
441c2c41fb
Merge pull request #3641 from adafruit/6.0.x
...
Merge 6.0.x bugfixes to main
2020-11-03 09:46:44 -08:00
Ed Hagerty
4055c5ac61
Update README.md
2020-11-03 17:14:58 +00:00
Limor "Ladyada" Fried
4938054c05
Merge pull request #3638 from ladyada/main
...
io naming for gpio (credit to @kattni)
2020-11-03 09:17:33 -05:00
Limor "Ladyada" Fried
0d0436bf69
Merge pull request #3637 from hierophect/esp32s2-neopixel-parallel
...
ESP32S2: Fix parallel strip issue with Neopixels
2020-11-02 23:39:37 -05:00
lady ada
c4521287e3
add rx/tx default uart names
2020-11-02 23:22:53 -05:00
Scott Shawcroft
7441344c6f
Add new config options to default
2020-11-02 17:22:24 -08:00
Scott Shawcroft
18838e390a
reduce connection footprint and fix recv
2020-11-02 16:44:55 -08:00
lady ada
6c61a53e0f
io naming for gpio (credit to @kattni)
2020-11-02 18:38:23 -05:00
Lucian Copeland
23afe08b6f
Add GPIO reset to end of neopixel-write
2020-11-02 17:15:19 -05:00
Dan Halbert
1f7a3f0dfa
Rev C Feather M4 CAN pin changes
2020-11-02 15:28:30 -05:00
Brian Dean
041c2a9f61
.../boards/bdmicro_vina_d51: PAD updates for better resource flexibility.
2020-11-02 08:35:25 -05:00
ITACA Innovation S.R.L
4e52757f26
Update pins.c
...
Added LED, BOOST_EN and VEXT_SELECT pins.
2020-11-01 22:22:55 +01:00
Dan Halbert
72b829dff0
add binascii to most builds
2020-11-01 14:52:03 -05:00
microDev
4438050f79
Add pcnt handler
2020-11-01 18:00:07 +05:30
Jerry Needell
1762a36438
restore analogio to feather_m0_rfm9x/rfm69 builds
2020-11-01 05:46:13 -05:00
Dan Halbert
144eb131ae
Merge pull request #3627 from adafruit/6.0.x
...
Merge 6.0.x bugfixes to main
2020-10-31 12:28:20 -04:00
ITACA Innovation S.R.L
9a8484b853
Update mpconfigboard.h
...
Removed ignore PA30 PA31 in order to allow using them as pinout
2020-10-31 11:06:56 +01:00
ITACA Innovation S.R.L
a7616808e9
Updated pinout
2020-10-31 10:12:49 +01:00
Scott Shawcroft
09ae9aefa8
Merge pull request #3610 from Edrig/main
...
Add new board to nrf port: holyiot_nrf52840
2020-10-30 12:03:34 -07:00
Scott Shawcroft
7fd73c7d39
Initial UDP work. Need to test
2020-10-28 18:08:31 -07:00
Dan Halbert
59b9ca409c
matrixportal ESP TX and RX pins were swapped
2020-10-28 20:33:10 -04:00
lady ada
25bad660c6
add light sensor, move batt monitor
2020-10-28 19:23:18 -04:00
Scott Shawcroft
7cbc50962b
Merge pull request #3611 from tannewt/esp32s2_eink_portal
...
Add Adafruit ESP EInk Portal and grayscale EInk support
2020-10-28 14:45:29 -07:00
Gaetan
5ab2f16f64
Change Board Name to ADM_B_NRF52840_1
...
edit : .github/workflows/build.yml
rename : ports/nrf/boards/holyiot_nrf52840/board.c -> ports/nrf/boards/ADM_B_NRF52840_1/board.c
rename : ports/nrf/boards/holyiot_nrf52840/mpconfigboard.h -> ports/nrf/boards/ADM_B_NRF52840_1/mpconfigboard.h
rename : ports/nrf/boards/holyiot_nrf52840/mpconfigboard.mk -> ports/nrf/boards/ADM_B_NRF52840_1/mpconfigboard.mk
rename : ports/nrf/boards/holyiot_nrf52840/pins.c -> ports/nrf/boards/ADM_B_NRF52840_1/pins.c
2020-10-28 22:08:10 +01:00
microDev
5e3bfa1956
countio implementation for esp32s2
2020-10-28 20:08:25 +05:30
Scott Shawcroft
9a4efed8cb
Start tweaking the workflow to sleep
2020-10-27 17:55:03 -07:00
Gaetan
b44011d196
fix railing Whitespace pin.c
2020-10-28 01:43:42 +01:00
Gaetan
b5c95e3b1a
Merge branch 'main' of https://github.com/Edrig/circuitpython into main
...
modifié : boards/holyiot_nrf52840/pins.c
2020-10-28 00:40:46 +01:00
Gaetan
9b911b2211
modifié : pins.c
2020-10-28 00:38:07 +01:00
Gaetan
27827a4fef
Fix EOF error
...
modifié : mpconfigboard.mk
modifié : pins.c
2020-10-28 00:34:07 +01:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
e35938971a
Add description of alarm modules
2020-10-27 16:16:55 -07:00
microDev
59df1a11ad
Add alarm_touch module
2020-10-27 16:16:52 -07:00
microDev
da449723df
Fix build error
2020-10-27 16:16:15 -07:00
microDev
4d8ffdca8d
restructure alarm modules
2020-10-27 16:15:09 -07:00
microDev
e5ff55b15c
Renamed alarm modules
2020-10-27 16:13:25 -07:00
microDev
21ba61afbb
Add function to disable alarm
2020-10-27 16:13:25 -07:00
microDev
05a3f203db
Add function to get time elapsed during sleep
2020-10-27 16:13:25 -07:00
microDev
e310b871c8
Get io wake working
2020-10-27 16:13:25 -07:00
microDev
90b9ec6f2c
Initial Sleep Support
2020-10-27 16:13:22 -07:00
Noel Gaetan
d0426b3438
Update pins.c
...
fix mistake
2020-10-27 23:54:46 +01:00
Scott Shawcroft
557a58b244
Merge pull request #3591 from microDev1/TouchIO-S2
...
ESP32S2: Support for native TouchIO
2020-10-27 14:11:39 -07:00
Scott Shawcroft
73162bda85
Merge pull request #3584 from jepler/can-esp32s2
...
esp32s2: implement canio
2020-10-27 14:01:07 -07:00
Scott Shawcroft
54c0e98a37
Fix openbook build
2020-10-27 13:58:23 -07:00
microDev
80029f6929
rotaryio implementation for esp32s2
2020-10-28 00:12:13 +05:30
Jeff Epler
5110fec312
Merge pull request #3608 from adafruit/6.0.x
...
Update main with latest 6.0.x
2020-10-27 11:47:44 -05:00
Jeff Epler
3a501a0495
esp32s2: canio: respond to review comments
...
* explain the introduction of the temporary variable in get_t_config
* get rid of unneeded __attribute__
* get rid of unneeded members of canio_can_obj_t
* get rid of unneeded header inclusion
2020-10-26 19:18:37 -05:00
Jeff Epler
2ba6659967
esp32s2: Makefile: restore --no-stub
2020-10-26 19:07:37 -05:00
Scott Shawcroft
95cb5961d2
Fix ESP32-S2 SPI when DMA is sometimes used
2020-10-26 16:59:59 -07:00
Scott Shawcroft
fc591c8d84
Add EInk Portal
2020-10-26 16:59:59 -07:00
Gaetan
5deb045a81
Ready to PR
...
* ../../.github/workflows/build.yml
+ boards/holyiot_nrf52840/board.c
+ boards/holyiot_nrf52840/mpconfigboard.h
+ boards/holyiot_nrf52840/mpconfigboard.mk
+ boards/holyiot_nrf52840/pins.c
2020-10-26 23:32:57 +01:00
Jeff Epler
caca0609bd
Merge pull request #3607 from hierophect/esp32-readme-clarity
...
ESP32-S2: Fix readme link, improve instruction clarity
2020-10-26 12:43:51 -05:00
Lucian Copeland
32f2a8d54c
Fix readme link
2020-10-26 11:03:54 -04:00
Jeff Epler
396d92f867
esp32s2: Add canio
...
This works in loopback mode, though the hardware filtering only permits a
single address or mask filter.
2020-10-26 09:54:58 -05:00
microDev
ef97ed6ab6
Update touchio implementation
2020-10-23 13:17:49 +05:30
Scott Shawcroft
c8808f41a5
Merge pull request #3580 from astrobokonon/esp32s2-FixSTAMODE
...
ESP32S2: Reset sta_mode and ap_mode flags
2020-10-22 13:48:45 -07:00
microDev
f431f859e7
Initial support for native touchio
2020-10-22 21:32:44 +05:30
Jeff Epler
fa4c4c2c10
Merge pull request #3587 from adafruit/6.0.x
...
Merge in two fixes from 6.0.x
2020-10-21 20:12:20 -05:00
Jerry Needell
ff69ab603d
fix CPB SPI pin definitions
2020-10-21 17:07:30 -04:00
Scott Shawcroft
50e90088a2
Merge pull request #3586 from Targett363/esp32s2_module_clip
...
Esp32s2 module clip
2020-10-21 12:58:23 -07:00
Ryan T. Hamilton
e202da4dad
Change comment wording
2020-10-20 15:14:35 -07:00
Ryan T. Hamilton
c58b0adf64
Reset sta_mode and ap_mode flags
2020-10-20 14:49:57 -07:00
Scott Shawcroft
1a677406bf
Merge pull request #3529 from jensechu/color-converter-transparency
...
displayio: Pass transparent_color to ColorConverter
2020-10-20 10:41:57 -07:00
Scott Shawcroft
8beb36c240
Use one lto partition
...
This leads to smaller code size at the expense of slower linking.
We can turn partitioning back on with GCC10 because it produces smaller code.
2020-10-20 09:24:03 -07:00
Christian Walther
1eab0692b5
Fix missing nproc
on macOS.
...
396979a
breaks building on macOS: `nproc` is a Linux thing, use a cross-platform alternative.
2020-10-20 16:39:32 +02:00