Subversion Repositories HomeAutomation

Rev

Rev 1447 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1447 Rev 1451
1
#ifndef <TEMPLATE>
1
#ifndef <TEMPLATE>
2
#define <TEMPLATE>
2
#define <TEMPLATE>
3
 
3
 
4
/*-----------------------------------------------------------------------------
4
/*-----------------------------------------------------------------------------
5
 * Includes
5
 * Includes
6
 *---------------------------------------------------------------------------*/
6
 *---------------------------------------------------------------------------*/
7
/* system files */
7
/* system files */
8
#include <avr/io.h>
8
#include <avr/io.h>
9
#include <avr/interrupt.h>
9
#include <avr/interrupt.h>
10
#include <stdio.h>
10
#include <stdio.h>
11
/* lib files */
11
/* lib files */
12
#include <config.h>
12
#include <config.h>
13
#include <bios.h>
13
#include <bios.h>
14
#include <drivers/can/stdcan.h>
14
#include <drivers/can/stdcan.h>
15
#include <drivers/timer/timer.h>
15
#include <drivers/timer/timer.h>
16
#include <drivers/mcu/gpio.h>
16
#include <drivers/mcu/gpio.h>
17
#include <drivers/adc/adc.h>
17
#include <drivers/adc/adc.h>
18
 
-
 
19
//to use PCINT lib. uncomment the line below
-
 
20
//#include <drivers/mcu/pcint.h>
18
#include <drivers/mcu/pcint.h>
21
 
19
 
22
void <template>_Init(void);
20
void <template>_Init(void);
23
void <template>_Process(void);
21
void <template>_Process(void);
24
void <template>_HandleMessage(StdCan_Msg_t *rxMsg);
22
void <template>_HandleMessage(StdCan_Msg_t *rxMsg);
25
void <template>_List(uint8_t ModuleSequenceNumber);
23
void <template>_List(uint8_t ModuleSequenceNumber);
26
 
24
 
27
 
25
 
28
#ifdef <template>_USEEEPROM
26
#ifdef <template>_USEEEPROM
29
    struct <template>_Data{
27
    struct <template>_Data{
30
        ///TODO: Define EEPROM variables needed by the module
28
        ///TODO: Define EEPROM variables needed by the module
31
        uint8_t x;
29
        uint8_t x;
32
        uint16_t y;
30
        uint16_t y;
33
    }; 
31
    }; 
34
#endif
32
#endif
35
 
33
 
36
#endif // <TEMPLATE>
34
#endif // <TEMPLATE>
37
 
35