Break down tests into categories to improve maintainability and test granularity. This makes it easier to execute unit tests in CI/CD pipelines. Closes #1054.
18 lines
544 B
C
18 lines
544 B
C
#include "test_common.h"
|
||
|
||
const char *TEST_TAG = "RELAY_CHN_TEST";
|
||
|
||
// GPIO eşlemesi (örn: GPIO_NUM_4 vs GPIO_NUM_5)
|
||
const gpio_num_t gpio_map[] = {
|
||
GPIO_NUM_4, GPIO_NUM_5, GPIO_NUM_18, GPIO_NUM_19
|
||
};
|
||
|
||
const uint8_t gpio_count = sizeof(gpio_map) / sizeof(gpio_map[0]);
|
||
const uint8_t relay_chn_count = gpio_count / 2;
|
||
|
||
// Konfigürasyon tabanlı inertia süresi
|
||
const uint32_t opposite_inertia_ms = CONFIG_RELAY_CHN_OPPOSITE_INERTIA_MS;
|
||
const uint32_t test_delay_margin_ms = 50; // ms toleransı
|
||
|
||
bool g_is_component_initialized = false;
|