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

📄 csl_atawritecontrolreg.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 C
字号:
/*  ============================================================================ *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005 * *   Use of this software is controlled by the terms and conditions found in the *   license agreement under which this software has been supplied. *   =========================================================================== *//** @file  csl_ataWriteControlReg.c * *  @brief File for functional layer of CSL API CSL_ataWriteControlReg() * *  Path: \\(CSLPATH)\\ipmodules\\ata\\src * *//* ============================================================================= *  Revision History *  =============== *  08-Oct-2004 kpn Updated according to review comments *  24-Sep-2004 kpn Updated according to CSL Upgradation guidelines. *  ============================================================================ */#include <csl_ata.h>/** ============================================================================ *   @n@b CSL_ataWriteControlReg * *   @b Description *   @n It writes into the control register. * *   @b Arguments *   @verbatim            hAta            Handle to the ATA            reg             CSL_AtaCtlRegWr            regVal          Uint16     @endverbatim * *   <b> Return Value </b> *   @n  Uint16  regVal * *   <b> Pre Condition </b> *   @n  None * *   <b> Post Condition </b> *   @n  The control register is loaded with regVal. * *   @b Modifies *   @n Control register * *   @b Example *   @verbatim            CSL_AtaHandle             hAta;            CSL_AtaCtlRegWr           reg;            Uint16                    regVal;            ...            regVal = CSL_ataWriteControlReg (hAta, reg, regVal);            ...     @endverbatim *  ============================================================================ */Uint16 CSL_ataWriteControlReg (    CSL_AtaHandle               hAta,    CSL_AtaCtlRegWr             reg,    Uint16                      regVal){    register Uint8 volatile * addr = 0;    addr = (hAta->ataNum == CSL_ATA_PRIMARY) ?           CSL_ATA_CTLREGS_PRIMARY : CSL_ATA_CTLREGS_SECONDARY;    addr[reg] = regVal;    return regVal;}

⌨️ 快捷键说明

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