/* @speed: The speed in Hz to calculate the clock cycle duration for.  */
uint calc_tick(uint speed)
/* @speed: The speed in Hz to calculate the clock cycle duration for.  */
uint calc_tick(uint speed)
{
	return (1000000000u / speed) + 100;
}