added basic configuration stuff
This commit is contained in:
parent
fa096c7ce0
commit
ded99b7059
11
configuration.c
Normal file
11
configuration.c
Normal 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
Normal file
10
configuration.h
Normal 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
|
Loading…
Reference in New Issue
Block a user