functions.h

来自「au1200下的boot代码」· C头文件 代码 · 共 43 行

H
43
字号
#ifndef FUNCTIONS_H#define FUNCTIONS_H#include "example.h"typedef int(*DATA_OPEN_FUNCTION)(const char*);typedef int(*DATA_CLOSE_FUNCTION)();typedef int(*DATA_READ_FUNCTION)(void*, int);typedef int(*DISK_OPEN_FUNCTION)(int);typedef int(*DISK_CLOSE_FUNCTION)();typedef int(*DISK_READ_FUNCTION)(int, int, void*);typedef struct DataFunctions{	DATA_OPEN_FUNCTION open;	DATA_CLOSE_FUNCTION close;	DATA_READ_FUNCTION read;}DataFunctions;typedef struct DiskFunctions{	DISK_OPEN_FUNCTION open;	DISK_CLOSE_FUNCTION close;	DISK_READ_FUNCTION read;}DiskFunctions;DiskFunctions getPCMCIAFunctions();#ifdef CONFIG_HWBLOCK_IDEDiskFunctions getIDEFunctions();#endifDiskFunctions getIDEFunctions();DataFunctions getFATFunctions();DataFunctions getFlashFunctions();#ifdef CONFIG_HWBLOCK_NAND_FLASHDataFunctions getNandFunctions();#endifDiskFunctions getSDFunctions();#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?