Compare commits
3 commits
da9f30129e
...
968570e898
Author | SHA1 | Date | |
---|---|---|---|
968570e898 | |||
de1e09c265 | |||
b6fd401992 |
3 changed files with 2 additions and 8 deletions
|
@ -35,7 +35,7 @@ void ADC_Enable(void);
|
|||
/**
|
||||
* @brief Disables the ADC
|
||||
*/
|
||||
void ADC_Disable();
|
||||
void ADC_Disable(void);
|
||||
|
||||
/**
|
||||
* @brief Reads ADC value into variable
|
||||
|
|
|
@ -6,11 +6,9 @@ add_executable(${PROJECT_NAME}
|
|||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/extralibs
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
#ch32fun
|
||||
)
|
||||
|
||||
target_compile_options(${PROJECT_NAME} PUBLIC
|
||||
|
@ -26,11 +24,7 @@ target_compile_options(${PROJECT_NAME} PUBLIC
|
|||
-DCH32V003=1
|
||||
-static-libgcc
|
||||
-nostdlib
|
||||
#-Wl,--print-memory-usage
|
||||
#-Wl,-Map=${PROJECT_NAME}.map
|
||||
-lgcc
|
||||
#-Wl,--gc-sections
|
||||
#-T${CMAKE_SOURCE_DIR}/src/linker_script.ld
|
||||
)
|
||||
|
||||
target_link_options(${PROJECT_NAME} PUBLIC
|
||||
|
|
|
@ -85,7 +85,7 @@ 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>
|
||||
|
|
Loading…
Add table
Reference in a new issue