From 86608c6770cf08c138a2bdab5855072f64be09ef Mon Sep 17 00:00:00 2001 From: joshua Date: Sat, 30 Dec 2023 23:54:31 -0500 Subject: initial commit --- .../CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c (limited to 'Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c') diff --git a/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c b/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c new file mode 100644 index 0000000..3bb7ff9 --- /dev/null +++ b/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c @@ -0,0 +1,31 @@ +#include "jtest.h" +#include "all_tests.h" +#include "arm_math.h" + + +#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) && !defined (__MICROLIB) +__asm(" .global __ARM_use_no_argv\n"); +#endif + + +void debug_init(void) +{ + uint32_t * SHCSR_ptr = (uint32_t *) 0xE000ED24; /* System Handler Control and State Register */ + *SHCSR_ptr |= 0x70000; /* Enable UsageFault, BusFault, and MemManage fault*/ +} + +int main(void) +{ +#if !defined(FILEIO) + debug_init(); +#endif + + JTEST_INIT(); /* Initialize test framework. */ + + JTEST_GROUP_CALL(all_tests); /* Run all tests. */ + + JTEST_ACT_EXIT_FW(); /* Exit test framework. */ +#if !defined(FILEIO) + while (1); /* Never return. */ +#endif +} -- cgit v1.2.3