view delay.c @ 12:093bc0c3b1cc

Add delay, ellipse and line demos.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 06 Feb 2012 23:55:53 +1030
parents 58d76cf522ff
children 891841f5f785
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++)
	    ;
}