comparison 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 891841f5f785
comparison
equal deleted inserted replaced
7:9404b9869c27 8:58d76cf522ff
1 #include <stdint.h>
2 #include "stm32f10x.h"
3 #include "delay.h"
4
5 /* This is a bit rough and ready */
6 void
7 delay(__IO uint32_t nCount) {
8 __IO uint32_t i;
9
10 for(; nCount != 0; nCount--)
11 for (i = 0; i < 3900; i++)
12 ;
13 }
14