Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uart_drop] rename for uniformity: module name='switch' type='uart'
- Loading branch information
Showing
9 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!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"/> | ||
</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> | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters