📄 xxx.c
字号:
//----------------------------------------------------------------------------
// Filename : xxx.c
//----------------------------------------------------------------------------
//
// Copyright (c) 2008,东莞太平计算机科技有限公司
// All rights reserved.
// www.pacific-gold.com.cn
//
// 历史版本:
//
// 版本: V1.0
// 作者: 罗先能
// 日期: 2007-12-21
// 描述: 建立第一版本
//
//
// 描述:
// 1. 设备xxx的驱动程序
//
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------------
// system headers
#include "71x_lib.h"
// internal headers
#include "xxx.h"
// extern headers
//----------------------------------------------------------------------------
// Local Constant Definitions
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Local Variables Definitions
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Global Variables Definitions
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Local Function Definitions
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// Global Function Definitions
//----------------------------------------------------------------------------
/****************************************************************
* Function Name : xxx_init(...)
* Description : initialize the device of xxx
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public int xxx_init( void )
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_open(...)
* Description : turn on the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public int xxx_open( void )
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_close(...)
* Description : turn off the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public int xxx_close( void )
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_write(...)
* Description : send data to the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public bool xxx_write(u32 address, u32 size, void* buffer)
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_read(...)
* Description : get data from the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public bool xxx_read( u32 address, u32* size void* buffer)
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_ctrl(...)
* Description : controll the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public xxx_ctrl( COMMAND_DEF cmd, u32 arg, void* buffer)
{
return TRUE;
}
/****************************************************************
* Function Name : xxx_isr(...)
* Description : ISR (Interrupt Service Routine) for the device
*
* Input : None
* Output : None
* Return : None
****************************************************************/
public void xxx_isr(void)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -