|
|
|
@ -3,7 +3,7 @@ function(addPeripheral alias)
|
|
|
|
|
message("Chip has usart >>imp_${alias}.c was found<<")
|
|
|
|
|
if(EXISTS ${PERIFERALS_DIR}/${alias}.c) # Cheks if generic funtions are awailable. this is useful for standars as SPI i2c etc...
|
|
|
|
|
message("${alias}.c generic functions library extits")
|
|
|
|
|
add_library(${alias}_submodule ${alias}.c ${CSL_SOURCES}/imp_${alias}.c)
|
|
|
|
|
add_library(${alias}_submodule ${PERIFERALS_DIR}/${alias}.c ${CSL_SOURCES}/imp_${alias}.c)
|
|
|
|
|
else()
|
|
|
|
|
add_library(${alias}_submodule ${CSL_SOURCES}/imp_${alias}.c)
|
|
|
|
|
endif()
|
|
|
|
@ -18,11 +18,3 @@ function(addPeripheral alias)
|
|
|
|
|
message("${BoldRed}Compilation Aborted")
|
|
|
|
|
endif()
|
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
addPeripheral("deviceSetup") # TODO: this point needs to be discussed. How should it work and what should it do?
|
|
|
|
|
addPeripheral("timer")
|
|
|
|
|
addPeripheral("usart")
|
|
|
|
|
addPeripheral("spi")
|
|
|
|
|
addPeripheral("i2c")
|
|
|
|
|
addPeripheral("delay")
|
|
|
|
|
addPeripheral("pin")
|
|
|
|
|