generated from hulk/gd32e23x_template_cmake_vscode
add tmp112a code
This commit is contained in:
@@ -41,6 +41,7 @@ OF SUCH DAMAGE.
|
||||
#include "i2c.h"
|
||||
#include "board_config.h"
|
||||
#include "ldc1612.h"
|
||||
#include "tmp112.h"
|
||||
|
||||
/*!
|
||||
\brief main function
|
||||
@@ -80,6 +81,8 @@ int main(void)
|
||||
ldc1612_init();
|
||||
ldc1612_config_single_channel(CHANNEL_0);
|
||||
|
||||
tmp112a_init();
|
||||
|
||||
#ifdef EDDY_DRIVE_CURRENT_DETECTION
|
||||
ldc1612_drvie_current_detect(CHANNEL_0);
|
||||
#endif
|
||||
@@ -88,8 +91,10 @@ int main(void)
|
||||
#ifndef EDDY_DRIVE_CURRENT_DETECTION
|
||||
command_process();
|
||||
delay_ms(10);
|
||||
if (g_sensor_report_enabled)
|
||||
if (g_eddy_current_sensor_report_enabled)
|
||||
eddy_current_report();
|
||||
if (g_temperature_sensor_report_enabled)
|
||||
temperature_raw_value_report();
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user