使用硬件IIC实现回去数据,并且,间隔缩小到300ms

This commit is contained in:
2025-01-07 15:42:56 +08:00
parent 93b24cc454
commit e86f8b0dd3
8 changed files with 91 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ void watchdog_init(void) {
rcu_osci_stab_wait(RCU_IRC40K);
/* Configure FWDGT counter clock: 40KHz(IRC40K) / 64 = 0.625 KHz */
fwdgt_config(625, FWDGT_PSC_DIV64); // Set timeout to 1 seconds (625 / 0.625 KHz)
fwdgt_config(625, FWDGT_PSC_DIV256); // Set timeout to 1 seconds (625 / 0.625 KHz)
/* Enable FWDGT */
fwdgt_enable();