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
+42-12Lines changed: 42 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ hal/newdev
26
26
hal/newdev/minbasecli_newdev.cpp
27
27
```
28
28
29
+
**Note:** Use any of the other device support implementation of minbasecli_X.h/cpp files as example to edit.
30
+
29
31
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):
30
32
31
33
```c++
@@ -34,61 +36,89 @@ hal/newdev
34
36
35
37
/* Use Specific HAL for build system */
36
38
37
-
#if defined(ARDUINO)
39
+
#if defined(__linux__)
40
+
#include "hal/linux/minbasecli_linux.h"
41
+
#define MINBASECLI_HAL MINBASECLI_LINUX
42
+
#elif defined(_WIN32) || defined(_WIN64)
43
+
#include "hal/windows/minbasecli_windows.h"
44
+
#define MINBASECLI_HAL MINBASECLI_WINDOWS
45
+
#elif defined(ARDUINO)
38
46
#include "hal/arduino/minbasecli_arduino.h"
47
+
#define MINBASECLI_HAL MINBASECLI_ARDUINO
48
+
#elif defined(__AVR)
49
+
#include "hal/avr/minbasecli_avr.h"
50
+
#define MINBASECLI_HAL MINBASECLI_AVR
39
51
#elif defined(ESP_PLATFORM)
40
52
#include "hal/espidf/minbasecli_espidf.h"
53
+
#define MINBASECLI_HAL MINBASECLI_ESPIDF
41
54
#elif defined(MY_NEW_DEV) // This has been include
42
55
#include "hal/pico/minbasecli_newdev.h" // This has been include
43
-
#elif defined(__linux__)
44
-
#include "hal/linux/minbasecli_linux.h"
45
-
#elif defined(_WIN32) || defined(_WIN64)
46
-
#include "hal/windows/minbasecli_windows.h"
56
+
#define MINBASECLI_HAL MINBASECLI_NEWDEV // This has been include
3. Implement low level functionalities to control interface of the CLI in the **hal_*()** private methods (*hal_iface_available(), hal_iface_read(), hal_iface_print(), etc.*) of "minbasecli_newdev.cpp" file:
68
+
3. Implement low level layer functionalities to control interface of the CLI in the **minbasecli_newdev.h/cpp** files:
0 commit comments