summaryrefslogtreecommitdiff
path: root/src/binwatch
diff options
context:
space:
mode:
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)
{