* feat(logging): Arduino log redirection
* fix(uart): log will only use ets_printf() for uart and cdc
* feat(uart_cdc): when CDC is logging, UART is silent
* feat(uart_cdc): when CDC is logging, UART is silent
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(board): Alfredo NoU3 include stdint.h
* fix(hal_gpio): lets pins_arduino.h to use stdint and stdbool types
* feat(pins_arduino): fixes lack of stdint in the right place
* fix(pins_arduino): reverts all changes to this file
* fix(pins_arduino): reverts all changes to this file
* fix(pins_arduino): reverts all changes back to original pr
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
* Add an option to force IDF's default UART clock source
* feat(uart): adds function to set clock source
* feat(uart): add uart clock source selection method
* feat(uart): add uart hall function to set the uart clock source
* feat(uart): add function to set the uart clock source
* feat(uart): set clock source as necessary
* fix(uart): missing class qualifier declaration
* fix(uart): fixing a typo and non LP UART SoC clk src setting
* fix(uart): variable name, typo error
* fix(uart): retores previous identation reducing diff load
* feat(uart): apply CONFIG_ARDUINO_SERIAL_FORCE_IDF_DEFAULT_CLOCK_SOURCE to LP UART
* feat(uart): adds option for UART_CLK_SRC_DEFAULT
* feat(uart): adds option for setting default uart clock source from IDF
* feat(uart): documents UART_CLK_SRC_DEFAULT as option in header file
* feat(uart): documents using the IDF default uart clock source
* fix(uart): type missmatch may cause error
* fix(uart): type missmatch may cause error, test for -1
* feat(uart): considering both HP and LP default uart clock source
* feat(uart): improve the defined value for UART_CLK_SRC_DEFAULT
* fix(uart): using uart_sclk_t as hal level parameter
* feat(uart): apply default LP uart clock source
* fix(uart): considers that it may set the LP UART as well
* feat(uart): using UART SCLK enum for uart clock source values
* fix(uart): using UART_CLK_SRC_RTC now
* fix(uart): documentation using UART_CLK_SRC_RTC now
* fix(uart): fix old commentary that is not correct anymore
* fix(uart): wrong identation in code line
* fix(uart): using uart number as argument instead
* fix(uart): using uart number as argument in setClockSource()
* fix(uart): using uart number as parameter in uartSetClockSource()
* feat(uart): update Kconfig.projbuild to reflect functionality
* feat(uart): removing Kconfig.projbuild option to force default clk src
* feat(uart): removes kconfig option to force uart default clk src
* fix(uart): replacing #if #endif by #if #elif #endif for the same enum
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(zigbeeEP): review of names and memory allocation
* fix(zigbeeEP): destructor shall free any allocated memory
* fix(zigbee_ep): forgotten var name change
* feat(zigbee_ep): use static heap memory for manufacturer and model names
* feat(zigbee_ep): changed model and manufacturer to heap
* feat(zigbee_ep): use static heap memory allocation
* fix(zigbee_ep): using stack only for adding attribute
* feat(zigbee_ep): reverting back read data type
* fix(zigbee_ep): rooling back to use malloc for remote attr reading
* feat(zigbee_ep): check malloc return for null
* fix(zigbee_ep): replace nullptr by NULL after C malloc()
* ci(pre-commit): Apply automatic fixes
* fix(zigbee_ep): fix variable scope
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(zigbee_ep): fix variable scope
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat(zigbee): Add checks on setting attrs and commands
* feat(zigbee): Add error info in the logs
* fix(zigbee): Fix memory leak, print esp_zb_zcl_status_t error, remove analogValue from analog EP
* feat(example): Update factoryResetoption in sleepy example
* fix(zigbee): Add error checks to Illuminance EP
* fix(zigbee): Return false on first error hit
* fix(zigbee): Apply same formatting on all returns
* fix(zigbee): Add check when adding a OTA cluster
* fix(zigbee): release locks before returning
* fix(zigbee): use correct return in doorWindowHandle
* fix/zigbee): Add missing return in WindowCovering
* fix(zigbee): Added a note of future task
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix: BLEAdvertising methods return error codes
Some methods returned void even if they could produce an error, in which case they failed silently. They now return the corresponding error code.
* fix: methods which could error out return bool
Changed from returning esp_error_t, in order to be more arduino compatible.
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
* fix(eth): Set the ETH properties at the correct time
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* Fix(esp32s3usbotg) stdbool dependency in pins_arduino.h
* fix(board): Remove comment in pins_arduino.h
---------
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
* Add a Default 32MB partition
This is a complementary addition to use 32MB boards in PlatformIO like the ESP32-S3-DevKitC-1-N32R8V.
* Edited Board file
Added partition "default_32MB" to the menu
* Delete tools/boards.txt
* Edited boards.txt
Added the "default_32MB" partition to the menu
* feat(boards): adds app13M_data7M_32MB to s3 octal
* fix(board): format linux new line
* fix(boards): trying to make it \n and not \r\n
* add change to esp32s3-octal board too
This reverts commit 3afddfc2ce5281d8cd0344bc91665665d4179040, reversing
changes made to a9f64003bad5a2dcc1bd7f66e8494c9f8c8dd2e2.
* fix(boards): setting eol as /n
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(rmt): Fixed protocol name in RMTReadXJT examples
I couldn't find a protocol called D12.
I found LR12 so I'll fix that.
* feat(RMT): changing example commentary to reflect D16 protocol
---------
Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
* feat(uart): adds a function to calculate maximum valid rx timeout
* fix(uart): check uart rx timeout value and log an error msg
* fix(uart): changes log message to a more clear one
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* feat(zigbee): Save network channel after 1st joining for faster rejoin
* ci(pre-commit): Apply automatic fixes
* feat(zigbee): Add channel mask reset after timeout
* feat(zigbee): Add the resetChannelMask to all Begin methods
* feaz(zigbee): Move function to private and add set method
* fix(example): Remove test from device mode name
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(uart): uart begin does not set the clock source when baudrate changes
* fix(uart): returns success on baud rate change operation
* fix(code): uart typo - missing ( in the code
* fix(uart): replacing mutex lock to avoid double lock
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(uart): ci uart test fail on esp32s2 after uart break
* fix(uart): ci error with change pins test on ESP32
* fix(uart): ci test with perimgr using esp32 fails
* feat(uart): avoid electrical noise before setting pins
* fix(uart_ci): fixes the UART CI sketch due to IDF 5.3 pull up change
* fix(uart_ci): keeping previous formatting and applying changes
* feat(uart_ci): trick for passing esp32 wokwi ci test
Wokwi ESP32 fails with the pinMode() in line 56|58
Real device with Arduino Core 3.1.2 and 3.2 needs it to fix the issue.
This patch will skip the pinMode() when compiling with Wokwi and make it pass the CI test case.
* feat(uart_ci): reverting the wokwi patch, once it didn't make any difference
* fix(wokwi): Change CPU freq to 80
* fix(wokwi): Change CPU freq to 120
* ci(pre-commit): Apply automatic fixes
* fix(uart_ci): fixes a couple typos in commentatries
---------
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* test(i2c): Do not use delta as Wokwi timing can be inconsistent
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
* fix(matter): itshall set digital mode before digitalWrite
* fix(matter): example must set pin in digital mode before writting
* fix(matter): example shall set digital mode before writing
* fix(matter): digitalMode necessary before digitalWrite(LOW)
* fix(matter): example must set digital mode after analogwrite
* fix(matter): wrong copy paste
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>