setup driver

This commit is contained in:
2026-03-21 21:30:44 -05:00
parent a5411c45f5
commit 6723c6343a
6 changed files with 23 additions and 5 deletions
+2
View File
@@ -2,3 +2,5 @@ idf_component_register(
SRCS "blk_box.cpp" SRCS "blk_box.cpp"
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
) )
add_subdirectory(drivers)
+2 -3
View File
@@ -1,6 +1,5 @@
#include <stdio.h>
#include "blk_box.h" #include "blk_box.h"
const char* get_hello_world() { void init_blk_box(BlkBoxInitConfig cfg) {
return "hello, world!";
} }
+5
View File
@@ -0,0 +1,5 @@
set(SOURCES
"i2c.cpp"
)
target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES})
+5
View File
@@ -0,0 +1,5 @@
#include "stdio.h"
void i2c_test() {
printf("initializing i2c or something\n");
}
+7 -1
View File
@@ -1 +1,7 @@
const char* get_hello_world(); struct BlkBoxInitConfig {
// nothing for now...
};
void init_blk_box(BlkBoxInitConfig cfg);
+1
View File
@@ -0,0 +1 @@
void i2c_test();