30 lines
670 B
C
30 lines
670 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 Kozmotronik Tech
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#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_defaults(void);
|
|
|
|
// Relay channel state listener for tests
|
|
void test_state_listener(uint8_t id, relay_chn_state_t old_state, relay_chn_state_t new_state); |