Skip to content

Commit

Permalink
switch to using idf_component.yml
Browse files Browse the repository at this point in the history
for RF24 (local path) dependency
  • Loading branch information
2bndy5 committed Apr 9, 2024
1 parent 6d93a90 commit d048b2d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 0 additions & 3 deletions examples_esp/getting_started/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# include parent folder (repo root) as a component library
list(APPEND EXTRA_COMPONENT_DIRS ../../)
# in user projects (external to RF24 repo), they should use `idf_component_register()` instead
project(getting_started)
1 change: 0 additions & 1 deletion examples_esp/getting_started/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ config RF24_CSN_PIN
int "The GPIO pin number used for the radio's CSN pin"
help
If undefined, then the main app's code defaults to using pin 8.

8 changes: 7 additions & 1 deletion examples_esp/getting_started/dependencies.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ dependencies:
source:
type: idf
version: 5.2.1
manifest_hash: 65bdfdf3ce9ef7f7d3d9c4c075a17d649adf01fa2984a9b54e4b8b493274a309
nRF24/RF24:
component_hash: null
source:
path: C:\dev\RF24
type: local
version: '*'
manifest_hash: 1ce988382cdd4e2de357dd7ddd71b47091cb0109a1223eca45c2e086bfadc03e
target: esp32s2
version: 1.0.0
5 changes: 5 additions & 0 deletions examples_esp/getting_started/src/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
dependencies:
espressif/esp_tinyusb: "^1"
idf: "^5.0"
nRF24/RF24:
# for external projects (not included in the RF24 repo), instead use
# nRF24/RF24: "^1.5"
# for this project, we use the current repo changes (for testing purposes)
path: ../../../

0 comments on commit d048b2d

Please sign in to comment.