##// 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
39 lines | 824 B | text/x-c | CLexer
#include <bsp.h>
#include <gpio.h>
#include <uart.h>
#include <stm32f4xx_rcc.h>
#include <stm32f4xx_gpio.h>
#include <streamdevices.h>
#include <libucstrings.h>
#include <stdio.h>
#include <sdcard.h>
#include <mbr.h>
#include <uhandle.h>
#include <blkdevice.h>
#include <fat32.h>
#include <string.h>
#include <hexviewer.h>
#include <libucfs.h>
#define delay for(volatile int i=0;i<1024*256;i++)
//streamdevice* stdo;
int main()
{
int seccnt = 1;
char test[512*seccnt];
int i=0;
blkdevice dev;
dikpartition part;
ucdirent dirent;
FAT32fs fs;
// void sdcardmakeblkdev(blkdevice* dev,sdcardDev* sdcard, blkdevselect_t select,blkdevpower_t power,blkdevdetect_t detect,blkdevwriteprotected_t writeprotected)
//sdcardmakeblkdev(&dev);
mbropen(&dev,&part,1);
return 0;
}