##// END OF EJS Templates
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port instead of the desired bit).

File last commit:

r60:17402611bd25 dev_alexis
r60:17402611bd25 dev_alexis
Show More
main.c
54 lines | 1.0 KiB | text/x-c | CLexer
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Now uses qmake to compile an Qt-creator compatible!
r18 #include <stdio.h>
#include <fat32.h>
#include <gpio.h>
#include <uart.h>
#include <stm32f4xx.h>
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r21 #include <bsp.h>
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Sync
r42 #include <core.h>
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60 #include <VS10XX.h>
#include <bsp.h>
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Now uses qmake to compile an Qt-creator compatible!
r18
extern streamdevice* __opnfiles__[];
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60 void randBoxesDemo()
{
int16_t x,y,w,h,t,r;
x=rand()%240;
y=rand()%320;
w=rand()%(240-x);
if(x>y)
r=(rand()%(y))%(320-y);
else
r=(rand()%(x))%(240-x);
h=rand()%(320-y);
t=rand()%(10);
ili9328paintFilRect(&lcd0,x,y,w,h,rand(),t,rand());
//ili9328paintFilCirc(&lcd0,x,y,r,rand(),t,rand());
//delay_100us(10);
//for(volatile int i=0;i<(1024*2);i++);
}
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Now uses qmake to compile an Qt-creator compatible!
r18 int main()
{
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60 while(1)
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Now uses qmake to compile an Qt-creator compatible!
r18 {
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60 // printf("Audio Codec reg0=0x%x\n",vs10XXcmdread(&audioCodec0,0));
// printf("hello ");
// bsp_lcd0_write_reg(1,0x1234);
// delay_100us(10000);
// randBoxesDemo();
gpioset(LED1);
Cleaned SRC tree
r44 delay_100us(10000);
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60 gpioclr(LED1);
Cleaned SRC tree
r44 delay_100us(10000);
Added Oplayer BSP, Fixed bug on GPIO library(gpiosetval change all the port...
r60
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
Now uses qmake to compile an Qt-creator compatible!
r18 }
printf("hello world\n\r");
return 0;
}