src/timer.c
changeset 63 e9b478c817df
parent 54 ec42f36d8614
child 78 504c2310cddb
equal deleted inserted replaced
62:2d68a76322cb 63:e9b478c817df
    65 /*
    65 /*
    66  * Sleep on timer1 interrupt.
    66  * Sleep on timer1 interrupt.
    67  *
    67  *
    68  * Returns 0 on interrupt, 1 on timeout.
    68  * Returns 0 on interrupt, 1 on timeout.
    69  */
    69  */
    70 char timer_sleep (int cycles)
    70 char timer_sleep (unsigned cycles)
    71 {
    71 {
    72     if (cycles) {
    72     if (cycles) {
    73         // set timer
    73         // set timer
    74         timer1_start(cycles);
    74         timer1_start(cycles);
    75     }
    75     }