Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
17
sdk/lib/flashdisk/flashdisk.h
Normal file
17
sdk/lib/flashdisk/flashdisk.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __FLASHDISK_H
|
||||
#define __FLASHDISK_H
|
||||
#include "sys_config.h"
|
||||
#include "typesdef.h"
|
||||
#include "diskio.h"
|
||||
#include "ff.h"
|
||||
#ifndef FLASH_FATFS_SIZE
|
||||
#define FLASH_FATFS_SIZE 512*1024
|
||||
#endif
|
||||
|
||||
void flash_fatfs_init();
|
||||
int flashdisk_usb_read(uint32_t sector,uint32_t count,uint8* buf);
|
||||
int flashdisk_usb_write(uint32_t sector,uint32_t count,uint8* buf);
|
||||
struct spi_nor_flash *flashdisk_usb_getdev();
|
||||
uint32_t flashdisk_get_sec_count();
|
||||
uint32_t flashdisk_get_sec_size();
|
||||
#endif
|
||||
Reference in New Issue
Block a user