X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/6ffa080eb257892c7cad9f80f8bfef99b4896082..39f1c0c136520a3f4746ad6381d1242979125ff3:/firmware/clock.c?ds=inline diff --git a/firmware/clock.c b/firmware/clock.c index 52138e534..3b90a68ae 100644 --- a/firmware/clock.c +++ b/firmware/clock.c @@ -1,12 +1,12 @@ /* - clock.c - part of USBasp - - Autor..........: Thomas Fischl - Description....: Provides functions for timing/waiting - Licence........: GNU GPL v2 (see Readme.txt) - Creation Date..: 2005-02-23 - Last change....: 2005-04-20 -*/ + * clock.c - part of USBasp + * + * Autor..........: Thomas Fischl + * Description....: Provides functions for timing/waiting + * Licence........: GNU GPL v2 (see Readme.txt) + * Creation Date..: 2005-02-23 + * Last change....: 2005-04-20 + */ #include #include @@ -15,9 +15,10 @@ /* wait time * 320 us */ void clockWait(uint8_t time) { - uint8_t i; - for (i = 0; i < time; i++) { - uint8_t starttime = TIMERVALUE; - while ((uint8_t) (TIMERVALUE - starttime) < CLOCK_T_320us) {} - } + uint8_t i; + for (i = 0; i < time; i++) { + uint8_t starttime = TIMERVALUE; + while ((uint8_t) (TIMERVALUE - starttime) < CLOCK_T_320us) { + } + } }