diff --git a/src/ch32fun.h b/inc/ch32fun.h similarity index 100% rename from src/ch32fun.h rename to inc/ch32fun.h diff --git a/src/ch32v003hw.h b/inc/ch32v003hw.h similarity index 100% rename from src/ch32v003hw.h rename to inc/ch32v003hw.h diff --git a/src/funconfig.h b/inc/funconfig.h similarity index 100% rename from src/funconfig.h rename to inc/funconfig.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5874842..a7fc533 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,11 +26,11 @@ target_compile_options(${PROJECT_NAME} PUBLIC -DCH32V003=1 -static-libgcc -nostdlib - -Wl,--print-memory-usage - -Wl,-Map=${PROJECT_NAME}.map + #-Wl,--print-memory-usage + #-Wl,-Map=${PROJECT_NAME}.map -lgcc - -Wl,--gc-sections - -T${CMAKE_SOURCE_DIR}/src/linker_script.ld + #-Wl,--gc-sections + #-T${CMAKE_SOURCE_DIR}/src/linker_script.ld ) target_link_options(${PROJECT_NAME} PUBLIC @@ -48,7 +48,6 @@ target_link_options(${PROJECT_NAME} PUBLIC -nostdlib -Wl,--print-memory-usage -Wl,-Map=${PROJECT_NAME}.map - -lgcc -Wl,--gc-sections -T${CMAKE_SOURCE_DIR}/src/linker_script.ld ) diff --git a/src/ch32fun.c b/src/ch32fun.c index 1469639..27c2db2 100644 --- a/src/ch32fun.c +++ b/src/ch32fun.c @@ -85,7 +85,8 @@ void __libc_init_array(void) #define _SSP_STRING_H_ #define _SSP_STDIO_H_ -#include "ch32fun.h" +//#include "ch32fun.h" +#include #include #include #include