We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e8651 commit fcd0b1eCopy full SHA for fcd0b1e
bsp/renesas/libraries/HAL_Drivers/drv_hwtimer.c
@@ -115,11 +115,11 @@ static rt_uint32_t timer_counter_get(rt_hwtimer_t *timer)
115
116
tim = (struct ra_hwtimer *)timer->parent.user_data;
117
118
- timer_info_t info;
119
- if (R_GPT_InfoGet(tim->g_ctrl, &info) != FSP_SUCCESS)
+ timer_status_t status;
+ if (R_GPT_StatusGet(tim->g_ctrl, &status) != FSP_SUCCESS)
120
return -RT_ERROR;
121
122
- return info.period_counts;
+ return status.counter;
123
}
124
125
static rt_err_t timer_ctrl(rt_hwtimer_t *timer, rt_uint32_t cmd, void *arg)
0 commit comments