Mercurial > ~darius > hgwebdir.cgi > stm32test
view delay.c @ 10:0b75cff7c570
Add _usleep16 - sleeps for cnt microseconds.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 06 Feb 2012 23:54:36 +1030 |
parents | 58d76cf522ff |
children |
line wrap: on
line source
#include <stdint.h> #include "stm32f10x.h" #include "delay.h" /* This is a bit rough and ready */ void delay(__IO uint32_t nCount) { __IO uint32_t i; for(; nCount != 0; nCount--) for (i = 0; i < 3900; i++) ; }