Skip to content

Commit 9f360af

Browse files
committed
Merge branch 'feature/20' into develop
2 parents 8b07afc + 4fbdcc5 commit 9f360af

24 files changed

Lines changed: 32 additions & 34 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The issue #16 changes its public member function. But it is referred internally
1414
### Removed
1515
### Fixed
1616
- [Issue #11](https://github.com/suikan4github/rpp_driver/issues/11) Fails to compile in MSVC.
17+
- [Issue #14](https://github.com/suikan4github/rpp_driver/issues/14) Clean up Internal include directive.
1718
- [Issue #17](https://github.com/suikan4github/rpp_driver/issues/17) The mock of the GpioBasic has the wrong definition.
1819
- [Issue #18](https://github.com/suikan4github/rpp_driver/issues/18) The constructor of the MockI2sSlaveDuplex.hpp is missing.
1920
- [Issue #19](https://github.com/suikan4github/rpp_driver/issues/19) The Mock of the rpp_driver::Adau1361 is missing.

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ cmake_minimum_required(VERSION 3.13)
44
# These declaration works for both UNIX/Win and bare metal.
55

66
add_library(rpp_driver INTERFACE)
7+
target_include_directories(rpp_driver INTERFACE .)
8+
79

810
# Win/Unix specific option.
911
if((${WIN32}) OR (${UNIX}))

src/codec/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ target_sources(rpp_driver INTERFACE
55
adau1361.cpp
66
adau1361lower.cpp
77
umbadau1361lower.cpp)
8-
target_include_directories(rpp_driver INTERFACE .)

src/codec/adau1361.cpp

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

1414
#include <assert.h>
1515

16-
#include "i2cmasterinterface.hpp"
16+
#include "i2c/i2cmasterinterface.hpp"
1717

1818
// Macro for easy-to-read
1919
#define CODEC_SYSLOG(fmt, ...) \

src/codec/adau1361.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef PICO_DRIVER_SRC_CODEC_ADAU1361_HPP_
1111
#define PICO_DRIVER_SRC_CODEC_ADAU1361_HPP_
1212

13-
#include <i2cmasterinterface.hpp>
13+
#include <i2c/i2cmasterinterface.hpp>
1414

1515
#include "adau1361lower.hpp"
1616
namespace rpp_driver {

src/codec/adau1361lower.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef PICO_DRIVER_SRC_CODEC_ADAU1361LOWER_HPP_
1111
#define PICO_DRIVER_SRC_CODEC_ADAU1361LOWER_HPP_
1212

13-
#include "i2cmaster.hpp"
13+
#include "i2c/i2cmaster.hpp"
1414

1515
#if __has_include(<gmock/gmock.h>)
1616
#include <gmock/gmock.h>

src/codec/umbadau1361lower.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#ifndef PICO_DRIVER_SRC_CODEC_UMBADAU1361LOWER_HPP_
1111
#define PICO_DRIVER_SRC_CODEC_UMBADAU1361LOWER_HPP_
1212

13-
#include "adau1361lower.hpp"
14-
#include "i2cmaster.hpp"
13+
#include "codec/adau1361lower.hpp"
14+
#include "i2c/i2cmaster.hpp"
1515

1616
namespace rpp_driver {
1717

src/gpio/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ cmake_minimum_required(VERSION 3.13)
33
# These declaration works for both UNIX/Win and bare metal.
44
target_sources(rpp_driver INTERFACE
55
gpiobasic.cpp)
6-
target_include_directories(rpp_driver INTERFACE .)

src/gpio/gpiobasic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// Alternate definition for unit test.
2020
#endif // __has_include(<hardware/i2c.h>)
2121

22-
#include "sdkwrapper.hpp"
22+
#include "sdk/sdkwrapper.hpp"
2323

2424
namespace rpp_driver {
2525
/**

src/i2c/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ cmake_minimum_required(VERSION 3.13)
33
# These declaration works for both UNIX/Win and bare metal.
44
target_sources(rpp_driver INTERFACE
55
i2cmaster.cpp)
6-
target_include_directories(rpp_driver INTERFACE .)

0 commit comments

Comments
 (0)