setup cpp

This commit is contained in:
2026-03-21 20:36:08 -05:00
parent d91b05856d
commit a5411c45f5
4 changed files with 11 additions and 10 deletions
+4 -2
View File
@@ -1,2 +1,4 @@
idf_component_register(SRCS "blk_box.c"
INCLUDE_DIRS "include")
idf_component_register(
SRCS "blk_box.cpp"
INCLUDE_DIRS "include"
)
-7
View File
@@ -1,7 +0,0 @@
#include <stdio.h>
#include "blk_box.h"
void func(void)
{
}
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
#include "blk_box.h"
const char* get_hello_world() {
return "hello, world!";
}
+1 -1
View File
@@ -1 +1 @@
void func(void);
const char* get_hello_world();