Subversion Repositories HomeAutomation

Rev

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

  1. #ifndef SNS_TOUCH
  2. #define SNS_TOUCH
  3.  
  4. /*-----------------------------------------------------------------------------
  5.  * Includes
  6.  *---------------------------------------------------------------------------*/
  7. /* system files */
  8. #include <avr/io.h>
  9. #include <avr/interrupt.h>
  10. #include <stdio.h>
  11. /* lib files */
  12. #include <config.h>
  13. #include <bios.h>
  14. #include <drivers/can/stdcan.h>
  15. #include <drivers/timer/timer.h>
  16. #include <drivers/mcu/gpio.h>
  17. #include <drivers/adc/adc.h>
  18. #include <drivers/touch/gesture/gesture.h>
  19.  
  20. //to use PCINT lib. uncomment the line below
  21. //#include <drivers/mcu/pcint.h>
  22.  
  23. void sns_Touch_Init(void);
  24. void sns_Touch_Process(void);
  25. void sns_Touch_HandleMessage(StdCan_Msg_t *rxMsg);
  26. void sns_Touch_List(uint8_t ModuleSequenceNumber);
  27.  
  28. #ifndef sns_Touch_USEEEPROM
  29. #define sns_Touch_USEEEPROM 0
  30. #endif
  31.  
  32. #if sns_Touch_USEEEPROM==1
  33.     struct sns_Touch_Data{
  34.         ///TODO: Define EEPROM variables needed by the module
  35.         uint8_t x;
  36.         uint16_t y;
  37.     }; 
  38. #endif
  39.  
  40. #endif // SNS_TOUCH
  41.