setup cpp

This commit is contained in:
Mitchell Marino 2026-03-21 20:36:08 -05:00
parent d91b05856d
commit a5411c45f5
4 changed files with 11 additions and 10 deletions

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"
)

View File

@ -1,7 +0,0 @@
#include <stdio.h>
#include "blk_box.h"
void func(void)
{
}

6
blk_box.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
#include "blk_box.h"
const char* get_hello_world() {
return "hello, world!";
}

View File

@ -1 +1 @@
void func(void);
const char* get_hello_world();