summaryrefslogtreecommitdiff
path: root/src/binwatch
diff options
context:
space:
mode:
authorNicolas Schodet2011-06-14 00:28:16 +0200
committerNicolas Schodet2011-09-26 19:40:54 +0200
commitba617778ee01eaf7d0ed64709a472f082839c923 (patch)
tree5b65baeb20476bc4b5b1aacc533efb44980812b0 /src/binwatch
parente428c4205e7727213b4a8a5115b7aadd07bd0b0b (diff)
src/common: stop led display when button is pressed
Diffstat (limited to 'src/binwatch')
-rw-r--r--src/binwatch/Makefile2
-rw-r--r--src/binwatch/counter.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/binwatch/Makefile b/src/binwatch/Makefile
index cf20b6d..43bf9db 100644
--- a/src/binwatch/Makefile
+++ b/src/binwatch/Makefile
@@ -1,6 +1,6 @@
BASE = $b/digital/avr
AVR_PROGS = counter
-counter_SOURCES = counter.c led.c
+counter_SOURCES = counter.c led.c button.c
MODULES = utils
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
diff --git a/src/binwatch/counter.c b/src/binwatch/counter.c
index fe1bd1f..71f9ba5 100644
--- a/src/binwatch/counter.c
+++ b/src/binwatch/counter.c
@@ -23,10 +23,13 @@
* }}} */
#include "common.h"
#include "common/led.h"
+#include "common/button.h"
int
main (void)
{
+ led_init ();
+ button_init ();
uint16_t i;
while (1)
{