[modules] usb_serial_stm32_examples not only for ap

but for all target excluding sim and nps
This commit is contained in:
Felix Ruess
2016-03-30 16:16:46 +02:00
parent 1038391f74
commit 209221a1e9
3 changed files with 17 additions and 20 deletions
+1
View File
@@ -96,6 +96,7 @@
<module name="ahrs" type="int_cmpl_quat"/>
</target>
<target name="test_module" board="lisa_mx_2.0">
<module name="usb_serial_stm32_example1"/>
</target>
</firmware>
+2 -4
View File
@@ -17,10 +17,8 @@
<init fun="init_usb_serial()"/>
<event fun="event_usb_serial()"/>
<makefile target="ap">
<raw>
ap.srcs += $(SRC_ARCH)/usb_ser_hw.c
</raw>
<makefile target="!nps|sim">
<file_arch name="usb_ser_hw.c" dir=""/>
<define name="USE_USB_SERIAL"/>
<file name="usb_serial_stm32_example1.c"/>
</makefile>
+14 -16
View File
@@ -1,17 +1,17 @@
<!DOCTYPE module SYSTEM "module.dtd">
<!DOCTYPE module SYSTEM "module.dtd">
<module name="usb_serial_stm32_example1" dir="com">
<module name="usb_serial_stm32_example1" dir="com">
<doc>
<description>
STM32 USB-serial example.
Example of USB-serial module on STM32 architecture, using libopencm3 library.
This example tests the capability of USB-serial port by sending a lots of data.
To be used with Lisa M/MX 2.1
</description>
<description>
STM32 USB-serial example.
Example of USB-serial module on STM32 architecture, using libopencm3 library.
This example tests the capability of USB-serial port by sending a lots of data.
To be used with Lisa M/MX 2.1
</description>
</doc>
<header>
<file name="usb_serial_stm32.h"/>
<file name="usb_serial_stm32.h"/>
</header>
<init fun="init_usb_serial()"/>
@@ -20,11 +20,9 @@
<event fun="event_usb_serial()"/>
<makefile target="ap">
<raw>
ap.srcs += $(SRC_ARCH)/usb_ser_hw.c
</raw>
<define name="USE_USB_SERIAL"/>
<file name="usb_serial_stm32_example2.c"/>
<makefile target="!nps|sim">
<file_arch name="usb_ser_hw.c" dir=""/>
<define name="USE_USB_SERIAL"/>
<file name="usb_serial_stm32_example2.c"/>
</makefile>
</module>
</module>