Skip to content
Snippets Groups Projects
Select Git revision
  • a62c5805ec2566a694235c0ad1f6edfe3f3d2779
  • main default protected
2 results

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();