Subversion Repositories HomeAutomation

Rev

Rev 639 | 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.  * This should be defined in your application config.inc
  22.  */
  23. //#define ADCHAN ADC5
  24.  
  25.  
  26. /*-----------------------------------------------
  27.  * Functions
  28.  * ---------------------------------------------*/
  29. uint8_t LDR_SensorInit(void);
  30. uint32_t LDR_GetData(uint8_t sensor);
  31.  
  32. #endif
  33. #endif
  34.