Commit Graph

29051 Commits

Author SHA1 Message Date
Dan Halbert e0517c7379
Merge pull request #6999 from jepler/picow-ssl
pico_w: implement ssl with caveats
2022-10-06 10:51:36 -04:00
Jeff Epler ecd140213b
populate nina-fw submodule whe needed 2022-10-06 08:14:50 -05:00
Dan Halbert ee286588a7
Merge pull request #7003 from jepler/dotenv-emoji
Add unicode support to dotenv
2022-10-05 21:42:35 -04:00
Dan Halbert 8b6fff2f13
Merge pull request #6989 from kylefmohr/main
Add Espressif ESP32-S2-DevKitC-1-N8R2 variant
2022-10-05 21:42:12 -04:00
Dan Halbert 296960dd89 shorten board.c 2022-10-05 20:23:19 -04:00
Neradoc d31acdef6c
we don't use AUTORESET_DELAY_MS 2022-10-06 02:19:48 +02:00
Jeff Epler 27e6623657
Add unicode support to dotenv
Newly passing tests:
```
aa🐍bb=key with emoji
value_with_emoji=aa🐍bb
```
2022-10-05 18:18:07 -05:00
Dan Halbert 4fb1a6a950
Merge pull request #7001 from dhalbert/dotenv-spaces-fix
Allow spaces before = in dotenv
2022-10-05 17:40:23 -04:00
Dan Halbert 3d91ea444a run black on tools/ci_check_duplicate_usb_vid_pid.py 2022-10-05 17:37:33 -04:00
Jeff Epler 2dc283f578
close underlying socket object when closing ssl socket 2022-10-05 15:10:14 -05:00
Jeff Epler 4a9389d347
remove debug message 2022-10-05 14:57:04 -05:00
Jeff Epler 14f2309b6f
Enable more key exchange methods
This is intended (but not entirely verified) to match our esp32 builds.
It does fix accessing https://circuitpython.org, which failed before with
"MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE".

It still doesn't work on a personal website of mine with valid letsencrypt
certificate but I haven't verified whether it works on esp32s2 with CP.
That site only allows TLS 1.3, while this mbedtls only supports up to
1.2.
The version of mbedtls we adopted based on micropython's use has no
TLS 1.3 support, but the one in espressif esp-idf does.
2022-10-05 14:56:27 -05:00
Jeff Epler fabfdcf6fe
More ssl work 2022-10-05 14:56:26 -05:00
Jeff Epler 944d388158
copy esp_crt_bundle.c from esp-idf@d51f7d8821 2022-10-05 14:56:26 -05:00
Jeff Epler a64c1a11c5
move nina-fw certificates so it can be shared with other ports 2022-10-05 14:56:25 -05:00
Jeff Epler 905a5957b9
allow gen_crt_bundle to generate a .S file directly
.. this gets rid of one of the steps of converting it
2022-10-05 14:56:25 -05:00
Jeff Epler 09023abcd2
Update espressif function prototype to match 2022-10-05 14:56:25 -05:00
Jeff Epler 3667a0bf17
experimentally undo pin of typer & click 2022-10-05 14:56:24 -05:00
Jeff Epler b47d1d777b
black and fix doc typo 2022-10-05 14:56:24 -05:00
Jeff Epler b1ce1d05d7
Copy from esp-idf@d51f7d8821 2022-10-05 14:56:24 -05:00
Dan Halbert 91079279da Allow spaces before = in dotenv 2022-10-05 15:50:53 -04:00
Kyle Mohr dd5f9411c8
Merge branch 'adafruit:main' into main 2022-10-05 13:44:12 -05:00
Jeff Epler dcb650c513 pico w: add ssl module
Note: at this time, the ssl module on pico_w never verifies the server
certificate. This means it does not actually provide a higher security
level than regular socket / http protocols.
2022-10-05 13:12:43 -04:00
Jeff Epler 1d25049a7a
add mbedtls matching micropython @ v1.19.1-451-gbdbc44474 2022-10-05 10:03:44 -05:00
Jeff Epler 2bd50673b6
Finish adapting flash storage size
Before this, CIRCUITPY would start at 1MB anyway. This appeared to work
only because I hadn't checked the actual size of the CIRCUITPY drive,
and because until now the flash hadn't actually crossed that 1MB
boundary into CIRCUITPY storage.

