Subversion Repositories HomeAutomation

Rev

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

  1. #ifndef ACT_SLOWPWM
  2. #define ACT_SLOWPWM
  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.  
  18. void act_SlowPWM_Init(void);
  19. void act_SlowPWM_Process(void);
  20. void act_SlowPWM_HandleMessage(StdCan_Msg_t *rxMsg);
  21. void act_SlowPWM_List(uint8_t ModuleSequenceNumber);
  22.  
  23. #define PWMSENSORID 0
  24.  
  25. #ifdef act_SlowPWM_USEEEPROM
  26.     struct act_SlowPWM_Data{
  27.         ///TODO: Define EEPROM variables needed by the module
  28.         uint16_t PwmPeriod;
  29.         uint16_t defaultPwmValue;
  30.         uint8_t defaultStates;
  31.         uint8_t ReportInterval;
  32.     }; 
  33. #endif
  34.  
  35. #endif // ACT_SLOWPWM
  36.