##// 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:

r18:bd9ab647f70a default
r60:17402611bd25 dev_alexis
Show More
main.c
22 lines | 558 B | 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>
int main()
{
gpio_t gpio1 = gpioopen(PD12);//gpioopen(LED1); //PD9 D=> 0x0300 9 => 0x0009
gpio_t gpio2 = gpioopen(PD13);//gpioopen(LED2);
gpiosetdir(&gpio1,gpiooutdir);
gpiosetdir(&gpio2,gpiooutdir);
volatile int i=0;
while(1)
{
for(i=0;i<1024*1024*4;i++);
gpioset(gpio1);
gpioclr(gpio2);
for(i=0;i<1024*1024*16;i++);
gpioclr(gpio1);
gpioset(gpio2);
}
return 0;
}