view delay.c @ 11:ca48036c82ef

Add _usleep16 prototype.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 06 Feb 2012 23:55:11 +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++)
	    ;
}