Moved headers into inc file
This commit is contained in:
parent
32a3dcad12
commit
0bdc60bcf8
5 changed files with 6 additions and 6 deletions
|
@ -26,11 +26,11 @@ target_compile_options(${PROJECT_NAME} PUBLIC
|
||||||
-DCH32V003=1
|
-DCH32V003=1
|
||||||
-static-libgcc
|
-static-libgcc
|
||||||
-nostdlib
|
-nostdlib
|
||||||
-Wl,--print-memory-usage
|
#-Wl,--print-memory-usage
|
||||||
-Wl,-Map=${PROJECT_NAME}.map
|
#-Wl,-Map=${PROJECT_NAME}.map
|
||||||
-lgcc
|
-lgcc
|
||||||
-Wl,--gc-sections
|
#-Wl,--gc-sections
|
||||||
-T${CMAKE_SOURCE_DIR}/src/linker_script.ld
|
#-T${CMAKE_SOURCE_DIR}/src/linker_script.ld
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_options(${PROJECT_NAME} PUBLIC
|
target_link_options(${PROJECT_NAME} PUBLIC
|
||||||
|
@ -48,7 +48,6 @@ target_link_options(${PROJECT_NAME} PUBLIC
|
||||||
-nostdlib
|
-nostdlib
|
||||||
-Wl,--print-memory-usage
|
-Wl,--print-memory-usage
|
||||||
-Wl,-Map=${PROJECT_NAME}.map
|
-Wl,-Map=${PROJECT_NAME}.map
|
||||||
-lgcc
|
|
||||||
-Wl,--gc-sections
|
-Wl,--gc-sections
|
||||||
-T${CMAKE_SOURCE_DIR}/src/linker_script.ld
|
-T${CMAKE_SOURCE_DIR}/src/linker_script.ld
|
||||||
)
|
)
|
||||||
|
|
|
@ -85,7 +85,8 @@ void __libc_init_array(void)
|
||||||
#define _SSP_STRING_H_
|
#define _SSP_STRING_H_
|
||||||
#define _SSP_STDIO_H_
|
#define _SSP_STDIO_H_
|
||||||
|
|
||||||
#include "ch32fun.h"
|
//#include "ch32fun.h"
|
||||||
|
#include <ch32fun.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue