[uart_drop] rename for uniformity: module name='switch' type='uart'

This commit is contained in:
Christophe De Wagter
2016-10-20 11:39:19 +02:00
parent e97dd798f5
commit a7e3bccdfe
9 changed files with 52 additions and 10 deletions
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="switch_uart" dir="switching">
<doc>
<description>Active swithes via UART commands.
Module typically used in competitions to drop items like paint-balls. An arduino is a typical target.
</description>
</doc>
<settings>
<dl_settings NAME="Switch control">
<dl_settings NAME="SWITCH">
<dl_setting var="switch_uart_channel" min="0" step="1" max="4" module="switching/switch_uart" handler="SwitchUartChannel">
<strip_button name="1" value="1" group="servo_switch"/>
<strip_button name="2" value="2" group="servo_switch"/>
<strip_button name="3" value="3" group="servo_switch"/>
<strip_button name="4" value="4" group="servo_switch"/>
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="switch_uart.h"/>
</header>
<makefile>
<file name="switch_uart.c"/>
<configure name="SWITCH_UART_PORT" default="uart1" case="upper|lower"/>
<configure name="SWITCH_UART_BAUD" default="B115200"/>
<define name="SWITCH_UART_PORT" value="$(SWITCH_UART_PORT_LOWER)"/>
<define name="USE_$(SWITCH_UART_PORT_UPPER)"/>
<define name="$(SWITCH_UART_PORT_UPPER)_BAUD" value="$(SWITCH_UART_BAUD)"/>
</makefile>
</module>