Select Git revision
helper.h
helper.h 1.11 KiB
#define UINT_MAX 65535
#define PRESCALER0 ( 0)
#define PRESCALER1 ( (0x1 << CS10))
#define PRESCALER8 ( (0x1 << CS11) )
#define PRESCALER64 ( (0x1 << CS11) | (0x1 << CS10))
#define PRESCALER256 ((0x1 << CS12) )
#define PRESCALER1024 ((0x1 << CS12) | (0x1 << CS10))
#define clearRGBsetT /* &= */ (0x1 << PB4) & ~((0x1 << PB7) | (0x1 << PB6) | (0x1 << PB5))
#define clearRGB /* &= */ ~((0x1 << PB7) | (0x1 << PB6) | (0x1 << PB5))
#define clearRGBT /* = */ 0
#define setRT /* = */ (0x1 << PB7) | (0x1 << PB4)
#define setGT /* = */ (0x1 << PB6) | (0x1 << PB4)
#define setBT /* = */ (0x1 << PB5) | (0x1 << PB4)
#define setT (0x1 << PB4)
void enableINT6();
void disableINT6();
void triggerINT6();
int processTrigR();
int processTrigG();
int processTrigB();
unsigned processPrescaler();
void priocessMaxFrames();
int setResolution();
int processCMRA();
int processCMRB();