diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8732345..f60cdf4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,6 +5,10 @@ add_subdirectory(peripheral) add_subdirectory(system) add_subdirectory(startup) +add_library(isr SHARED + ch32v20x_it.c +) + add_executable(main main.c ch32v20x_it.c @@ -13,27 +17,26 @@ add_executable(main target_link_libraries(main core_riscv system_ch32v20x - #ch32v20x_adc - #ch32v20x_can - #ch32v20x_dbgmcu - #ch32v20x_exti - #ch32v20x_gpio - #ch32v20x_i2c - #ch32v20x_misc - #ch32v20x_pwr - #ch32v20x_rtc - #ch32v20x_tim - #ch32v20x_usb - #ch32v20x_bkp - #ch32v20x_crc - #ch32v20x_dma - #ch32v20x_flash - #ch32v20x_iwdg - #ch32v20x_opa - #ch32v20x_rcc - #ch32v20x_spi - #ch32v20x_usart - #ch32v20x_wwdg + debug + ch32v20x_adc + ch32v20x_can + ch32v20x_dbgmcu + ch32v20x_exti + ch32v20x_gpio + ch32v20x_i2c + ch32v20x_misc + ch32v20x_pwr + ch32v20x_rtc + ch32v20x_tim + ch32v20x_usb + ch32v20x_bkp + ch32v20x_crc + ch32v20x_dma + ch32v20x_flash + ch32v20x_iwdg + ch32v20x_opa + ch32v20x_rcc + ch32v20x_spi + ch32v20x_usart + ch32v20x_wwdg ) - -