# HG changeset patch # User jeandet@pc-de-jeandet3.LAB-LPP.LOCAL # Date 2012-12-07 18:41:48 # Node ID e203e69902ca4d06aab6bdeeba03a2a0aa76883e # Parent be52970f57977558122fb01b3bdbbc2ba0bc8c31 sync diff --git a/bsp/src/SOLAR_LFR_PSU/bsp.c b/bsp/src/SOLAR_LFR_PSU/bsp.c --- a/bsp/src/SOLAR_LFR_PSU/bsp.c +++ b/bsp/src/SOLAR_LFR_PSU/bsp.c @@ -85,7 +85,7 @@ void bsp_uart_init() } else { - uartopenandconfig(2,uartparitynone | uart8bits | uartonestop,115200,PB10,PB11,-1,-1); + uartopenandconfig(uart3,uartparitynone | uart8bits | uartonestop,115200,PB10,PB11,-1,-1); } } diff --git a/examples/examples.pro b/examples/examples.pro --- a/examples/examples.pro +++ b/examples/examples.pro @@ -4,7 +4,8 @@ SUBDIRS += QtTest/test.pro \ SOLAR_PSU_HELLO/hello.pro \ SDCARD \ STM32F4IT \ - BeagleSynthHello + BeagleSynthHello \ + ../../../home/jeandet/hello diff --git a/lib/src/common/GRAPHIC/CONTROLERS/ILI9328/ili9328.c b/lib/src/common/GRAPHIC/CONTROLERS/ILI9328/ili9328.c --- a/lib/src/common/GRAPHIC/CONTROLERS/ILI9328/ili9328.c +++ b/lib/src/common/GRAPHIC/CONTROLERS/ILI9328/ili9328.c @@ -31,6 +31,18 @@ #define _delay_(del) for(volatile int _d_e_l_=0;_d_e_l_<(del);_d_e_l_++); +#define ilipaintLine(LCD,X,Y,W,buffer,buffsize) \ + for(int l=0;l<1;l++)\ + {\ + ili9328setFrame(LCD,X,Y,W,1);\ + int rem=(W)%buffsize;\ + if(rem)LCD->interface->writeGRAM(buffer,rem);\ + for(int i=rem;i<(W);i+=buffsize)\ + {\ + LCD->interface->writeGRAM(buffer,buffsize);\ + }\ + } + void ili9328setGRAMaddress(LCD_t* LCD,uint16_t Haddress,uint16_t Vaddress) { LCD->interface->writereg(ILI9328_REGISTER_HORIZONTALGRAMADDRESSSET,Haddress); @@ -71,12 +83,30 @@ void ili9328paint(LCD_t* LCD,void* buffe void ili9328paintFilCircMidPoint(LCD_t* LCD,uint16_t Xpos,uint16_t Ypos,uint16_t r,uint32_t contColor,uint16_t contSz,uint32_t fillColor) { + //Based on the mid point circle algorithm from Wikipedia + //http://en.wikipedia.org/wiki/Midpoint_circle_algorithm + if(contSzVAL+((value%100)*tickperus); + uint32_t targetVal=tickCounterSnap +(value/100); + if(targetVal < tickCounterSnap) + { + while(tickCounter > targetVal); + } + while((tickCounter < targetVal) | (SysTick->VALVAL; uint32_t targetVal=tickCounterSnap +(value); if(targetVal < tickCounterSnap) { while(tickCounter > targetVal); } - while(tickCounter < targetVal); + while((tickCounter < targetVal) | (SysTick->VAL