Commit graph

1890 commits

Author SHA1 Message Date
Rodrigo Garcia
55d608e322
Adds noInterrupt() and interrupt() functionality (#7226)
* Adds noInterrupt() and interrupt() functionality

* Adds sei/cli

Adds back sei()/cli() macros

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-15 15:48:07 +03:00
Rodrigo Garcia
dca1a1e6b3
Changes UART ISR to only trigger on RX FIFO Full and timeout (#6930)
* Changes UART ISR to only trigger on RX FIFO Full and timeout

* changes initial RX timeout

* Eliminates extra testing for _uart != NULL

* reconfiguration with "uartSetFastReading()"

* Adds new function "uartSetFastReading()"

* changed default onReceive() behaviour

* forces User callback in case of error

* Error Code Order

Set NO_ERROR as first error code, same as ESP_OK = 0
2022-09-15 15:12:40 +03:00
Ren Xiao
85aecec8d4
Update boards.rst (#7195) 2022-09-14 12:46:29 +03:00
Tomáš Pilný
b58e7ab0b8
Doc addition: How to compile libs with different debug level (#7193)
* Initial commit with guide on building libs wirh higher debug level

* Added reference to FAQ

* Reword portion of core_debug.rst

* Removed extra empty line

Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com>
2022-09-14 11:58:08 +03:00
i3water
9025c686ce
add boards WiFiduinoV2&WiFiduino32S3 (#7247)
add boards WiFiduinoV2&WiFiduino32S3
2022-09-14 11:55:26 +03:00
Sanket Wadekar
7231551f56
Fixed Rmaker OTA crash issue #5420 (#7242)
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-09-14 11:54:55 +03:00
Jason2866
d4d145897a
Real flash chip mode (#7239) 2022-09-14 11:54:27 +03:00
Jason2866
8191aaf84b
add flash frequency to patched firmware (#7230) 2022-09-14 11:51:51 +03:00
Rodrigo Garcia
ebc8a15e0e
Add new ULP example for ESP32 (#7221)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-14 11:44:12 +03:00
Tomáš Pilný
74964e197d
Updated warning message displayed when building as IDF component (#7220) 2022-09-14 11:42:55 +03:00
RefactorFactory
2e72894a4b
USBHIDKeyboard: Fix 200ms delay for every key (#7218)
Arduino-esp32 2.0.4 was released with a version of TinyUSB hid_device.h
that uses uint16_t for the last argument:

https://github.com/espressif/arduino-esp32/blob/2.0.4/tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

    TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);

But USBHID implements this callback with uint8_t:

https://github.com/espressif/arduino-esp32/blob/2.0.4/libraries/USB/src/USBHID.cpp

    void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint8_t len){
        if (tinyusb_hid_device_input_sem) {
            xSemaphoreGive(tinyusb_hid_device_input_sem);
        }
    }

The result is that when USBHIDKeyboard sends a report to the host, it
times out, waiting 100 ms for the callback to be called. It does this
once for pressing the key and once for releasing the key, so
100 ms * 2 = 200 ms.

The latest version of hid_device.h reverts the last argument to uint8_t:

860b104691/tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

    TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, /*uint16_t*/ uint8_t len );

But these commits suggest that the last argument will eventually be
changed to uint16_t:

556b5d5044

    change report len in hid API from uint8_t to uint16_t

    since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
    affected APIs are:
    - tud_hid_n_report() / tud_hid_report()
    - tud_hid_report_complete_cb()

b495d6f8ec

    temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release

To prevent this from becoming broken again, in preparation for the change
to uint16_t, make USBHID resilient to any type for the last argument for
tud_hid_report_complete_cb() by using some C++ template metaprogramming,
adapted from https://stackoverflow.com/a/22632571.

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2022-09-14 11:42:19 +03:00
Jan Procházka
8510734d83
Add default SPI pin definitions if not defined in pins_arduino.h (#7161)
* add default SPI pins ifndef in arduino_pins.h

* Revert "add default SPI pins ifndef in arduino_pins.h"

This reverts commit be35b83ab997a88242269621cccbe1d17a0a844f.

* Add missing default SPI pins

* revert change for d32_pro
2022-09-14 11:29:12 +03:00
Tomáš Pilný
0882ea0919
Fixed the ability to change CHANNEL (#7154)
* Removed option to change CHANNEL

* Revert "Removed option to change CHANNEL"

This reverts commit b2ec27de1d2d4703a15f6397550a46896413828a.

* Fixed the ability to change CHANNEL

* WiFi scan only on selected channel
2022-09-14 11:28:42 +03:00
FedericoBusero
67c293dc72
TTGO T-OI-Plus: pins LED_BUILTIN & BAT_ADC_PIN (#7241) 2022-09-14 08:59:54 +02:00
Jason2866
37cbaeccb7
Get real Flash Chip Size (#7159)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-07 15:04:24 +02:00
Michael Ammann
7f7f30440b
[NORA-W1] Fix SPI pin assignments to match Arduino pinout. (#7208)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-06 23:00:12 +02:00
TAMC
4959b7f718
add TAMC Termod S3 (#7217)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-09-06 22:45:00 +02:00
Limor "Ladyada" Fried
1065e38718
itsy bitsy esp32 board working :) (#7199) 2022-09-06 22:20:17 +02:00
Valerii Koval
074f315108
Update PlatformIO build scripts (#7200)
This update includes the following:

- Implemented an additional build step that produces an adjusted bootloader image with updated headers
  according to  selected flash mode and size values. This step is only executed for debugging or uploading
  via debug probes.

- Implemented a basic mechanism to dynamically add an extra UF2 bootloader image if corresponding
  partition is selected (e.g. for Adafruit targets)

- Minor code formatting
2022-09-06 11:39:03 -03:00
Sanket Wadekar
77065bffb2
Fixed espressif/esp-rainmaker#152 (#7171) 2022-08-29 12:36:51 +03:00
Michael Ammann
01e22291e2
Adding u-blox NORA-W10 series (ESP32-S3) (#7191)
* Create pins_arduino.h

* Update boards.txt

* Update boards.txt
2022-08-29 12:20:06 +03:00
Daniel Egnor
adb01cf0c6
Compile error if CONFIG_FREERTOS_HZ != 1000 (#6955)
* Compile error if CONFIG_FREERTOS_HZ != 1000
* add a check at the CMake level, per feedback
* Set CONFIG_FREERTOS_HZ=1000 in CI test of Arduino-as-component
2022-08-26 11:14:59 +03:00
Paul Price
d22bcb765b
fixed names on the VID and PID for boards (#7144)
somehow had duplicated the same name across all my boards. the PID's and VID's were correct, but the name was the same for all of them. that is fixed now.
2022-08-24 14:20:03 +03:00
Me No Dev
3f69bcfca4
Update get.py to support python 3.10+ (#7166)
* Update get.py to support python 3.10+

* Use try/except to remove version check
2022-08-22 17:33:14 +03:00
Me No Dev
3ebb774463
Update esptool to version 4.2.1 (#7127)
* Update esptool to version 4.2.1

* Fix esptool for MacOS

* Esptool v4.2.1 for CI Platformio (#7147)

to complete the test.

Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com>
2022-08-22 17:00:42 +03:00
Dr. Christian Kohlschütter
fdf8389ec5
Update .gitignore (#7021)
Add entries to gitignore
2022-08-22 14:16:55 +03:00
Dr. Christian Kohlschütter
4146d27b8f
Enable configuring target variants (#7019)
This change enables picking the right board configuration from the
variants/ folder. Previously, we would always pick the default
configuration (e.g., "esp32" instead of "heltec_wifi_lora_32_V2").
2022-08-22 14:16:38 +03:00
Rodrigo Garcia
fe1d9e00d5
Fixes Cookie Case Sensitivity (#7112)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-16 12:07:24 +02:00
Tomáš Pilný
d9ac65f291
Fixed CHANNEL in ESPNow example (#7104)
Co-authored-by: Vojtěch Bartoška <76958047+VojtechBartoska@users.noreply.github.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-16 09:58:22 +02:00
Jan Procházka
7bcba17ba9
FIX: Added erase flash menu to all boards (#7129)
* Added erase flash menu to all boards

* fixed typo in board name
2022-08-16 09:44:23 +02:00
Jan Procházka
190db72820
Fix partition names in board.txt (#7120)
* typo edit: 8M flash (FAT to SPIFFS) + FAT to FATFS

* more precize fatfs size in 16M flash partition

* Revert size in 8M with spiffs partition
2022-08-16 09:05:10 +02:00
Tinyu
35978812b2
Create M5Station pins_arduino.h and M5Station Board (#7101)
* Create M5Station pins_arduino.h

* Update pins_arduino.h

* Update boards.txt

* add EraseFlash menu option

* Update boards.txt

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-15 20:45:47 +02:00
Jan Procházka
ac7879c683
Added NVS test sketch + test script (#6885)
* Added NVS test sketch + test script

* Added cfg.json with multiple fqbns

* cfg.json missing commas fix

* Changed OPI PSRAM to QSPI accordind to new HW setup.

* disabled PSRAM for ESP32S3

* Reverting PSRAM changes

* Remove Octal flash test

Octal flash needs to be tested locally before each release.
2022-08-15 14:47:07 +02:00
WebDust21
0260cd66a3
WebServer: rename & expose internal 'contentLength' variable for POST… (#7012) 2022-08-11 08:44:22 -03:00
Rodrigo Garcia
0130856b2a
Improves time for setting touch interrupt (#7099)
* Improves time for setting touch interrupt

* Fixes Interrupt Touchpad initialization

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2022-08-11 10:18:36 +02:00
Gareth Coleman
3e65a5721a
tested new partition, revised max flash & ram in boards.txt (#7109) 2022-08-10 14:57:53 -03:00
vortigont
46478092ec
UpdateClass - speedup flash erase/writes (#7002)
- on flash writes try to use large block erase
 - skip writing empty blocks of data after erase
 - more accurate block calculations
2022-08-10 13:28:46 -03:00
Tomáš Pilný
3cb73dccd0
Add erase flash option to Arduino IDE menu (#7043) 2022-08-10 08:23:12 -03:00
20162026
cb3ffd0b44
Add full setsocketoption to WifiClient and WifiClientSecure (#7030) 2022-08-08 16:25:37 -03:00
Paul Price
12169d8586
Added Smart Bee Design Boards (#7093) 2022-08-08 15:10:51 -03:00
Jan Procházka
285e898604
fixed 1bit mode duty (#7079) 2022-08-08 12:26:41 -03:00
WEMOS Electronics
236e8f31ee
add lolin s3 board def (#7094) 2022-08-08 11:57:42 -03:00
ChuckVanzant
7827c53914
Changed Neopixel related static constants to #defines (#7080) 2022-08-08 11:36:52 -03:00
Dryw Wade
f4d910ed8b
Add SparkFun IoT RedBoard (#7085) 2022-08-08 11:21:24 -03:00
Rodrigo Garcia
054e6b3d56
Fixes HardwareSerial::availableForWrite + setTxBufferSize (#6998) 2022-08-08 10:29:09 -03:00
Me No Dev
860b104691
IDF release/v4.4 (#6994) 2022-08-08 09:46:30 -03:00
Rodrigo Garcia
60c4eea0d4
Fixes LwIP INADDR_NONE conflict (#7059) 2022-08-01 10:15:47 -03:00
Rodrigo Garcia
852ea39ab1
Adds default Wire1 pins auto-setup (#7034) 2022-08-01 09:58:54 -03:00
Dr. Christian Kohlschütter
943216308d
WiFiClientSecure: Fix warning about missing PSK-based ciphersuites (#7020)
Make the warning actionable by pointing at the right setting in Kconfig.
2022-07-28 10:33:46 -03:00
Rodrigo Garcia
9bceb280e3
Adds Wire::setBufferSize function (#7016) 2022-07-28 10:15:31 -03:00