Added a bunch of shared libraries to make it more flexable for mocking later on.

This commit is contained in:
jakeg00dwin 2024-12-06 21:46:50 -08:00
parent acbc5fcc2c
commit 629a634a3e
1 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1,132 @@
# LOCATION: projectroot/src/peripheral
#Example/template lines.
#add_library(ch32v20x_xxx SHARED
# src/ch32v20x_xxx.c
#)
#
#target_include_directories(ch32v20x_xxx PUBLIC ./inc)
add_library(ch32v20x_adc SHARED
src/ch32v20x_adc.c
)
target_include_directories(ch32v20x_adc PUBLIC ./inc)
add_library(ch32v20x_xxx SHARED
src/ch32v20x_xxx.c
)
target_include_directories(ch32v20x_xxx PUBLIC ./inc)
add_library(ch32v20x_can SHARED
src/ch32v20x_can.c
)
target_include_directories(ch32v20x_can PUBLIC ./inc)
add_library(ch32v20x_dbgmcu SHARED
src/ch32v20x_dbgmcu.c
)
target_include_directories(ch32v20x_dbgmcu PUBLIC ./inc)
add_library(ch32v20x_exti SHARED
src/ch32v20x_exti.c
)
target_include_directories(ch32v20x_exti PUBLIC ./inc)
add_library(ch32v20x_gpio SHARED
src/ch32v20x_gpio.c
)
target_include_directories(ch32v20x_gpio PUBLIC ./inc)
add_library(ch32v20x_i2c SHARED
src/ch32v20x_i2c.c
)
target_include_directories(ch32v20x_i2c PUBLIC ./inc)
add_library(ch32v20x_misc SHARED
src/ch32v20x_misc.c
)
target_include_directories(ch32v20x_misc PUBLIC ./inc)
add_library(ch32v20x_pwr SHARED
src/ch32v20x_pwr.c
)
target_include_directories(ch32v20x_pwr PUBLIC ./inc)
add_library(ch32v20x_rtc SHARED
src/ch32v20x_rtc.c
)
target_include_directories(ch32v20x_rtc PUBLIC ./inc)
add_library(ch32v20x_tim SHARED
src/ch32v20x_tim.c
)
target_include_directories(ch32v20x_tim PUBLIC ./inc)
add_library(ch32v20x_usb SHARED
src/ch32v20x_usb.c
)
target_include_directories(ch32v20x_usb PUBLIC ./inc)
add_library(ch32v20x_bkp SHARED
src/ch32v20x_bkp.c
)
target_include_directories(ch32v20x_bkp PUBLIC ./inc)
add_library(ch32v20x_crc SHARED
src/ch32v20x_crc.c
)
target_include_directories(ch32v20x_crc PUBLIC ./inc)
add_library(ch32v20x_dma SHARED
src/ch32v20x_dma.c
)
target_include_directories(ch32v20x_dma PUBLIC ./inc)
add_library(ch32v20x_flash SHARED
src/ch32v20x_flash.c
)
target_include_directories(ch32v20x_flash PUBLIC ./inc)
add_library(ch32v20x SHARED
src/ch32v20x.c
)
# This one doesn't have source code.
#target_include_directories(ch32v20x PUBLIC ./inc)
#
#add_library(ch32v20x SHARED
# src/ch32v20x.c
#)