generated from hulk/gd32e23x_template_cmake_vscode
整理LDC1612驱动头文件相关定义
This commit is contained in:
12
Src/main.c
12
Src/main.c
@@ -51,6 +51,8 @@ OF SUCH DAMAGE.
|
||||
*/
|
||||
int main(void)
|
||||
{
|
||||
// nvic_vector_table_set(NVIC_VECTTAB_FLASH, 0x2000);
|
||||
|
||||
led_init();
|
||||
mcu_detect_and_config();
|
||||
|
||||
@@ -60,7 +62,7 @@ int main(void)
|
||||
|
||||
// led_init();
|
||||
|
||||
printf("Flash size: %d Kbytes\n", get_flash_size());
|
||||
// printf("Flash size: %d Kbytes\n", get_flash_size());
|
||||
|
||||
#ifdef DEBUG_VERBOSE
|
||||
char hello_world[] = {"Hello World!\r\n"};
|
||||
@@ -95,14 +97,8 @@ int main(void)
|
||||
#ifndef EDDY_DRIVE_CURRENT_DETECTION
|
||||
command_process();
|
||||
delay_ms(10);
|
||||
if (g_eddy_current_sensor_report_enabled)
|
||||
// if (g_eddy_current_sensor_report_enabled)
|
||||
eddy_current_report();
|
||||
if (g_temperature_sensor_report_enabled)
|
||||
temperature_raw_value_report();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#else
|
||||
ldc1612_drvie_current_detect(CHANNEL_0);
|
||||
|
||||
Reference in New Issue
Block a user