setup driver

This commit is contained in:
Mitchell Marino 2026-03-21 21:30:44 -05:00
parent a5411c45f5
commit 6723c6343a
6 changed files with 23 additions and 5 deletions

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)

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
drivers/CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
set(SOURCES
"i2c.cpp"
)
target_sources(${COMPONENT_LIB} PRIVATE ${SOURCES})

5
drivers/i2c.cpp Normal file
View File

@ -0,0 +1,5 @@
#include "stdio.h"
void i2c_test() {
printf("initializing i2c or something\n");
}

View File

@ -1 +1,7 @@
const char* get_hello_world(); struct BlkBoxInitConfig {
// nothing for now...
};
void init_blk_box(BlkBoxInitConfig cfg);

View File

@ -0,0 +1 @@
void i2c_test();