- Delete unused declaration of `g_is_component_initialized`. - Replace the following constants with approprite config options: + `relay_chn_count` > `CONFIG_RELAY_CHN_COUNT` + `opposite_inerta_ms` > `CONFIG_RELAY_CHN_OPPOSITE_INERTIA_MS` - Replace the definition of the `test_delay_margin_ms` constant with `#define TEST_DELAY_MARGIN_MS 50` for preprocessor calculations.
21 lines
441 B
C
21 lines
441 B
C
#pragma once
|
|
|
|
#include <string.h> // For memset
|
|
#include "unity.h"
|
|
#include "relay_chn.h"
|
|
#include "esp_log.h"
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
|
|
// Test log tag
|
|
extern const char *TEST_TAG;
|
|
|
|
// GPIO configurations
|
|
extern const uint8_t gpio_map[];
|
|
extern const uint8_t gpio_count;
|
|
|
|
// Config variables for tests
|
|
#define TEST_DELAY_MARGIN_MS 50
|
|
|
|
// Reset channels to Idle state
|
|
void reset_channels_to_idle_state(void); |