Skip to content

Commit

Permalink
Avoid conflicts with other software packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
balanceTWK committed Jun 15, 2022
1 parent d96b29d commit 4a20535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ src += ['port/dwt_rtt_port.c']
path += [cwd + '/port']


group = DefineGroup('arm_dwt', src, depend = ['PKG_USING_ARMV7M_DWT'], CPPPATH = path)
group = DefineGroup('arm_dwt', src, depend = ['PKG_USING_ARMV7M_DWT_TOOL'], CPPPATH = path)

Return('group')
2 changes: 1 addition & 1 deletion port/DebugMon_Handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
void DebugMon_Handler(void)
{
dwt_println("DebugMon_Handler\r\n");
#ifdef PKG_USING_ARMV7M_DWT_DEMO
#ifdef PKG_USING_ARMV7M_DWT_TOOL_DEMO
extern int armv7_dwt_rtt_demo(void);
armv7_dwt_rtt_demo();
#endif
Expand Down
2 changes: 1 addition & 1 deletion port/dwt_rtt_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MSH_CMD_EXPORT(dwt_show_info, Shows DWT usage information.);
MSH_CMD_EXPORT(dwt_init, Initialize DWT peripherals.);
MSH_CMD_EXPORT(dwt_deinit, Restore DWT peripherals.);

#ifdef PKG_USING_ARMV7M_DWT_DEMO
#ifdef PKG_USING_ARMV7M_DWT_TOOL_DEMO

#define CALL_STACK_MAX_DEPTH 64
#define GET_THREAD_STACK_START (uint32_t)(rt_thread_self()->stack_addr)
Expand Down

0 comments on commit 4a20535

Please sign in to comment.