steven ayer schrieb:
> void brief_pause(register unsigned int n)
> {
>    asm volatile( "1: \n\t"
>                  "dec    %0 \n\t"
>                  "jne    1b\n\t"
>                  :  "+r" (n));
> }

something like that is available in libmspgcc.
- that is, #include <mspgcc/util.h>
- then use "delay(counts);".
- when linking, specify "-l mspgcc" on the command line to get the
  library.

docs are in the header file:
http://mspgcc.cvs.sourceforge.net/viewvc/mspgcc/libraries/include/mspgcc/util.h?revision=1.6&view=markup

the mspgcc library also has some other, interesting functions :-)
http://mspgcc.cvs.sourceforge.net/viewvc/mspgcc/libraries/include/mspgcc/

chris

Reply via email to