diff --git a/firmware/hw_layer/sensors/CJ125.h b/firmware/hw_layer/sensors/CJ125.h index 0a62404852..d034d5d2d9 100644 --- a/firmware/hw_layer/sensors/CJ125.h +++ b/firmware/hw_layer/sensors/CJ125.h @@ -8,6 +8,8 @@ #ifndef HW_LAYER_SENSORS_CJ125_H_ #define HW_LAYER_SENSORS_CJ125_H_ +#include "engine_configuration.h" + // CJ125 SPI Registers #define IDENT_REG_RD 0x48 // Read Identity Register #define INIT_REG1_WR 0x56 // Write To Initialization Register 1 diff --git a/unit_tests/main.cpp b/unit_tests/main.cpp index 285a1dfa42..bd308ec701 100644 --- a/unit_tests/main.cpp +++ b/unit_tests/main.cpp @@ -23,6 +23,7 @@ #include "engine_configuration.h" #include "test_idle_controller.h" +#include "test_c125.h" #include "afm2mapConverter.h" #include "test_signal_executor.h" #include "trigger_central.h" @@ -124,8 +125,10 @@ int main(void) { testTriggerDecoder(); + testCJ125(); + // resizeMap(); - printf("Success 20181206\r\n"); + printf("Success 20190103\r\n"); printAllTriggers(); // printConvertedTable(); return EXIT_SUCCESS; diff --git a/unit_tests/test.mk b/unit_tests/test.mk index 99442e48f9..ecd2ced8c4 100644 --- a/unit_tests/test.mk +++ b/unit_tests/test.mk @@ -4,6 +4,7 @@ TEST_SRC_CPP = test_util.cpp \ global_execution_queue.cpp \ test_basic_math/test_find_index.cpp \ test_basic_math/test_interpolation_3d.cpp \ + test_cj125.cpp \ test_data_structures/test_engine_math.cpp \ test_startOfCrankingPrimingPulse.cpp \ test_fasterEngineSpinningUp.cpp \ diff --git a/unit_tests/test_c125.h b/unit_tests/test_c125.h new file mode 100644 index 0000000000..8e4334e7f3 --- /dev/null +++ b/unit_tests/test_c125.h @@ -0,0 +1,13 @@ +/* + * test_c125.h + * + * Created on: Jan 3, 2019 + * @author Andrey Belomutskiy, (c) 2012-2019 + */ + +#ifndef TEST_C125_H_ +#define TEST_C125_H_ + +void testCJ125(); + +#endif /* TEST_C125_H_ */ diff --git a/unit_tests/test_cj125.cpp b/unit_tests/test_cj125.cpp new file mode 100644 index 0000000000..c8a1cdf847 --- /dev/null +++ b/unit_tests/test_cj125.cpp @@ -0,0 +1,18 @@ +/* + * test_cj125.cpp + * + * Created on: Jan 3, 2019 + * @author Andrey Belomutskiy, (c) 2012-2019 + */ + + +#include "test_c125.h" +#include "CJ125.h" + +void testCJ125() { + printf("====================================================================================== testCJ125\r\n"); + +} + + + diff --git a/unit_tests/test_engine_math.cpp b/unit_tests/test_engine_math.cpp index 502c29d43b..960ffeb89a 100644 --- a/unit_tests/test_engine_math.cpp +++ b/unit_tests/test_engine_math.cpp @@ -1,8 +1,8 @@ /* * @file test_engine_math.c * - * Created on: Nov 14, 2013 - * Author: Andrey Belomutskiy, (c) 2012-2018 + * @date Nov 14, 2013 + * @author Andrey Belomutskiy, (c) 2012-2019 */ #include "test_engine_math.h"