tomaszduda23
5d9cba3dce
[nrf52, core] nrf52 core based on zephyr ( #7049 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Samuel Sieb <samuel-github@sieb.net >
Co-authored-by: Tomasz Duda <tomaszduda23@gmai.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-07-16 13:00:21 +12:00
J. Nick Koston
ee8ee4e646
Optimize logger callback API by including message length parameter ( #9368 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-07 22:00:03 +00:00
J. Nick Koston
90fb3680d4
Optimize logger performance by eliminating redundant strlen calls ( #9369 )
2025-07-08 08:36:36 +12:00
J. Nick Koston
e017250445
Reduce logger CPU usage by disabling loop when buffer is empty ( #9160 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-06-26 13:44:07 +12:00
J. Nick Koston
59889a6286
Reduce Logger memory usage by optimizing variable sizes ( #9161 )
2025-06-23 14:06:02 +12:00
J. Nick Koston
07cf6e723b
Fix unbound BLE event queue growth and reduce memory usage ( #9052 )
2025-06-15 04:45:41 +00:00
J. Nick Koston
737d502614
Fix logger stack overflow ( #8988 )
2025-06-03 04:46:17 +12:00
J. Nick Koston
0b77cb1d16
Logger Recursion Guard per Task on ESP32 ( #8765 )
2025-05-15 21:36:28 +12:00
J. Nick Koston
dded81d622
Fix ESP32 API Disconnects Caused by Concurrent Logger Writes ( #8736 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-05-13 07:03:34 +12:00
Clyde Stubbs
ff7d232ee6
[logger] Add runtime level select ( #8222 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-02-10 15:53:26 +13:00
tomaszduda23
8796a4c1a7
print task name if logger is called from other than main thread ( #6630 )
2024-05-06 10:10:49 +12:00
tomaszduda23
d4489ac373
dump config after logging CDC port is opened by host ( #6169 )
2024-03-11 11:43:33 +13:00
Clyde Stubbs
0bc645ded7
Fix build failures on host platform caused by #6167 ( #6338 )
...
* Fix build failures for logger component on host platform
* Add climits header
* Restore logger functionality on host
* Install libsodium in ci
2024-03-09 21:08:58 -06:00
tomaszduda23
de2d5a65b5
Separate logger implementations for each hardware platform into different files ( #6167 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2024-03-05 10:52:52 +13:00
Keith Burzinski
082d9fcf0e
ESP32-C3 USB_CDC fixes ( #6069 )
2024-01-11 08:05:34 +09:00
Jesse Hills
777cdb1c21
Allow use of CDC/JTAG loggers on esp32 variants with Arduino ( #4658 )
...
* Allow use of CDC/JTAG loggers on esp32 variants with Arduino
* Only on s2/s3
* Separate C3 from S2/S3
* C code builds & runs correctly, still needs work though
* Works on S2
* It works!
* Remove unnecessary header
---------
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-12-13 22:24:16 -06:00
Keith Burzinski
b632ae49d4
Improv Serial support via USB CDC and JTAG ( #5559 )
2023-10-19 19:53:09 +13:00
Austin
fa0dcac2c7
Initial ESP32-H2 Support ( #5498 )
2023-10-09 07:34:12 +13:00
Kuba Szczodrzyński
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
Co-authored-by: Sam Neirinck <git@samneirinck.com >
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com >
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com >
Co-authored-by: Sam Neirinck <github@samneirinck.be >
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com >
2023-09-05 10:16:08 +12:00
Austin
fe7893d1b3
Support for ESP32-C2 & ESP32-C6 ( #4377 )
...
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be >
2023-08-21 09:42:03 +12:00
Jesse Hills
c835b67bac
Add host target platform ( #4783 )
...
Co-authored-by: Otto winter <otto@otto-winter.com >
2023-05-10 11:38:18 +12:00
Jesse Hills
9273e3775b
Add vector includes ( #4080 )
2022-11-24 13:12:55 +13:00
Jesse Hills
de79171815
RP2040 uart support ( #3990 )
2022-11-07 10:01:40 +13:00
Jesse Hills
6153bcc6ad
Initial Support for RP2040 platform ( #3284 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com >
2022-10-20 16:50:39 +13:00
Unai
3a3d97dfa7
Add SERIAL_JTAG/CDC logger option for ESP-IDF platform for ESP32-S2/S3/C3 ( #3105 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2022-05-10 13:28:22 +12:00
Jens-Christian Skibakk
d2f37cf3f9
Support for Arduino 2 and serial port on ESP32-S2 and ESP32-C3 ( #3436 )
2022-05-09 16:17:22 +12:00
Oxan van Leeuwen
63d6b610b8
Don't define UART_SELECTION_UART2 when UART2 is unavailable ( #2512 )
2021-10-14 11:25:10 +02:00
Otto Winter
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 11:47:51 +02:00
Otto Winter
dba502c756
Logger prevent recursive logging ( #2251 )
2021-09-08 08:57:20 +12:00
Stefan Agner
501f88ca86
Avoid non-const globals and enable clang-tidy check ( #1892 )
2021-06-11 08:19:44 +12:00
Brandon Davidson
aca306d120
Fix logger uart conflict check ( #858 )
...
* Fix logger uart conflict check
* Fix class for check func
* Fix syntax
Hope lint is OK with moving the end of the conditional outside the #IFDEF
* Move end of conditional inside ifdef and remove extra whitespace
* Simplify
clang-format did not like the ifdefs and was reformatting in a way that killed clang-tidy.
Simple solution is to use logger's hw_serial as source of truth
Also simplifies the code - uart doesn't need to know what the logger uart settings mean
2019-11-14 13:36:55 +01:00
Otto Winter
c1f5e04d6c
Warn when UART and logger operating on same bus ( #803 )
2019-10-27 12:27:46 +01:00
Nikolay Vasilchuk
e4f055597c
Logger on_message trigger ( #729 )
...
* on_message
* Lint fix
* Lint fix (2)
* Lint fix (<3)
* Replace cg.int_ with int
* Revert
* Removed strdup
Co-authored-by: Otto Winter <otto@otto-winter.com >
2019-10-24 14:19:33 +02:00
Otto Winter
904a0b26ea
Make logger string memory usage more efficient ( #641 )
...
* Make logger string storing more efficient
* Lint
2019-06-16 19:14:24 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## Description:
Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97
Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍
Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).
Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.
Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.
**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs ) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>
## Checklist:
- [ ] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated in [esphomedocs](https://github.com/OttoWinter/esphomedocs ).
2019-04-17 12:06:00 +02:00