forked from HarryLipphaus/PiXTend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PiX_ng.h
54 lines (39 loc) · 861 Bytes
/
PiX_ng.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
/*
* PIXio.h.h
*
* Created on: 01.03.2016
* Author: harry
*/
#ifndef PIX_NG_H_
#define PIX_NG_H_
#define PIX_HW_VERSION 12
#define PIX_SW_VERSION 5
/************************************************************************
* Features
* bit 0 Jumper 8
* bit 1 Jumper 9
* bit 6 Slave present
************************************************************************/
#define JP8STAT 1
#define JP9STAT 2
#define HASSLAVE 6
extern uint8_t Features;
//#define ENABLE_XCOM
#ifdef ENABLE_XCOM
#define XCOM_DEBUG
#endif
#define ENABLE_DIO
#define ENABLE_ADC
#define ENABLE_PWM
//#define ENABLE_DHT11
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
typedef struct
{
OMap_t *tx;
IMap_t *rx;
uint8_t Status;
} RPi_Buffer_t;
extern RPi_Buffer_t RPi;
extern uint8_t Features;
#endif /* PIX_NG_H_ */