summaryrefslogtreecommitdiff
path: root/examples/host
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 /examples/host
parentf308990ab5289a72d3d77a28e141991e6f8c3ced (diff)
update makefile to build with ohci host
update ses project for lpc1769 with rtt
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/Makefile6
-rw-r--r--examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject23
2 files changed, 19 insertions, 10 deletions
diff --git a/examples/host/cdc_msc_hid/Makefile b/examples/host/cdc_msc_hid/Makefile
index 373dbbf9e..29a323957 100644
--- a/examples/host/cdc_msc_hid/Makefile
+++ b/examples/host/cdc_msc_hid/Makefile
@@ -9,15 +9,17 @@ INC += \
EXAMPLE_SOURCE += $(wildcard src/*.c)
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
+CFLAGS += -Wno-error=cast-align
# TinyUSB Host Stack source
SRC_C += \
src/host/usbh.c \
src/host/hub.c \
src/host/ehci/ehci.c \
- src/host/ehci/ehci.c \
+ src/host/ohci/ohci.c \
src/class/cdc/cdc_host.c \
src/class/msc/msc_host.c \
- src/portable/nxp/lpc18_43/hcd_lpc18_43.c
+ src/portable/nxp/lpc18_43/hcd_lpc18_43.c \
+ src/portable/nxp/lpc17_40/hcd_lpc17_40.c
include ../../rules.mk
diff --git a/examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject b/examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject
index ba5a9cea7..8a2c36390 100644
--- a/examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject
+++ b/examples/host/cdc_msc_hid/ses/lpc175x_6x/lpc175x_6x.emProject
@@ -19,8 +19,8 @@
arm_target_device_name="LPC1769"
arm_target_interface_type="SWD"
build_treat_warnings_as_errors="Yes"
- c_preprocessor_definitions="LPC175x_6x;__LPC1700_FAMILY;__LPC176x_SUBFAMILY;ARM_MATH_CM3;FLASH_PLACEMENT=1;CORE_M3;BOARD_LPCXPRESSO1769;CFG_TUSB_MCU=OPT_MCU_LPC175X_6X"
- c_user_include_directories="../../src;$(rootDir)/hw;$(rootDir)/src;$(lpcDir)/inc"
+ c_preprocessor_definitions="LPC175x_6x;__LPC1700_FAMILY;__LPC176x_SUBFAMILY;ARM_MATH_CM3;FLASH_PLACEMENT=1;CORE_M3;BOARD_LPCXPRESSO1769;CFG_TUSB_MCU=OPT_MCU_LPC175X_6X;CFG_TUSB_DEBUG=2;LOGGER_RTT"
+ c_user_include_directories="../../src;$(rootDir)/hw;$(rootDir)/src;$(lpcDir)/inc;$(rootDir)/lib/SEGGER_RTT/RTT"
debug_register_definition_file="LPC176x5x_Registers.xml"
debug_target_connection="J-Link"
gcc_enable_all_warnings="Yes"
@@ -101,12 +101,19 @@
<file file_name="LPC176x5x_Vectors.s" />
<file file_name="thumb_crt0.s" />
</folder>
- <folder
- Name="segger_rtt"
- exclude=""
- filter="*.c;*.h"
- path="../../../../../lib/segger_rtt"
- recurse="No" />
+ <folder Name="lib">
+ <folder Name="SEGGER_RTT">
+ <folder Name="RTT">
+ <file file_name="../../../../../lib/SEGGER_RTT/RTT/SEGGER_RTT.c" />
+ <file file_name="../../../../../lib/SEGGER_RTT/RTT/SEGGER_RTT.h" />
+ <file file_name="../../../../../lib/SEGGER_RTT/RTT/SEGGER_RTT_Conf.h" />
+ <file file_name="../../../../../lib/SEGGER_RTT/RTT/SEGGER_RTT_printf.c" />
+ </folder>
+ <folder Name="Syscalls">
+ <file file_name="../../../../../lib/SEGGER_RTT/Syscalls/SEGGER_RTT_Syscalls_SES.c" />
+ </folder>
+ </folder>
+ </folder>
</project>
<configuration Name="LPCXpresso 1769" />
</solution>