mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
pulse_counter_ulp: clang-tidy exlusions on IDF generated aspects
This commit is contained in:
parent
1feb0bf8cb
commit
6900b97b25
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
#include "pulse_counter_ulp_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esp32/ulp.h"
|
||||
#include "ulp_main.h"
|
||||
// This is created by ESP-IDF and clang-tidy doesn't know it exists
|
||||
#include "ulp_main.h" // NOLINT(clang-diagnostic-error)
|
||||
#include "soc/rtc_periph.h"
|
||||
#include "driver/rtc_io.h"
|
||||
#include <esp_sleep.h>
|
||||
|
@ -25,8 +26,11 @@ const char *to_string(CountMode count_mode) {
|
|||
}
|
||||
} // namespace
|
||||
|
||||
// These identifiers are defined by ESP-IDF and we don't have control over them
|
||||
// NOLINTBEGIN(readability-identifier-naming)
|
||||
extern const uint8_t ulp_main_bin_start[] asm("_binary_ulp_main_bin_start");
|
||||
extern const uint8_t ulp_main_bin_end[] asm("_binary_ulp_main_bin_end");
|
||||
// NOLINTEND(readability-identifier-naming)
|
||||
|
||||
std::unique_ptr<UlpProgram> UlpProgram::start(const Config &config) {
|
||||
esp_err_t error = ulp_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(uint32_t));
|
||||
|
|
Loading…
Reference in a new issue