#include "Can.h" #include "Filter.h" #include "Timer.h" #include "adc.h" #include "core_cm4.h" #include "device/tle5012b.h" #include "initial.h" #include "main.h" #include "sys/initial.h" #include "systick.h" #include "tle5012b.h" #include #include constexpr int status_print = 0; extern sampler sampler; void test_1111() { // 初始化CAN回环测试 // can_loopback_init(); // can_config(); if (status_print) { /* value print */ printf(" the temperature data is %2.2f degrees Celsius\r\n", sampler.get_mcu_temp()); printf(" the drv_temperature data is %2.2f degrees Celsius\r\n", sampler.get_drv_temp()); printf(" the U current data is %2.2f mA\r\n", sampler.get_current('U')); printf(" the V current data is %2.2f mA\r\n", sampler.get_current('V')); printf(" the W current data is %2.2f mA\r\n", sampler.get_current('W')); printf(" the VBUS is %2.2f V\r\n", sampler.get_vbus_voltage()); // printf(" the angle is %2.2f\r\n", tle5012b_read()); printf("\n----------------------------------------------------\n"); // TLI5012B测试 Test_TLI5012B(); } // can_loopback_test(); }