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 0
  20.  
  21. /*
  22.  * For internal Vref use 1.1. AVcc or Aref use 5
  23.  * TODO testa libbet med VREF 1.1
  24.  *
  25.  */
  26. #define VREF 5
  27.  
  28. /*-----------------------------------------------
  29.  * Functions
  30.  * ---------------------------------------------*/
  31. void adcTemperatureInit();
  32. uint32_t getTC1047temperature();
  33.  
  34. #endif
  35.