Compare commits

..

3 commits

Author SHA1 Message Date
e887d69e5d updated main cmake file to remove linking to blink module. 2026-02-17 01:21:51 -08:00
25283c1d84 Added start of command to setup script. 2026-02-17 01:13:27 -08:00
c0d5ba1d90 commented out blink module to allow easy compiling.
The module caused issues when attempting to build it via seperate
modules.
2026-02-17 01:13:13 -08:00
3 changed files with 5 additions and 4 deletions

View file

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

View file

@ -7,10 +7,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}/inc/
) )
target_link_libraries(${PROJECT_NAME} PRIVATE target_link_libraries(${PROJECT_NAME} PRIVATE
blink #blink
gcc gcc
) )

View file

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