⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdk7a404_fx_cf_driver.h

📁 含t h r e a d x,u c o s 的b s p
💻 H
字号:
/***********************************************************************
 * $Workfile:   sdk7a404_fx_cf_driver.h  $
 * $Revision:   1.0  $
 * $Author:   WellsK  $
 * $Date:   Sep 02 2003 14:44:20  $
 *
 * Project: FileX (ThreadX) SDK7A404 CompactFlash driver
 *
 * Description:
 *     This file contains driver support for the FileX component of
 *     ThreadX when used with the Logic PD SDK7A404 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/lh7a404/bsps/sdk7a404/ports/filex/sdk7a404_fx_cf_driver.h-arc  $
 * 
 *    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 SDK7A404_FX_CF_DRIVER_H
#define SDK7A404_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 /* SDK7A404_FX_CF_DRIVER_H */

⌨️ 快捷键说明

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