- Created `test_relay_chn_tilt_multi.c` and `test_relay_chn_tilt_single.c` to implement comprehensive tests for the tilt functionality of relay channels, covering various scenarios including transitions between states and sensitivity settings. - Introduced a new partition table in `partitionTable.csv` for proper memory management. - Updated `sdkconfig` to set the relay channel count to 1 for single channel testing and adjusted related configurations. - Added default configuration file `sdkconfig.defaults.single` for streamlined testing setup.
24 lines
516 B
C
24 lines
516 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;
|
|
extern const uint8_t relay_chn_count;
|
|
|
|
// Config variables for tests
|
|
extern const uint32_t opposite_inertia_ms;
|
|
extern const uint32_t test_delay_margin_ms;
|
|
|
|
// Init state
|
|
extern bool g_is_component_initialized;
|