Mercurial > ~darius > hgwebdir.cgi > stm32test
diff delay.c @ 8:58d76cf522ff
Split out code into separate files.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 04 Feb 2012 13:29:31 +1030 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/delay.c Sat Feb 04 13:29:31 2012 +1030 @@ -0,0 +1,14 @@ +#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++) + ; +} +