-
Notifications
You must be signed in to change notification settings - Fork 5
/
globals.h
59 lines (54 loc) · 1.68 KB
/
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
58
59
/*
* © 2023, Peter Cole. All rights reserved.
*
* This file is part of EX-IOExpander.
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* It is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef GLOBALS_H
#define GLOBALS_H
#include <Arduino.h>
#include "defines.h"
#if defined(HAS_SERVO_LIB)
#include "Servo.h"
#endif
#include "SuperPin.h"
extern pinDefinition pinMap[TOTAL_PINS];
extern pinName pinNameMap[TOTAL_PINS];
extern pinConfig exioPins[TOTAL_PINS];
extern uint8_t i2cAddress;
extern uint8_t numPins;
extern uint8_t numDigitalPins;
extern uint8_t numAnaloguePins;
extern uint8_t numPWMPins;
extern int analoguePinBytes;
extern int digitalPinBytes;
extern byte* digitalPinStates;
extern byte* analoguePinStates;
extern uint8_t versionBuffer[3];
extern unsigned long displayDelay;
extern uint16_t firstVpin;
extern bool diag;
extern bool setupComplete;
extern uint8_t* analoguePinMap;
extern bool analogueTesting;
extern bool inputTesting;
extern bool outputTesting;
extern bool pullupTesting;
extern ServoData** servoDataArray;
#if defined(HAS_SERVO_LIB)
extern Servo servoMap[MAX_SERVOS];
#endif
extern SuperPin superPinMap[MAX_SUPERPINS];
#endif