#include "system.h"
#include "SysTick.h"
#include "led.h"
#include "usart.h"
#include "tftlcd.h"
#include "rtc.h"
#include "math.h"
#define PI 3.1415926
void get_circle(int x,int y,int r,int col)
{
int xc=0;
int yc,p;
yc=r;
p=3-(r<<1);
while(xc <= yc)
{
LCD_DrawFRONT_COLOR(x+xc,y+yc,col);
LCD_DrawFRONT_COLOR(x+xc,y-yc,col);
LCD_DrawFRONT_COLOR(x-xc,y+yc,col);
LCD_DrawFRONT_COLOR(x-xc,y-yc,col);
LCD_DrawFRONT_COLOR(x+yc,y+xc,col);
LCD_DrawFRONT_COLOR(x+yc,y-xc,col);
LCD_DrawFRONT_COLOR(x-yc,y+xc,col);
LCD_DrawFRONT_COLOR(x-yc,y-xc,col);
if(p<0)
{
p += (xc++ << 2)