📄 sdk7a400_fx_cf_driver.h
字号:
/***********************************************************************
* $Workfile: sdk7a400_fx_cf_driver.h $
* $Revision: 1.0 $
* $Author: WellsK $
* $Date: Sep 26 2003 16:36:54 $
*
* Project: FileX (ThreadX) SDK7A400 CompactFlash driver
*
* Description:
* This file contains driver support for the FileX component of
* ThreadX when used with the Logic PD SDK7A400 EVB.
*
* Notes:
* The LPD board does not use interrupts to signal when a CF
* operation is complete. Because of this, the CF status must be
* polled either in a low priority task or checked after a small
* sleep period. This driver will sleep for 1 clock tick after a
* CF read or write command is issued to allow the operation time
* to complete. Because of this, the driver data transfer speed is
* very dependent on tick rate. As an estimate, the driver will
* transfer 512 bytes of data for every 2 ticks - for a 100Hz
* clock tick source, this is about 25KBytes/sec. Increasing the
* clock speed will help data rate linearly. Optionally, the
* tasks blocks due to sleep can be removed and replaced with
* direct polling code and the task can be placed at a low
* priority - this may also help with CF bandwidth, but will be
* tied very closely to system load.
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/sharpmcu/archives/sharpmcu/software/csps/lh7a400/bsps/sdk7a400/ports/filex/sdk7a400_fx_cf_driver.h-arc $
*
* Rev 1.0 Sep 26 2003 16:36:54 WellsK
* Initial revision.
*
* Rev 1.0 Sep 02 2003 14:44:20 WellsK
* Initial revision.
*
*
***********************************************************************
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
* COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
**********************************************************************/
#ifndef SDK7A400_FX_CF_DRIVER_H
#define SDK7A400_FX_CF_DRIVER_H
#include "tx_api.h"
#include "fx_api.h"
/***********************************************************************
* FileX Component
*
* Driver (DRI)
*
**********************************************************************/
/* Single function for all FileX */
void _fx_cf_driver(FX_MEDIA *media_ptr);
#endif /* SDK7A400_FX_CF_DRIVER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -