Subversion Repositories HomeAutomation

Rev

Rev 497 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. #ifndef TC1047_H_
  2. #define TC1047_H_
  3.  
  4. #if defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__)
  5.  
  6. /*-----------------------------------------------
  7.  * Includes
  8.  * ---------------------------------------------*/
  9. #include <stdlib.h>
  10. #include <inttypes.h>
  11.  
  12. /*-----------------------------------------------
  13.  * Defines
  14.  * ---------------------------------------------*/
  15.  
  16. /*
  17.  * Define which ADC that will be used, ADC0 to ADC7.
  18.  * If using ATmega88 PDIP ADC7 wont be aviable, only on TFQP.
  19.  * (syntax: TC_ADCx where x is the number och the ADC used)
  20.  */
  21. #define ADC7
  22.  
  23. /*-----------------------------------------------
  24.  * Functions
  25.  * ---------------------------------------------*/
  26. void adcTemperatureInit(void);
  27. uint32_t getTC1047temperature(void);
  28. #else
  29.     #error Library still not compatible with others than mega88 or mega168
  30. #endif
  31. #endif
  32.