summaryrefslogtreecommitdiff
path: root/Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c
diff options
context:
space:
mode:
authorJoshua Yun <joshua@joshuayun.com>2025-03-13 23:16:14 -0500
committerJoshua Yun <joshua@joshuayun.com>2025-03-13 23:16:14 -0500
commit2b4e742f021a37fffcc5e557c4456c0a4ea77483 (patch)
tree2db677efc1bbe14149d4248dca61969cffa9e1c1 /Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c
parent3ecbe307fbdbede75d8b66d50244c0f4260a8774 (diff)
downloadsdr-2b4e742f021a37fffcc5e557c4456c0a4ea77483.tar.gz
fix: software was accidentally a submoduleHEADmaster
Diffstat (limited to 'Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c')
-rw-r--r--Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c b/Software/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/main.c
new file mode 100644
index 0000000..3bb7ff9
--- /dev/null
+++ b/Software/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
+}