WARNING: on pico_w, upgrading/downgrading CircuitPython across this commit
boundary will erase the CIRCUITPY filesystem. After this commit,
switching between pico and pico_w firmware will erase the CIRCUITPY
filesystem
2022-10-05 10:02:38 -05:00
MicroDev 18cee2ee8b
Merge pull request #6997 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-05 20:00:20 +05:30
Bill Sideris e064500411
Translated using Weblate (Greek)
Currently translated at 18.5% (185 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/el/
2022-10-05 14:23:42 +02:00
Dan Halbert b3ca6fd011
Merge pull request #6995 from dhalbert/missing-support-matrix-modules
add missing native modules to support matrix
2022-10-04 20:49:29 -04:00
Dan Halbert ed87579a65 add missing native modules to support matrix 2022-10-04 19:22:18 -04:00
Dan Halbert 9292af57c0
Merge pull request #6991 from jepler/dotenv-test
Refactor dotenv module so that it can be tested on host (test fails)
2022-10-04 13:21:33 -04:00
Jeff Epler 718b8e706e
disable test e15 for now 2022-10-04 10:54:22 -05:00
Jeff Epler 52bca95208
Refactor dotenv module so that it can be tested on host
.. it needs to operate on a FILE* rather than FIL depending on
the build.

Note that this is comparing output to expected, not to cpython dotenv
package. Because run-tests.py starts the CPython interpreter with the
'-S' (skip site initialization) flag, pip-installed packages are
not available for import inside a test file. Instead, the exp
file is generated manually:
```
circuitpython/tests$ python3 circuitpython/dotenv_test.py > circuitpython/dotenv_test.py.exp
```

Unfortunately, the test fails on test e15:
```diff
FAILURE /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py
--- /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.exp	2022-10-04 09:48:16.307703128 -0500
+++ /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.out	2022-10-04 09:48:16.307703128 -0500
@@ -14,7 +14,7 @@
 line
 e13 e13value
 e14 None
-e15 e15value
+e15 None
 e16 #
 e17 def
 e18 #has a hash
```
2022-10-04 09:51:27 -05:00
Dan Halbert b62f8b35e6
Merge pull request #6986 from dhalbert/ai-thinker-creation-ids-plus-misc-fixes
fix ai-thinker creation ids; fix some typos elsewhere
2022-10-04 09:40:00 -04:00
Dan Halbert 1c2d2c9be4
Merge pull request #6980 from MicroDev1/supervisor
Implement certain supervisor functions as properties
2022-10-04 08:54:11 -04:00
Kyle Mohr 02e115cbc2
Update mpconfigboard.mk 2022-10-04 00:03:59 -05:00
Kyle Mohr b417eacc5e
Update ci_check_duplicate_usb_vid_pid.py 2022-10-04 00:03:38 -05:00
Kyle Mohr 330b96726a add newlines to end of files 2022-10-04 04:56:31 +00:00
Kyle Mohr ba2368c59e
Utilize VID/PID from native USB port 2022-10-03 23:46:23 -05:00
Kyle Mohr 5268ef01c9
Utilize VID/PID from native USB port 2022-10-03 23:45:28 -05:00
Dan Halbert 1fd09cb6da
Merge pull request #6987 from dhalbert/dotenv-fixes
fix some dotenv parsing
2022-10-04 00:07:19 -04:00
Kyle Mohr cffc1bfcab
sdkconfig didn't get committed for some reason... 2022-10-03 22:54:31 -05:00
Kyle Mohr a948dc399b add esp32-s2-devkitc-1-n8r2 variant 2022-10-04 03:51:51 +00:00
MicroDev 4fd15acf77
implement suggested change
pass brightness value directly

Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-10-04 08:28:48 +05:30
Dan Halbert 6dc03ae3ce fix some dotenv parsing 2022-10-03 21:56:11 -04:00
Dan Halbert 7f72280693
Merge pull request #6982 from electronerdian/webworkflow_times
Fix mask for minutes field when computing modified_ns
2022-10-03 21:34:01 -04:00
Jeff Epler abd02287e6
Merge pull request #6985 from PaulskPt/i2ctarget_doc_text_mod
I2ctarget doc function request: a) mods to doc text & function signature. b) small mod of the code
2022-10-03 15:08:21 -05:00
Jeff Epler b1106b8f2f
restore pyboard symlink
This item is a UNIX symbolic link, and (except in the unlikely case
where the symlink is to a pathname that ends with a newline character!)
doesn't contain a newline.

It appears some well-intentioned tool failed to correctly handle this
file, and added a trailing newline as though it was a text file.
2022-10-03 15:05:30 -05:00
Dan Halbert 90f6096955 fix ai-thinker creation ids; fix some typos elsewhere 2022-10-03 15:29:03 -04:00
Paulus H.J. Schulinck 0f86f01515 Updates by local pre-commit
Pre-commit adjusted some line/file endings
2022-10-03 19:28:43 +01:00
Dan Halbert e3054b3e55
Merge pull request #6984 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-03 11:00:21 -04:00