##// 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
#include <stdio.h>
#include <fat32.h>
#include <gpio.h>
#include <uart.h>
#include <stm32f4xx.h>
#include <bsp.h>
#include <core.h>
#include <VS10XX.h>
#include <bsp.h>
extern streamdevice* __opnfiles__[];
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++);
}
int main()
{
while(1)
{
// printf("Audio Codec reg0=0x%x\n",vs10XXcmdread(&audioCodec0,0));
// printf("hello ");
// bsp_lcd0_write_reg(1,0x1234);
// delay_100us(10000);
// randBoxesDemo();
gpioset(LED1);
delay_100us(10000);
gpioclr(LED1);
delay_100us(10000);
}
printf("hello world\n\r");
return 0;
}