- Refactor reset_channels_to_idle_state to reset_channels_to_defaults and enhance functionality with direction reset logic. This is because some tilt test cases were failing due to modified run limit values in some of the previous core test cases. See #1089-3. - A relay channel listener has been added to diagnose channel states during tests. Refs #1089
24 lines
578 B
C
24 lines
578 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_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); |