summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-05-22 20:57:52 +0700
committerhathach <[email protected]>2020-05-22 20:57:52 +0700
commit4c01099a3d6e92404c645e5c906968955a6c9b1a (patch)
tree8d8f669349cdc5b05c03a244730650813d8a2073 /hw
parentf308990ab5289a72d3d77a28e141991e6f8c3ced (diff)
update makefile to build with ohci host
update ses project for lpc1769 with rtt
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c
index 56f407326..383a02ef4 100644
--- a/hw/bsp/board.c
+++ b/hw/bsp/board.c
@@ -40,6 +40,8 @@
#if defined(LOGGER_RTT)
// Logging with RTT
+// If using SES IDE, use the Syscalls/SEGGER_RTT_Syscalls_SES.c instead
+#if !(defined __SES_ARM) && !(defined __SES_RISCV) && !(defined __CROSSWORKS_ARM)
#include "SEGGER_RTT.h"
TU_ATTR_USED int sys_write (int fhdl, const void *buf, size_t count)
@@ -54,6 +56,7 @@ TU_ATTR_USED int sys_read (int fhdl, char *buf, size_t count)
(void) fhdl;
return SEGGER_RTT_Read(0, buf, count);
}
+#endif
#elif defined(LOGGER_SWO)
// Logging with SWO for ARM Cortex