Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bat_checker configurable via airframe file
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<!-- | ||
Battery checker module | ||
@define BAT_CHECKER_DELAY Number of seconds the battery voltage has to be | ||
below LOW_BAT_LEVEL before the warning signal is | ||
activated. | ||
@define BAT_CHECKER_LED The LED to use for the warning signal. | ||
--> | ||
<module name="bat_checker"> | ||
<header> | ||
<file name="bat_checker.h"/> | ||
</header> | ||
<init fun="init_bat_checker()"/> | ||
<periodic fun="bat_checker_periodic()" freq="2" autorun="TRUE"/> | ||
<makefile> | ||
<!-- the warning signal will be enabled when supply voltage is below | ||
LOW_BAT_LEVEL for this number of seconds --> | ||
<define name="BAT_CHECKER_DELAY" value="5"/> | ||
<define name="BAT_CHECKER_LED" value="4"/> | ||
<define name="bat_checker_periodic_FREQ" value="2"/> | ||
<file name="bat_checker.c"/> | ||
</makefile> | ||
<!--makefile target="demo"> | ||
<define name="SOME_FLAG"/> | ||
<configure name="SOME_DEFINE" value="bla"/> | ||
</makefile--> | ||
</module> | ||
|
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