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

📄 omap30_apif.c

📁 有关于USB的一些主机端驱动
💻 C
字号:
//-------------------------------------------------------------------------------
//          TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION  
//   Property of Texas Instruments
//   For Unrestricted Internal Use Only
//   Unauthorized reprofuction and/or distribution is strictly prohibited.
//   This product is protected under copyright law and trade secret law
//   as an unpublished work
//   Created 2000,  (C) Copyright 2000 Texas Instruments. All rights reserved
//
//------------------------------------------------------------------------------
#include "omap30.h"

//-------------------------------------------------------------------------------
//
//  FUNCTIONS
//
//-------------------------------------------------------------------------------

//-------------------------------------------------------------------------------
// NAME	     : APIF_CtrlSetup.
// DESCRIPTION : Setup the configuration of the API.
// PARAMETERS  :
//   high_freq		=> frequency mode.
//   timeout_en		=> enable or disable the timeout feature.
//   api_err_en		=> enable the s_nabort signal.
//   access_factor	=> division factor for the access frequency.
//   timeout		=> timeout value.
//   endianism		=> endianism conversion.
//   access_priority	=> APIF access priority.
// RETURN VALUE: None.
// LIMITATIONS : None.
//-------------------------------------------------------------------------------
void APIF_CtrlSetup (API_HighFreq_t high_freq,
                     API_TimeoutEn_t timeout_en,
                     API_ApiErrEn_t api_err_en,
                     API_AccessFactor_t access_factor,
                     API_Timeout_t timeout,
                     API_Endianism_t endianism,
                     API_AccessPriority_t access_priority)
{
  			APIF_CTRL_REG = (high_freq
				      | timeout_en      << APIF_CTRL_REG_TIMEOUT_EN_POS
				      | api_err_en      << APIF_CTRL_REG_API_ERR_EN_POS
				      | access_factor   << APIF_CTRL_REG_ACCESS_FACTOR_POS
				      | timeout         << APIF_CTRL_REG_TIMEOUT_POS
				      | endianism       << APIF_CTRL_REG_ENDIANISM_POS
				      | access_priority << APIF_CTRL_REG_ACCESS_PRIORITY_POS);
}

//-------------------------------------------------------------------------------
// NAME	     : APIF_DSPBootConfig.						
// DESCRIPTION : Setup the boot configuration of the DSP.			
// PARAMETERS  :								
//   dsp_boot_mode	=> DSP boot mode.					
//   boot_rhea_ptr1	=> pointer to rhea.					
//   boot_rhea_ptr2	=> pointer to rhea.					 
// RETURN VALUE: None.								 
// LIMITATIONS : None.								
//-------------------------------------------------------------------------------
void APIF_DSPBootConfig (API_DSPBootMode_t dsp_boot_mode)
{
  APIF_DSP_BOOT_CONFIG = (dsp_boot_mode);
}

⌨️ 快捷键说明

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