From ded99b7059df6de6fdce151e887d704f899141b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Thu, 17 Jan 2019 19:39:42 +0100 Subject: [PATCH] added basic configuration stuff --- configuration.c | 11 +++++++++++ configuration.h | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 configuration.c create mode 100644 configuration.h diff --git a/configuration.c b/configuration.c new file mode 100644 index 0000000..e45c0dd --- /dev/null +++ b/configuration.c @@ -0,0 +1,11 @@ +#include + +#include "configuration.h" + + +void +configuration_init(void) +{ + PORTD |= _BV(PD6); + PORTD |= _BV(PD7); +} diff --git a/configuration.h b/configuration.h new file mode 100644 index 0000000..5103ec1 --- /dev/null +++ b/configuration.h @@ -0,0 +1,10 @@ +#ifndef _CONFIGURATION_H_ +#define _CONFIGURATION_H_ + +#define CHANNEL_1_ENABLED (PIND & _BV(PD6)) +#define CHANNEL_2_ENABLED (PIND & _BV(PD7)) + +void +configuration_init(void); + +#endif