Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #include "jtest.h" |
2 | #include "all_tests.h" |
||
3 | #include "arm_math.h" |
||
4 | |||
5 | |||
6 | #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) |
||
7 | asm(" .global __ARM_use_no_argv\n"); |
||
8 | #endif |
||
9 | |||
10 | |||
11 | void debug_init(void) |
||
12 | { |
||
13 | uint32_t * SHCSR_ptr = (uint32_t *) 0xE000ED24; /* System Handler Control and State Register */ |
||
14 | *SHCSR_ptr |= 0x70000; /* Enable UsageFault, BusFault, and MemManage fault*/ |
||
15 | } |
||
16 | |||
17 | int main(void) |
||
18 | { |
||
19 | debug_init(); |
||
20 | |||
21 | JTEST_INIT(); /* Initialize test framework. */ |
||
22 | |||
23 | JTEST_GROUP_CALL(all_tests); /* Run all tests. */ |
||
24 | |||
25 | JTEST_ACT_EXIT_FW(); /* Exit test framework. */ |
||
26 | while (1); /* Never return. */ |
||
27 | } |