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
9993814f7c
Merge pull request #3860 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2020-12-29 10:54:41 -06:00
Hosted Weblate
6348e2fbbc
Merge branch 'origin/main' into Weblate.
2020-12-29 17:08:54 +01:00
Wellington Terumi Uemura
62eb65e401
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (889 of 889 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-12-29 17:08:53 +01: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
Hosted Weblate
b6f6af2699
Merge branch 'origin/main' into Weblate.
2020-12-28 20:51:31 +01: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
Hosted Weblate
3332206d22
Merge branch 'origin/main' into Weblate.
2020-12-28 20:49:47 +01: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
Hosted Weblate
860c4d5af4
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-12-28 18:59:42 +01:00
Hosted Weblate
759321a32b
Merge branch 'origin/main' into Weblate.
2020-12-28 18:59:40 +01:00
Jonny Bergdahl
dc8593db93
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (884 of 884 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2020-12-28 18:59:40 +01: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
Dan Halbert
938a0fa2fc
Add include to tick.c for mp_hal_is_interrupted()
2020-12-26 13:39:48 -05:00
Hosted Weblate
18047d0a2f
Merge branch 'origin/main' into Weblate.
2020-12-26 15:26:20 +01:00
Dan Halbert
1b7fbaf31e
Merge pull request #3881 from microDev1/update-ci
...
Re-Arrange CI Actions
2020-12-26 09:26:11 -05:00
microDev
f7cafbf5f9
re-arrange ci actions
2020-12-26 12:54:36 +05:30
Hosted Weblate
ffedfdd6e0
Merge branch 'origin/main' into Weblate.
2020-12-25 23:42:54 +01:00
Jeff Epler
5c4cb43679
Merge pull request #3880 from digixx/patch-1
...
SAMD51: change of DAC power setting
2020-12-25 16:42:46 -06: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
578abae0f5
make translate yet again; forgot to fetch submodules to fresh clone
2020-12-23 23:05:10 -05:00
Dan Halbert
cf4862e96e
make translate again
2020-12-23 22:52:27 -05:00
Dan Halbert
8061a2574d
Merge branch 'main' into pin_alarm
2020-12-23 22:05:02 -05:00
Hosted Weblate
ce01aed5cf
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-12-24 03:25:47 +01:00
Hosted Weblate
34c90b6ecd
Merge branch 'origin/main' into Weblate.
2020-12-24 03:25:45 +01:00
Dan Halbert
a1e3ab1293
Merge pull request #3874 from dhalbert/ble-fixes-6.0.x-to-main
...
Merge ble-fixes from 6.0.x to main
2020-12-23 21:25:36 -05:00
BennyE
1a6b1b1953
implementing suggested changes
2020-12-24 00:37:37 +01:00
Scott Shawcroft
c371119da4
Make translate
2020-12-23 15:00:53 -08:00
Hosted Weblate
98afc9a066
Merge branch 'origin/main' into Weblate.
2020-12-23 23:49:56 +01:00
Dan Halbert
966f4de215
Merge pull request #3869 from jepler/disable-busdevice-in-core
...
circuitpy_mpconfig.mk: Unconditionally disable CIRCUITPY_BUSDEVICE
2020-12-23 17:49:51 -05:00
Dan Halbert
153a686837
make translate for main
2020-12-23 16:41:56 -05: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
Hosted Weblate
414d21626b
Merge branch 'origin/main' into Weblate.
2020-12-23 21:14:23 +01:00
_fonzlate
ad4939ed5c
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (882 of 882 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/nl/
2020-12-23 21:14:23 +01: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
Jeff Epler
42a229c08b
circuitpy_mpconfig.mk: Unconditionally disable CIRCUITPY_BUSDEVICE
...
Several issues have been found in the implementation. While they're
unresolved, it may be better to disable the built-in module. (This
means that to work on fixing the module, it'll be necessary to
revert this commit)
2020-12-23 10:45:07 -06: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
Hosted Weblate
cda6de8c7d
Merge branch 'origin/main' into Weblate.
2020-12-22 19:17:00 +01: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
Hosted Weblate
e31ecd602d
Merge branch 'origin/main' into Weblate.
2020-12-22 19:12:00 +01:00