added basic configuration stuff

master
Daniel Knüttel 2019-01-17 19:39:42 +01:00
parent fa096c7ce0
commit ded99b7059
2 changed files with 21 additions and 0 deletions

11
configuration.c 100644
View File

@ -0,0 +1,11 @@
#include <avr/io.h>
#include "configuration.h"
void
configuration_init(void)
{
PORTD |= _BV(PD6);
PORTD |= _BV(PD7);
}

10
configuration.h 100644
View File

@ -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