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