Skip to content

Commit

Permalink
bsp: New generic BSP (spiffs, sdcard, i2c, buttons, leds).
Browse files Browse the repository at this point in the history
  • Loading branch information
espzav committed Oct 13, 2023
1 parent 162d138 commit 27d5ba4
Show file tree
Hide file tree
Showing 21 changed files with 2,302 additions and 0 deletions.
16 changes: 16 additions & 0 deletions esp_bsp_generic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
file(GLOB_RECURSE SRCS src/*.c)

#IDF version is less than IDF5.0
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_LESS "5.0")
#set(SRC_VER "esp_bsp_generic_idf4.c")
else()
#set(SRC_VER "esp_bsp_generic_idf5.c")
endif()

idf_component_register(
SRCS ${SRCS} ${SRC_VER}
INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS "priv_include"
REQUIRES driver spiffs fatfs
PRIV_REQUIRES esp_lcd
)
Loading

0 comments on commit 27d5ba4

Please sign in to comment.