1 #ifndef _COMMON_H_
2 #define _COMMON_H_
4 #ifdef _TMS320C6X
5 // This works to set a breakpoint
6 #define SW_BREAKPOINT asm( " SWBP 0" );
7 /* Software Breakpoint to Code Composer */
8 // SW_BREAKPOINT;
9 #else
10 #include <ti/sysbios/hal/Hwi.h> // full halt
11 #include <ti/sysbios/knl/Swi.h> // full halt
12 #define SW_BREAKPOINT \
13 Hwi_disable(); \
14 Swi_disable(); \
15 while(1);
16 #endif
18 #endif /* _COMMON_H_ */