35 lines
735 B
C
35 lines
735 B
C
/*
|
|
* peripheral.h
|
|
*
|
|
* Created: 07.05.2014 14:02:16
|
|
* Author: netz
|
|
*/
|
|
|
|
|
|
#ifndef PERIPHERAL_H_
|
|
#define PERIPHERAL_H_
|
|
|
|
#define F_CPU 20000000
|
|
|
|
#include "io/hardware/portb.hpp"
|
|
#include "io/hardware/portd.hpp"
|
|
|
|
|
|
//OCR0B rot PD5, OCR2B grün PD3, OCR2A blau PB3
|
|
#include "io/Stripe.hpp"
|
|
typedef Stripe<avrlib::portd, PIND5, avrlib::portd, PIND3, avrlib::portb, PINB3> stripeclass;
|
|
|
|
#include "io/Led.hpp"
|
|
typedef Led<avrlib::portb, PINB0, PINB1> ledclass;
|
|
|
|
#include "io/Comperator.hpp"
|
|
typedef Comperator<avrlib::portd, PIND6, PIND7> compclass;
|
|
|
|
#include "io/IR.hpp"
|
|
typedef IR<avrlib::portd, PIND2, ledclass> irclass;
|
|
|
|
#include "io/uart.hpp"
|
|
typedef Uart<9600> uartclass;
|
|
|
|
|
|
#endif /* PERIPHERAL_H_ */ |