Skip to content

Commit 2be78fc

Browse files
authored
Final adjustements on api/ (#10)
* Final adjustments on api/ path * Arduino core api moved to include/arduino/api * Submodules checkout on action * Update unit-tests.yml Added submodules to unit tests
1 parent f469db8 commit 2be78fc

File tree

9 files changed

+16
-12
lines changed

9 files changed

+16
-12
lines changed

.github/workflows/c-cpp-cmake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16+
with:
17+
submodules: 'true'
1618
- name: build.sh
1719
run: ./build.sh

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@v2
28+
with:
29+
submodules: 'true'
2830

2931
- name: Relax some warings
3032
# run: echo 'add_compile_options(-Wno-unused-function)' >> ArduinoCore-API/test/CMakeLists.txt
@@ -51,4 +53,4 @@ jobs:
5153
# with:
5254
# token: ${{ secrets.CODECOV_TOKEN }}
5355
# files: ${{ env.COVERAGE_DATA_PATH }}
54-
# fail_ci_if_error: true
56+
# fail_ci_if_error: true

ArduinoCore-Linux/cores/arduino/EthernetUDP.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* [email protected] 12/30/2008
3535
*/
3636

37-
#include <api/IPAddress.h>
38-
#include <api/Udp.h>
37+
#include "api/IPAddress.h"
38+
#include "api/Udp.h"
3939
#include <RingBufferExt.h>
4040
#include "SignalHandler.h"
4141
#include "ArduinoLogger.h"

ArduinoCore-Linux/cores/arduino/FileStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <iostream>
44
#include <fstream>
5-
#include "Stream.h"
5+
#include "api/Stream.h"
66

77
namespace arduino {
88

ArduinoCore-Linux/cores/arduino/Serial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#if USE_SERIALLIB
44

55
#include "serialib.h"
6-
#include "HardwareSerial.h"
6+
#include "api/HardwareSerial.h"
77

88
namespace arduino {
99

ArduinoCore-Linux/cores/arduino/StdioDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#include <iostream>
44
#include <streambuf>
5-
#include "Stream.h"
6-
#include "Printable.h"
5+
#include "api/Stream.h"
6+
#include "api/Printable.h"
77

88
namespace arduino {
99

ArduinoCore-Linux/cores/rasperry_pi/HardwareI2C_RPI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <unistd.h> // for open(), close(), etc.
66
#include <vector>
77
#include "Hardware.h"
8-
#include "HardwareI2C.h"
8+
#include "api/HardwareI2C.h"
99
#include "ArduinoLogger.h"
1010

1111
namespace arduino {

ArduinoCore-Linux/cores/rasperry_pi/HardwareSPI_RPI.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#ifdef USE_RPI
33
#include <inttypes.h>
44

5-
#include "Common.h"
6-
#include "HardwareSPI.h"
7-
#include "Stream.h"
5+
#include "api/Common.h"
6+
#include "api/HardwareSPI.h"
7+
#include "api/Stream.h"
88

99
namespace arduino {
1010

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ target_include_directories (arduino_emulator PUBLIC
4444

4545
# Install header files
4646
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ArduinoCore-API/api/" # source directory
47-
DESTINATION "include/arduino" # target directory
47+
DESTINATION "include/arduino/api" # target directory
4848
FILES_MATCHING # install only matched files
4949
PATTERN "*.h" # select header files
5050
)

0 commit comments

Comments
 (0)