-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule_globals.h
57 lines (36 loc) · 916 Bytes
/
module_globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* module_globals.h
*
* Created: 13.07.2021 13:23:46
* Author: qfj
*/
#ifndef MODULE_GLOBALS_H_
#define MODULE_GLOBALS_H_
#include <stdint.h>
//====================================================================
// VERSION
//====================================================================
typedef struct{
// Version vars
uint16_t Fw_version;
uint8_t Branch_id;
uint16_t FW_eeprom_changed ;
uint8_t hw_version_xbee ;
}VersionType;
extern volatile uint32_t count_t_elapsed;
extern VersionType version;
void version_INIT(uint16_t Fw_version,uint8_t Branch_id,uint16_t FW_eeprom_changed);
//################## PORT DEFINITIONS PER DEVICE ##################
#ifdef LEVELMETER
#define SDA PINC4
#define SCL PINC2
#endif
#ifdef GASCOUNTER_MODULE
#define SDA PINC1
#define SCL PINC0
#endif
#ifdef ILM_MODULE
#define SDA PINC1
#define SCL PINC0
#endif
#endif /* MODULE_TYPEDEFS_H_ */