Tuer-Schild/Door/peripheral.h

35 lines
735 B
C
Raw Permalink Normal View History

2014-11-19 23:57:35 +01:00
/*
* 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<67>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;
2014-11-19 23:57:35 +01:00
#include "io/uart.hpp"
typedef Uart<9600> uartclass;
#endif /* PERIPHERAL_H_ */