May 06, 2021
07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 06, 2021
07:40 AM
Hello,
i was missing a function to set a current count value. It would be nice if you add the following function in the next app release:
best regards
Andreas
i was missing a function to set a current count value. It would be nice if you add the following function in the next app release:
void COUNTER_SetCurrentCount(COUNTER_t *const handle_ptr, const uint16_t timer_val)
{
XMC_ASSERT("COUNTER_GetEventCount:Invalid handle_ptr", (handle_ptr != NULL))
#ifdef COUNTER_CCU4_USED
if (COUNTER_CCU4 == handle_ptr->counter_type)
{
XMC_CCU4_SLICE_StopTimer(handle_ptr->ccu4_handle->slice_ptr);
XMC_CCU4_SLICE_SetTimerValue(handle_ptr->ccu4_handle->slice_ptr,timer_val);
XMC_CCU4_SLICE_StartTimer(handle_ptr->ccu4_handle->slice_ptr);
}
#endif
#ifdef COUNTER_CCU8_USED
if (COUNTER_CCU8 == handle_ptr->counter_type)
{
XMC_CCU8_SLICE_StopTimer(handle_ptr->ccu8_handle->slice_ptr);
XMC_CCU8_SLICE_SetTimerValue(handle_ptr->ccu8_handle->slice_ptr,timer_val);
XMC_CCU8_SLICE_StartTimer(handle_ptr->ccu8_handle->slice_ptr);
}
#endif
}
best regards
Andreas
Solved! Go to Solution.
- Tags:
- IFX
1 Solution
Jun 04, 2021
01:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2021
01:24 AM
1 Reply
Jun 04, 2021
01:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2021
01:24 AM
Hi Andreas,
Thanks for the feedback.
Best Regards,
Vasanth
Thanks for the feedback.
Best Regards,
Vasanth