Compare commits
No commits in common. "e887d69e5dd54fcb1cc28e337ed3a4279cd27dd5" and "24f01edf74a176351f13124bee0f8b65af51174d" have entirely different histories.
e887d69e5d
...
24f01edf74
3 changed files with 4 additions and 5 deletions
2
setup.sh
2
setup.sh
|
|
@ -43,7 +43,7 @@ install_needed_dependencies () {
|
||||||
# Check the OS
|
# Check the OS
|
||||||
echo "checking the OS..."
|
echo "checking the OS..."
|
||||||
# If it's debian based then apt install
|
# If it's debian based then apt install
|
||||||
${ICMD}
|
|
||||||
# If it's freeBSD then pkg
|
# If it's freeBSD then pkg
|
||||||
|
|
||||||
# If it's windows....you're SOL
|
# If it's windows....you're SOL
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,10 @@ 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}/inc/
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||||
#blink
|
blink
|
||||||
gcc
|
gcc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include "ch32fun.h"
|
#include "ch32fun.h"
|
||||||
// #include <blink.h>
|
#include <blink.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define ADC_BUFFER_SIZE 32
|
#define ADC_BUFFER_SIZE 32
|
||||||
|
|
@ -37,7 +37,7 @@ int main(void)
|
||||||
// set delay fp.
|
// set delay fp.
|
||||||
// delay_ms = Delay_Ms;
|
// delay_ms = Delay_Ms;
|
||||||
|
|
||||||
// blink_led(5);
|
blink_led(5);
|
||||||
|
|
||||||
uint16_t old_value = UINT16_MAX;
|
uint16_t old_value = UINT16_MAX;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue