view 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 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++)
	    ;
}