From 479d607e1447aee72316f41da6013c7aeab55b60 Mon Sep 17 00:00:00 2001 From: myles-parfeniuk Date: Tue, 14 Nov 2023 14:04:01 -0800 Subject: [PATCH] Added component.mk and modified cmake --- CMakeLists.txt | 4 ++-- README.md | 2 +- component.mk | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 component.mk diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c5ab84..bbe3886 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,3 @@ -idf_component_register(SRC_DIRS "." - INCLUDE_DIRS "." +idf_component_register(SRCS BNO08x.cpp + INCLUDE_DIRS . REQUIRES driver esp_timer) diff --git a/README.md b/README.md index da55c46..ef10894 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ extern "C" void app_main(void) /* bno08x_config_t imu_config; //create config struct - imu_config.io_mos = GPIO_NUM_X; //assign pin + imu_config.io_mosi = GPIO_NUM_X; //assign pin imu_config.io_miso = GPIO_NUM_X; //assign pin //etc... BNO08x imu(imu_config); //pass config to BNO08x constructor diff --git a/component.mk b/component.mk new file mode 100644 index 0000000..81e8586 --- /dev/null +++ b/component.mk @@ -0,0 +1,2 @@ +COMPONENT_ADD_INCLUDEDIRS = . +COMPONENT_DEPENDS = driver esp_timer \ No newline at end of file