Skip to content

Commit 071b3d9

Browse files
Solonix-Chumysterywolf
authored andcommitted
[bsp]: fix bugs of cvitek and pico drivers
1 parent bc3afab commit 071b3d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bsp/cvitek/drivers/drv_wdt.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Date Author Notes
88
* 2024/03/02 ShichengChu first version
99
*/
10-
#ifndef __DRV_ADC_H__
11-
#define __DRV_ADC_H__
10+
#ifndef __DRV_WDT_H__
11+
#define __DRV_WDT_H__
1212

1313
#include "pinctrl.h"
1414
#include "mmio.h"
@@ -161,4 +161,4 @@ rt_inline void cvi_wdt_clr_irq_en(unsigned long reg_base)
161161

162162
int rt_hw_wdt_init(void);
163163

164-
#endif /* __DRV_ADC_H__ */
164+
#endif /* __DRV_WDT_H__ */

bsp/raspberry-pico/drivers/drv_hwtimer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ static _timer_t timer0 = {.name = "timer0"};
5454
static _timer_t timer1 = {.name = "timer1" };
5555
#endif /* BSP_USING_TIMER1 */
5656
#ifdef BSP_USING_TIMER2
57-
static _timer_t timer0 = {.name = "timer2"};
57+
static _timer_t timer2 = {.name = "timer2"};
5858
#endif /* BSP_USING_TIMER2 */
5959
#ifdef BSP_USING_TIMER3
60-
static _timer_t timer1 = {.name = "timer3" };
60+
static _timer_t timer3 = {.name = "timer3" };
6161
#endif /* BSP_USING_TIMER3 */
6262

6363
static _timer_t *_timer_obj[] = {

0 commit comments

Comments
 (0)