setup driver
This commit is contained in:
@@ -2,3 +2,5 @@ idf_component_register(
|
||||
SRCS "blk_box.cpp"
|
||||
INCLUDE_DIRS "include"
|
||||
)
|
||||
|
||||
add_subdirectory(drivers)
|
||||
|
||||
+3
-4
@@ -1,6 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include "blk_box.h"
|
||||
|
||||
const char* get_hello_world() {
|
||||
return "hello, world!";
|
||||
}
|
||||
void init_blk_box(BlkBoxInitConfig cfg) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
set(SOURCES
|
||||
"i2c.cpp"
|
||||
)
|
||||
|
||||
target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES})
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "stdio.h"
|
||||
|
||||
void i2c_test() {
|
||||
printf("initializing i2c or something\n");
|
||||
}
|
||||
+7
-1
@@ -1 +1,7 @@
|
||||
const char* get_hello_world();
|
||||
struct BlkBoxInitConfig {
|
||||
// nothing for now...
|
||||
};
|
||||
|
||||
|
||||
|
||||
void init_blk_box(BlkBoxInitConfig cfg);
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
void i2c_test();
|
||||
Reference in New Issue
Block a user