-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCreateUserDevices.h
42 lines (36 loc) · 1.44 KB
/
CreateUserDevices.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
/*
* © 2024 Peter Cole
*
* 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 this code. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @brief Include this file in Configurator.h to ensure all user devices in myConfig.h are created
*
*/
#ifndef CREATEUSERDEVICES_H
#define CREATEUSERDEVICES_H
// Always include DisplayManager and InputManager for both testing and running
#include "DisplayManager.h"
#include "InputManager.h"
#ifndef PIO_UNIT_TESTING // Do not include actual device headers for testing as they are incompatible
#include "TFT_eSPIDisplay.h"
#include "TFT_eSPITouch.h"
#else // Include mock headers for testing
#include "test/mocks/MockDisplay.h"
#include "test/mocks/MockInput.h"
#include "test/mocks/MockSPIDisplay.h"
#endif // PIO_UNIT_TESTING
// Include CreateDeviceMacros last to build the DisplayManager and InputManager implementation methods
#include "CreateDeviceMacros.h"
#endif // CREATEUSERDEVICES_H