Moved headers into inc file

This commit is contained in:
Jake Goodwin 2025-03-08 17:31:16 -08:00
parent 32a3dcad12
commit 0bdc60bcf8
5 changed files with 6 additions and 6 deletions

View file

@ -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
)

View file

@ -85,7 +85,8 @@ void __libc_init_array(void)
#define _SSP_STRING_H_
#define _SSP_STDIO_H_
#include "ch32fun.h"
//#include "ch32fun.h"
#include <ch32fun.h>
#include <limits.h>
#include <stdarg.h>
#include <stdint.h>