Compare commits

...

3 commits

Author SHA1 Message Date
968570e898 removed uneeded lines. 2025-03-08 18:45:22 -08:00
de1e09c265 changed header include style. 2025-03-08 18:45:11 -08:00
b6fd401992 Added void as parameter. 2025-03-08 18:44:55 -08:00
3 changed files with 2 additions and 8 deletions

View file

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

View file

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

View file

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