Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
1113 linlun 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
 
1978 arune 25
#ifndef act_SlowPWM_USEEEPROM
26
#define act_SlowPWM_USEEEPROM 0
27
#endif
28
 
29
#if act_SlowPWM_USEEEPROM==1
1113 linlun 30
    struct act_SlowPWM_Data{
31
        ///TODO: Define EEPROM variables needed by the module
32
        uint16_t PwmPeriod;
33
        uint16_t defaultPwmValue;
34
        uint8_t defaultStates;
1119 linlun 35
        uint8_t ReportInterval;
1113 linlun 36
    }; 
37
#endif
38
 
39
#endif // ACT_SLOWPWM