You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
399 B
20 lines
399 B
#include <avr/io.h>
|
|
#include "timer.h"
|
|
|
|
/* Initialise timer. */
|
|
void timer_init (void)
|
|
{
|
|
/* TODO */
|
|
}
|
|
|
|
|
|
/* Wait for the specified length of time. */
|
|
void timer_delay_ms (uint16_t milliseconds)
|
|
{
|
|
/* TODO: Calculate the timer/counter value needed
|
|
for the given number of milliseconds. */
|
|
|
|
/* TODO: Wait for the timer/couter to reach the
|
|
value calculated above. */
|
|
}
|