整理LDC1612驱动头文件相关定义

This commit is contained in:
2026-02-02 00:34:21 +08:00
parent 233576fd9a
commit 38490f6897
9 changed files with 1219 additions and 183 deletions

View File

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