📄 fm_extern.c
字号:
/**
* generate independ drv files
* @defgroup card drv
* @{
*/
/** the internal function prototype*/
#include "radio_player.h"
/** elf relevent*/
#include "elf.h"
#include "drv_manager.h"
#include "includes.h"
extern INT32U _dstart,_dend;
static void * null_func(void);
unsigned int fmapitbl[]={
(unsigned int)radioOpen,
(unsigned int)radioCmd,
(unsigned int)radioClose,
(unsigned int)is_earphone_inserted,
};
addrInfo addr_info __addrdata=
{
startAddr: (INT32U)&_dstart,
endAddr: (INT32U)&_dend
};/*start/end addr of the drv*/
static drv_Info drvinfo = {
"drv",
(INT32S (*)(void *))null_func,
(INT32S (*)(void))null_func,
(INT32U)fmapitbl
};/*drvinfo required for installing drv*/
drv_Info *GetDrvInfo(void)
{
return &drvinfo;
}
/**
no use, just to disable the link error
*/
static void * null_func(void)
{
return;
}
/** @}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -