Revert "测试提交"

This reverts commit 6c9543648f.
This commit is contained in:
2024-12-26 01:02:07 +08:00
parent d356658079
commit f130674630
4 changed files with 6 additions and 30 deletions

View File

@@ -18,21 +18,6 @@
uint32_t g_temperature_uint32;
uint32_t g_eddy_current_value_uint32;
void watchdog_init(void) {
/* Enable the LSI clock */
rcu_osci_on(RCU_IRC8M);
rcu_osci_stab_wait(RCU_IRC8M);
/* Enable the FWDGT clock */
rcu_periph_clock_enable(RCU_WWDGT);
/* Configure FWDGT counter clock: 40KHz(IRC40K) / 256 = 0.15625 KHz */
fwdgt_config(156, FWDGT_PSC_DIV256); // Set timeout to 4 seconds (625 / 0.15625 KHz)
/* Enable FWDGT */
fwdgt_enable();
}
/*!
\brief main function
\param[in] none
@@ -55,16 +40,13 @@ int main(void) {
/* configure LDC1612 */
ldc1612_single_ch0_config();
watchdog_init();
while (1) {
delay_ms(99);
delay_ms(100);
g_eddy_current_value_uint32 = 0;
g_temperature_uint32 = 0;
g_eddy_current_value_uint32 = ldc1612_get_raw_channel_result(CHANNEL_0);
// g_temperature_uint32 = tmp112a_get_raw_channel_result();
g_temperature_uint32 = tmp112a_get_raw_channel_result();
// printf("1");
fwdgt_counter_reload();
}
}