2 Issues found 1st you need to include the sub::imp_spi on the config.cmake 2nd in config.cmake sub::pin should be compiled after the spi.c as you are using pin funtion directi on spi.c Now compiling ;)
parent
2429425b9e
commit
e08417795a
@ -1,6 +1,5 @@
|
||||
# https://www.youtube.com/watch?v=abuCXC3t6eQ
|
||||
add_library(MAX7219 max7219.c)
|
||||
target_compile_options(MAX7219 PRIVATE ${C_FLAGS})
|
||||
target_compile_definitions(MAX7219 PRIVATE ${C_DEFS})
|
||||
target_include_directories(MAX7219 PUBLIC ${INTERFACES_DIR} ${CSL_INCLUDES})
|
||||
target_include_directories(MAX7219 PUBLIC . ${INTERFACES_DIR} ${CSL_INCLUDES})
|
||||
add_library(sub::max7219 ALIAS MAX7219)
|
||||
|
Loading…
Reference in new issue