//
// Created by User on 018 18.05.20.
//

#ifndef AVR_IOHELP_TIMER_H
#define AVR_IOHELP_TIMER_H
#include <avr/io.h>
#define onTimer1Triggered() ISR(TIMER1_COMPA_vect)

enum TimerPrescaler{
    PRESCALER_NO,
    PRESCALER_8,
    PRESCALER_64,
    PRESCALER_256,
    PRESCALER_1024
};

namespace Timer1{
   void setup(TimerPrescaler prescaler, uint16_t OCR);
}

#endif //AVR_IOHELP_TIMER_H

