Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
1156 linlun 1
#ifndef ACT_SOFTPWM
2
#define ACT_SOFTPWM
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
//to use PCINT lib. uncomment the line below
19
//#include <drivers/mcu/pcint.h>
20
 
21
void act_softPWM_Init(void);
22
void act_softPWM_Process(void);
23
void act_softPWM_HandleMessage(StdCan_Msg_t *rxMsg);
24
void act_softPWM_List(uint8_t ModuleSequenceNumber);
25
 
1978 arune 26
#ifndef act_softPWM_USEEEPROM
27
#define act_softPWM_USEEEPROM 0
28
#endif
29
 
30
#if act_softPWM_USEEEPROM==1
1156 linlun 31
    struct act_softPWM_Data{
32
        ///TODO: Define EEPROM variables needed by the module
1369 linlun 33
        uint16_t maxTimer;
34
        uint8_t resolution;
1180 linlun 35
        uint8_t ReportInterval;
1156 linlun 36
    }; 
37
#endif
38
 
39
#endif // ACT_SOFTPWM