summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ8MAN8 <[email protected]>2024-06-20 22:10:05 +0800
committerMeco Man <[email protected]>2024-06-26 20:28:29 +0800
commit071b3d9244f38ba0c032fd3202dba0b3642c859f (patch)
tree26a01104647a0dc1f1c33cfa04a8aebf114a8792
parentbc3afab2c9ae8aaee793f22d03f6961386d2680f (diff)
[bsp]: fix bugs of cvitek and pico drivers
-rw-r--r--bsp/cvitek/drivers/drv_wdt.h6
-rw-r--r--bsp/raspberry-pico/drivers/drv_hwtimer.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/bsp/cvitek/drivers/drv_wdt.h b/bsp/cvitek/drivers/drv_wdt.h
index f779d6129b..7fbab6f951 100644
--- a/bsp/cvitek/drivers/drv_wdt.h
+++ b/bsp/cvitek/drivers/drv_wdt.h
@@ -7,8 +7,8 @@
* Date Author Notes
* 2024/03/02 ShichengChu first version
*/
-#ifndef __DRV_ADC_H__
-#define __DRV_ADC_H__
+#ifndef __DRV_WDT_H__
+#define __DRV_WDT_H__
#include "pinctrl.h"
#include "mmio.h"
@@ -161,4 +161,4 @@ rt_inline void cvi_wdt_clr_irq_en(unsigned long reg_base)
int rt_hw_wdt_init(void);
-#endif /* __DRV_ADC_H__ */
+#endif /* __DRV_WDT_H__ */
diff --git a/bsp/raspberry-pico/drivers/drv_hwtimer.c b/bsp/raspberry-pico/drivers/drv_hwtimer.c
index b431f163a8..cefacd5477 100644
--- a/bsp/raspberry-pico/drivers/drv_hwtimer.c
+++ b/bsp/raspberry-pico/drivers/drv_hwtimer.c
@@ -54,10 +54,10 @@ static _timer_t timer0 = {.name = "timer0"};
static _timer_t timer1 = {.name = "timer1" };
#endif /* BSP_USING_TIMER1 */
#ifdef BSP_USING_TIMER2
-static _timer_t timer0 = {.name = "timer2"};
+static _timer_t timer2 = {.name = "timer2"};
#endif /* BSP_USING_TIMER2 */
#ifdef BSP_USING_TIMER3
-static _timer_t timer1 = {.name = "timer3" };
+static _timer_t timer3 = {.name = "timer3" };
#endif /* BSP_USING_TIMER3 */
static _timer_t *_timer_obj[] = {