Commit graph

7617 commits

Author SHA1 Message Date
brisk
a9b1f32828 pulse_counter_ulp: Add namespace to dummy header to pass lint 2024-10-07 22:25:00 +10:30
brisk
36e1573927 pulse_counter_ulp: Add ulp_main.h to satisfy clang-tidy
This is generated by IDF at compile time, but clang-tidy doesn't know about it so fails at its inclusion.
2024-10-07 22:17:52 +10:30
brisk
70ac9daf4c pulse_counter_ulp: Try using ulp_main as a system include 2024-10-06 21:15:10 +10:30
brisk
2b7fc64e46 pulse_counter_ulp: Add required structure to dummy header 2024-10-06 19:18:17 +10:30
brisk
cdb0d0de9b ulp_pulse_counter: Add dummy ulp_main.h to appease clang-tidy
The real version is generated by IDF
2024-10-06 19:08:52 +10:30
brisk
6900b97b25 pulse_counter_ulp: clang-tidy exlusions on IDF generated aspects 2024-10-06 18:15:09 +10:30
brisk
1feb0bf8cb pulse_counter_ulp: Fix enum case 2024-10-06 18:08:29 +10:30
brisk
ad3b75601e pulse_counter_ulp: Fix whitespace 2024-10-06 17:34:08 +10:30
brisk
bc8dd18bf5 pulse_counter_ulp: Add brisk0 as codeowner 2024-10-06 17:25:47 +10:30
brisk
8619852a28 pulse_counter_ulp: Add tests
Modified from pulse_counter, reduced in scope to esp32
2024-10-06 17:25:47 +10:30
brisk
e5ac747225 pulse_counter_ulp: Validate platform properly
Only available on ESP32 with ESP-IDF
2024-10-06 17:25:47 +10:30
brisk
7b9d000522 pulse_counter_ulp: Tidy comments 2024-10-06 17:25:47 +10:30
brisk
c57ad9fff9 pulse_counter_ulp: Count pulses not edges
- Count both separately in ULP program
- Manage pin inversion manually in update()
- Take into account configured mode
2024-10-06 17:25:47 +10:30
brisk
40b18666c9 pulse_counter_ulp: Remove total sensor automation
This automation doesn't preserve state over deep sleep, making it unhelpful for
the ULP pulse counter.
2024-10-06 17:25:47 +10:30
brisk
67b746693f pulse_counter_ulp: Record and dump all config items 2024-10-06 17:25:47 +10:30
brisk
8b66ff90d8 pulse_counter_ulp: fix typo in bc64701 2024-10-06 17:25:47 +10:30
brisk
4a8907d70d pulse_counter_ulp: Store mean_exec_time in Ulp Program
This lets the estimated interval survive sleep, and finally provide reasonable
interval estimates over deep sleep periods.
2024-10-06 17:25:47 +10:30
brisk
2b453289a9 pulse_counter_ulp: Use factory method to construct UlpProgram when we're ready 2024-10-06 17:25:47 +10:30
brisk
5646dd5d0c pulse_counter_ulp: Make sleep duration configurable, keep estimate of ulp runtime 2024-10-06 17:25:47 +10:30
brisk
bd9029c2b2 pulse_counter_ulp: avoid zero 2024-10-06 17:25:47 +10:30
brisk
c882b58e53 pulse_counter_ulp: Don't break chrono type-safety 2024-10-06 17:25:47 +10:30
brisk
b41746cc54 pulse_counter_ulp: Use std::chrono instead of millis()
millis() appears to jump when a time component synchronises. steady_clock() should avoid this.
2024-10-06 17:25:47 +10:30
brisk
e736091950 pulse_counter_ulp: refactor UlpProgram class 2024-10-06 17:25:47 +10:30
brisk
2ba3b85440 pulse_counter_ulp: Add run_count to ULP program 2024-10-06 17:25:47 +10:30
brisk
31e72a5232 pulse_counter_ulp: remove time component 2024-10-06 17:25:47 +10:30
brisk
7cd5bad1c2 pulse_counter_ulp: only read valid bits of ulp_edge_count 2024-10-06 17:25:47 +10:30
brisk
bd8858e053 pulse_counter_ulp: CountMode to enum class 2024-10-06 17:25:47 +10:30
brisk
4517698322 pulse_counter_ulp: rename classes and remove filter 2024-10-06 17:25:47 +10:30
brisk
5fb117e0ea pulse_counter_ulp: expunge other storage types 2024-10-06 17:25:47 +10:30
brisk
3059e65d13 pulse_counter_ulp: Remove filter configuration 2024-10-06 17:25:47 +10:30
brisk
5f98bf4808 pulse_counter_ulp: Remove unnecessary configuration variables 2024-10-06 17:25:47 +10:30
brisk
9c70733028 pulse_counter_ulp: Rename files to use suffix 2024-10-06 17:25:47 +10:30
brisk
7e22e7f813 pulse_counter: Restore original pulse counter 2024-10-06 17:25:47 +10:30
brisk
2b51fe7f95 pulse_counter: Move ulp pulse_counter to its own folder 2024-10-06 17:25:47 +10:30
brisk
146f733be9 pulse_counter: Use 64 bit time always 2024-10-06 17:25:47 +10:30
brisk
5efcbf8dfc pulse_counter: save last_time_ as preference
This lets rates be calculated across deep sleeps when a time source is configured
2024-10-06 17:25:47 +10:30
brisk
f2046573fb pulse_counter: When using Time, don't update until time sync
Avoids nonphysical spikes across reboots, sleeps or time syncs
2024-10-06 17:25:47 +10:30
brisk
b230491fd2 pulse_counter: enable use of RealTimeClock 2024-10-06 17:25:47 +10:30
brisk
68b0e145f8 pulse_counter: ULP maintain total pulse-count through deep sleep
Note that the ULP program is not able to count pulse rate through deep-sleep yet due to the loss of timing over deep-sleep
2024-10-06 17:25:47 +10:30
brisk
a7c68f4e08 pulse_counter: Remove ULP self-wakeup
Wakeup will be handled by the deep-sleep component instead
2024-10-06 17:25:47 +10:30
brisk
bb0ed5b855 pulse_counter: Replace storage enum with dependency injection
This substantially reduces the need for #ifdefs to handle conditional dependency on the ULP system
2024-10-06 17:25:47 +10:30
brisk
fe533952cc pulse_counter: conditionally compile ULP 2024-10-06 17:25:47 +10:30
brisk
30d4a7fb34 pulse_counter: Integrate platformio ulp example into pulse_counter 2024-10-06 17:25:47 +10:30
brisk
49b4169f51 pulse_counter: Add ULP sources from Platformio example
Source: https://github.com/platformio/platform-espressif32/tree/develop/examples/espidf-ulp-pulse
2024-10-06 17:25:47 +10:30
brisk
349dc506ce pulse_counter: Add custom CMakeLists when using use_ulp
This is necessary to compile the ULP program in ESP-IDF
2024-10-06 17:25:47 +10:30
brisk
7e4d37c9f1 Use enum not bool for pulse counter storage type
Allows for more storage types
2024-10-06 17:25:46 +10:30
guillempages
b3cff566eb
[lvgl] Remap image to img in "set_style_*" (#7546)
Some checks are pending
CI / Run script/ci-custom (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Run pytest (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / Component test (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
YAML lint / yamllint (push) Waiting to run
2024-10-06 09:44:18 +11:00
guillempages
0a62106b7b
[image] Use "puremagic" instead of "magic" python module (#7536)
Some checks failed
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Run pytest (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Component test (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
CI for docker images / Build docker containers (push) Has been cancelled
2024-10-05 17:07:32 +10:00
Keith Burzinski
1cf4818640
[CI] Use a list when reading idedata for includes (#7535)
Some checks failed
CI / Create common environment (push) Has been cancelled
CI / Check black (push) Has been cancelled
CI / Check flake8 (push) Has been cancelled
CI / Check pylint (push) Has been cancelled
CI / Check pyupgrade (push) Has been cancelled
CI / Run script/ci-custom (push) Has been cancelled
CI / Run pytest (push) Has been cancelled
CI / Check clang-format (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 IDF (push) Has been cancelled
CI / Run script/clang-tidy for ESP8266 (push) Has been cancelled
CI / list-components (push) Has been cancelled
CI / Component test (push) Has been cancelled
CI / Split components for testing into 20 groups maximum (push) Has been cancelled
CI / Test split components (push) Has been cancelled
CI / CI Status (push) Has been cancelled
2024-10-04 21:07:49 +13:00
RFDarter
523eedbc51
[web_server] Expose detail=all on all components (#7531)
Some checks failed
CI / Create common environment (push) Has been cancelled
CI / Check black (push) Has been cancelled
CI / Check flake8 (push) Has been cancelled
CI / Check pylint (push) Has been cancelled
CI / Check pyupgrade (push) Has been cancelled
CI / Run script/ci-custom (push) Has been cancelled
CI / Run pytest (push) Has been cancelled
CI / Check clang-format (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Has been cancelled
CI / Run script/clang-tidy for ESP32 IDF (push) Has been cancelled
CI / Run script/clang-tidy for ESP8266 (push) Has been cancelled
CI / list-components (push) Has been cancelled
CI / Component test (push) Has been cancelled
CI / Split components for testing into 20 groups maximum (push) Has been cancelled
CI / Test split components (push) Has been cancelled
CI / CI Status (push) Has been cancelled
2024-10-03 13:34:12 +13:00