📄 led_apif.c
字号:
/*==============================================================================
TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
Property of Texas Instruments. For Unrestricted Internal Use Only
Unauthorized reproduction and/or distribution is strictly prohibited.
This product is protected under copyright law and trade secret law
as an unpublished work.
Created 2002, (C) Copyright 2002 Texas Instruments. All rights reserved.
Created : 29th of August, 2002, 16.00pm
Filename : led_apiled.c
Description : Body file for the OMAP1610 initialization API code
Project : HELEN2, OMAP1610, OMAP32
Author : Dayo Adeyeye
FUNCTIONS PROVIDED : ARM Port Interface <-> MGS3
void API_LEDCtrlSetup (API_LEDHighFreq_t high_freq,
API_LEDTimeoutEn_t timeout_en,
API_LEDApiErrEn_t api_err_en,
API_LEDAccessFactor_t access_factor,
API_LEDTimeout_t timeout,
API_LEDEndianism_t endianism,
API_LEDAccessPriority_t access_priority);
void API_LEDDSPBootConfig (API_LEDDSPBootMode_t dsp_boot_mode);
void API_LEDAPISize (API_LEDAPISize_t api_size);
==============================================================================*/
#include "led_top.h"
//-------------------------------------------------------------------------------
// NAME : API_LEDCtrlSetup.
// DESCRIPTION : Setup the configuration register of the API.
// PARAMETERS :
// high_freq => frequency mode.
// timeout_en => enable or disable the timeout feature.
// api_lederr_en => enable the s_nabort signal.
// access_factor => division factor for the access frequency.
// timeout => timeout value.
// endianism => endianism conversion.
// access_priority => APILED access priority.
// RETURN VALUE: None.
// LIMITATIONS : None.
//-------------------------------------------------------------------------------
void API_LEDCtrlSetup (API_LEDHighFreq_t high_freq,
API_LEDTimeoutEn_t timeout_en,
API_LEDApiErrEn_t api_lederr_en,
API_LEDAccessFactor_t access_factor,
API_LEDTimeout_t timeout,
API_LEDEndianism_t endianism,
API_LEDAccessPriority_t access_priority) {
APILED_CTRL_REG = ((high_freq << API_LEDHIGH_FREQ_POSBIT)
| (timeout_en << API_LEDTIMEOUT_EN_POSBIT)
| (api_lederr_en << API_LEDAPI_ERR_EN_POSBIT)
| (access_factor << API_LEDACCESS_FACTOR_POSBIT)
| (timeout << API_LEDENDIANISM_POSBIT)
| (endianism << API_LEDENDIANISM_POSBIT)
| (access_priority << API_LEDACCESS_PRIORITY_POSBIT));
}
// | (timeout << API_LEDTIMEOUT_POSBIT)
//-------------------------------------------------------------------------------
// NAME : API_LEDDSPBootConfig.
// 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 API_LEDDSPBootConfig (API_LEDDSPBootMode_t dsp_boot_mode) {
APILED_DSP_BOOT_CONFIG = (dsp_boot_mode);
}
//-------------------------------------------------------------------------------
// NAME : API_LEDAPISize.
// DESCRIPTION : Specified which blocks of SARAM are accessible in HOM mode.
// PARAMETERS :
// api_ledsize => size.
// RETURN VALUE: None.
// LIMITATIONS : None.
//-------------------------------------------------------------------------------
void API_LEDAPISize (API_LEDAPISize_t api_ledsize){
APILED_DSP_API_CONFIG = api_ledsize;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -