Subversion Repositories HomeAutomation

Rev

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

  1. #ifndef LDR_H_
  2. #define LDR_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/168 PDIP ADC7 wont be aviable, only on TFQP.
  19.  * (syntax: ADCx where x is the number och the ADC used)
  20.  */
  21. #define ADC5
  22.  
  23. /*-----------------------------------------------
  24.  * Functions
  25.  * ---------------------------------------------*/
  26. uint8_t LDR_SensorInit(void);
  27. uint32_t LDR_GetData(uint8_t sensor);
  28.  
  29. #endif
  30. #endif
  31.