// Include Standard LIB files
#include "Board.h"
#include "Image.h"
#define uchar unsigned char
#define uint unsigned int
typedef unsigned short uint16;
uchar temp;
uint color[]={0xf800,0x07e0,0x001f,0xffe0,0x0000,0xffff,0x07ff,0xf81f};
//*----------------------------------------------------------------------------
//* Function Name : delay
//* Object : Wait
//* Input Parameters : none
//* Output Parameters : none
//* Functions called : none
//*----------------------------------------------------------------------------
void delay ( void )//52us
{
// Set in Volatile for Optimisation
volatile unsigned int i;// uchar
// loop delay
for ( i = 0 ;i < 100 ;i++ ) ;// 500
}
void Delay(volatile uint tmp)
{
while(tmp--)
{
delay();
}
}