Synopsis
CTL_STATUS_t platform_private_hook_single_timer(PLATFORM_HOOK_t *p,
                                                unsigned frequency);
Description

platform_private_hook_single_timer is a utility function when implementing platform_hook_timer on platforms that offer only one timer. platform_private_hook_single_timer calls platform_private_start_single_hook_timer passing in frequency if this is a valid hook request.

Implementation

For platforms that provide a single timer took, platform_hook_timer should call platform_private_hook_single_timer and provide implementations of platform_private_start_single_hook_timer and platform_private_stop_single_hook_timer to control the timer interrupt.

See Also

platform_private_unhook_single_timer