sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
osctune.h File Reference

Go to the source code of this file.

Macros

#define TIMER0_PRESCALING   64 /* must match the configuration for TIMER0 in main */
 
#define TOLERATED_DEVIATION_PPT   5 /* max clock deviation before we tune in 1/10 % */
 
#define EXPECTED_TIMER0_INCREMENT   ((F_CPU / (1000 * TIMER0_PRESCALING)) & 0xff)
 
#define TOLERATED_DEVIATION   (TOLERATED_DEVIATION_PPT * F_CPU / (1000000 * TIMER0_PRESCALING))
 
#define USB_SOF_HOOK   tuneOsccal
 

Macro Definition Documentation

#define EXPECTED_TIMER0_INCREMENT   ((F_CPU / (1000 * TIMER0_PRESCALING)) & 0xff)
#define TIMER0_PRESCALING   64 /* must match the configuration for TIMER0 in main */
#define TOLERATED_DEVIATION   (TOLERATED_DEVIATION_PPT * F_CPU / (1000000 * TIMER0_PRESCALING))
#define TOLERATED_DEVIATION_PPT   5 /* max clock deviation before we tune in 1/10 % */
#define USB_SOF_HOOK   tuneOsccal