Configure OLED display as Zephyr module
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
[submodule "lib/oled-display"]
|
||||
path = lib/oled-display
|
||||
url = https://github.com/LibreSolar/oled-display-library
|
||||
Vendored
+1
-1
@@ -5,9 +5,9 @@
|
||||
"includePath": [
|
||||
"${workspaceFolder}/app/src",
|
||||
"${workspaceFolder}/app/build/zephyr/include/generated",
|
||||
"${workspaceFolder}/lib/oled-display/src",
|
||||
"${workspaceFolder}/modules/hal/cmsis/CMSIS/Core/Include",
|
||||
"${workspaceFolder}/modules/hal/stm32/stm32cube/stm32g0xx/soc",
|
||||
"${workspaceFolder}/modules/oled-display/src",
|
||||
"${workspaceFolder}/modules/thingset/src",
|
||||
"${workspaceFolder}/modules/unity/src",
|
||||
"${workspaceFolder}/zephyr/include",
|
||||
|
||||
@@ -11,8 +11,6 @@ project(libre_solar_charge_controller)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
add_subdirectory(../lib/oled-display build/oled-display)
|
||||
|
||||
# determine git tag and commit hash for automatic firmware versioning
|
||||
find_package(Git)
|
||||
if(GIT_FOUND)
|
||||
|
||||
+6
-2
@@ -17,11 +17,15 @@ manifest:
|
||||
- cmsis
|
||||
- edtt
|
||||
- hal_stm32
|
||||
- name: oled-display-library
|
||||
remote: libresolar
|
||||
revision: cc3033c0daace8cb50ab0e6406a9498cc81cdb39
|
||||
path: modules/oled-display
|
||||
- name: thingset-device-library
|
||||
remote: thingset
|
||||
revision: 1eaa305a9f1873f676b77b8dd0f9d34f1944ecd1
|
||||
path: modules/thingset
|
||||
- name: unity
|
||||
path: modules/unity
|
||||
revision: 74cde089e65c3435ce9aa87d5c69f4f16b7f6ade
|
||||
remote: throwtheswitch
|
||||
revision: 74cde089e65c3435ce9aa87d5c69f4f16b7f6ade
|
||||
path: modules/unity
|
||||
|
||||
Submodule lib/oled-display deleted from 4eec1ea4d8
@@ -1,37 +0,0 @@
|
||||
|
||||
This directory is intended for the project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link to executable file.
|
||||
|
||||
The source code of each library should be placed in separate directory, like
|
||||
"lib/private_lib/[here are source files]".
|
||||
|
||||
For example, see how can be organized `Foo` and `Bar` libraries:
|
||||
|
||||
|--lib
|
||||
| |--Bar
|
||||
| | |--docs
|
||||
| | |--examples
|
||||
| | |--src
|
||||
| | |- Bar.c
|
||||
| | |- Bar.h
|
||||
| |--Foo
|
||||
| | |- Foo.c
|
||||
| | |- Foo.h
|
||||
| |- readme.txt --> THIS FILE
|
||||
|- platformio.ini
|
||||
|--src
|
||||
|- main.c
|
||||
|
||||
Then in `src/main.c` you should use:
|
||||
|
||||
#include <Foo.h>
|
||||
#include <Bar.h>
|
||||
|
||||
// rest H/C/CPP code
|
||||
|
||||
PlatformIO will find your libraries automatically, configure preprocessor's
|
||||
include paths and build them.
|
||||
|
||||
See additional options for PlatformIO Library Dependency Finder `lib_*`:
|
||||
|
||||
http://docs.platformio.org/en/latest/projectconf.html#lib-install
|
||||
Reference in New Issue
Block a user