You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-27Lines changed: 52 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,38 +29,63 @@ hal/newdev
29
29
30
30
**Note:** Use any of the other device support implementation of minbasecli_X.h/cpp files as example to edit.
31
31
32
-
2. Include new device support sources in "minbasecli.h" using an existing global define that allows to know wich device/framework is being compiled (this define should exists in some way in device framework, otherwise, you need to pass it to the compiler at build time, i.e. using -DMY_NEW_DEV for gcc compiler):
32
+
2. Include new device support sources in "minbasecli_hal_select.h" using an existing global define that allows to know which device/framework is being compiled (this define should exists in some way in device framework, otherwise, you need to pass it to the compiler at build time, i.e. using -DMY_NEW_DEV for gcc compiler):
33
33
34
34
```c++
35
35
36
36
/* ... */
37
37
38
-
/* Use Specific HAL for build system */
39
-
40
-
#if defined(__linux__)
41
-
#include "hal/linux/minbasecli_linux.h"
42
-
#define MINBASECLI_HAL MINBASECLI_LINUX
43
-
#elif defined(_WIN32) || defined(_WIN64)
44
-
#include "hal/windows/minbasecli_windows.h"
45
-
#define MINBASECLI_HAL MINBASECLI_WINDOWS
46
-
#elif defined(ARDUINO)
47
-
#include "hal/arduino/minbasecli_arduino.h"
48
-
#define MINBASECLI_HAL MINBASECLI_ARDUINO
49
-
#elif defined(__AVR)
50
-
#include "hal/avr/minbasecli_avr.h"
51
-
#define MINBASECLI_HAL MINBASECLI_AVR
52
-
#elif defined(ESP_PLATFORM)
53
-
#include "hal/espidf/minbasecli_espidf.h"
54
-
#define MINBASECLI_HAL MINBASECLI_ESPIDF
55
-
#elif defined(MY_NEW_DEV) // This has been include
56
-
#include "hal/newdev/minbasecli_newdev.h" // This has been include
57
-
#define MINBASECLI_HAL MINBASECLI_NEWDEV // This has been include
0 commit comments