Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef TC1047_H_
  2. #define TC1047_H_
  3.  
  4. /*-----------------------------------------------
  5.  * Includes
  6.  * ---------------------------------------------*/
  7. #include <stdlib.h>
  8. #include <inttypes.h>
  9.  
  10. /*-----------------------------------------------
  11.  * Defines
  12.  * ---------------------------------------------*/
  13.  
  14. /*
  15.  * If using ATmega88 PDIP enable this feature,
  16.  * since PDIP doesn't have ADC7 it will use the ADC0 instead
  17.  *
  18.  */
  19. #define PDIP 1
  20.  
  21. /*
  22.  * For internal Vref 1.1 volt set VREF_INT 1. For  AVcc or Aref = 5 volt
  23.  * set VREF_INT = 0
  24.  *
  25.  */
  26. #define VREF_INT 0
  27.  
  28. /*-----------------------------------------------
  29.  * Functions
  30.  * ---------------------------------------------*/
  31. void adcTemperatureInit();
  32. uint32_t getTC1047temperature();
  33.  
  34. #endif
  35.