Link Layer Frame Send Scheduler, Internal RX Polling, Framework for Generic Frames + Fragmentation

This commit is contained in:
superkor
2025-12-14 02:51:33 -05:00
parent 17606bc98d
commit fe2f396817
24 changed files with 3735 additions and 818 deletions

14
test/CMakeLists.txt Normal file
View File

@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.30)
set(EXTRA_COMPONENT_DIRS "../components")
# Set the components to include the tests for.
# This can be overridden from CMake cache:
# - when invoking CMake directly: cmake -D TEST_COMPONENTS="xxxxx" ..
# - when using idf.py: idf.py -T xxxxx build
#
set(TEST_COMPONENTS "dataLink")
set(IDF_TARGET "esp32s3")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
idf_build_set_property(MINIMAL_BUILD ON)
project(capstone)

3
test/main/CMakeLists.txt Normal file
View File

@@ -0,0 +1,3 @@
idf_component_register(SRCS "main.cpp"
PRIV_REQUIRES unity nvs_flash
INCLUDE_DIRS ".")

22
test/main/main.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include "unity.h"
#include "sdkconfig.h"
#include "nvs_flash.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
extern "C" [[noreturn]] void app_main(void){
ESP_ERROR_CHECK(nvs_flash_init());
unity_run_all_tests();
while(true){
//do nothing
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
// for (int i = 5; i >= 0; i--) {
// printf("Restarting in %d seconds...\n", i);
// vTaskDelay(1000 / portTICK_PERIOD_MS);
// }
// printf("Restarting now.\n");
// fflush(stdout);
// esp_restart();
}

1938
test/sdkconfig Normal file

File diff suppressed because it is too large Load Diff

4
test/sdkconfig.defaults Normal file
View File

@@ -0,0 +1,4 @@
CONFIG_ESP_TASK_WDT_EN=n
CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=y
CONFIG_UNITY_ENABLE_FIXTURE=y
CONFIG_UNITY_ENABLE_BACKTRACE_ON_FAIL=y