Serial-over-USB console on STM32.
Example of USB-serial module on STM32 architecture, using libopencm3 library. This example emulates a console - i.e. user can send commands to Paparazzi and get response To be used with Lisa M/MX 2.1
Example for airframe file
Add to your firmware section:
<module name="usb_serial_stm32_example1"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Event Functions
These event functions are called in each cycle of the module event loop.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw usb_serial_stm32_example1.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="usb_serial_stm32_example1" dir="com">
<doc>
<description>
Serial-over-USB console on STM32.
Example of USB-serial module on STM32 architecture, using libopencm3 library.
This example emulates a console - i.e. user can send commands to Paparazzi and get response
To be used with Lisa M/MX 2.1
</description>
</doc>
<dep>
<depends>uart</depends>
</dep>
<header>
<file name="usb_serial_stm32.h"/>
</header>
<init fun="init_usb_serial()"/>
<event fun="event_usb_serial()"/>
<makefile target="!nps|sim">
<define name="USE_USB_SERIAL"/>
<file name="usb_serial_stm32_example1.c"/>
</makefile>
</module>