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

📄 emif.c

📁 ti dsp 6416 的BOOT程序。利用此程序实现将代码写入到FLASH 的功能。
💻 C
字号:
/*H******************************************************************************* $Archive::                                                                   $* $Revision::                                                                  $* $Date::                                                                      $* $Author::                                                                    $** DESCRIPTION:  TMS320C64xx TEB emif code ** GLOBALS ** PUBLIC FUNCTIONS:*                              * PRIVATE FUNCTIONS:** USAGE/LIMITATIONS:** NOTES: Assumptions:*             TMS320C64x TEB*             CPLD connected to EMIF B, TBCE0*             AMD29LV400BT flash connected to EMIF B, TBCE1*             SDRAM connected to EMIF A, TACE0** COMPILE SWITCHES:*H***************************************************************************/#define emif_c/*---- compilation control switches ----------------------------------------*//****************************************************************************** INCLUDE FILES*****************************************************************************//*---- system and platform files -------------------------------------------*/#include <stdlib.h>#include <stdio.h>#include <c6x.h>/*---- program files -------------------------------------------------------*/#include "c6416teb.h"#include "emif.h"/****************************************************************************** EXTERNAL REFERENCE    *****************************************************************************//*---- data declarations ---------------------------------------------------*//*---- function prototypes -------------------------------------------------*//****************************************************************************** PUBLIC DECLARATIONS *****************************************************************************//*---- data declarations ---------------------------------------------------*//****************************************************************************** PRIVATE DECLARATIONS  *****************************************************************************//*---- context -------------------------------------------------------------*//*---- data declarations ---------------------------------------------------*/	/*---- function prototypes -------------------------------------------------*//*---- macros --------------------------------------------------------------*//****************************************************************************** PUBLIC FUNCTION DEFINITIONS*****************************************************************************//*F**************************************************************************** NAME:   EMIF_Init()** DESCRIPTION: Setup the TEB EMIF A and B.       *       * NOTES:*   *F***************************************************************************/void EMIF_Init( void ){    EMIFA_Config EmifA;    EMIFB_Config EmifB;	EMIFA_getConfig( &EmifA );	EmifA.gblctl =  0x0001307C;	EmifA.cectl0 =  0xffffffdf;	EmifA.sdctl  =  0x47116000;	EmifA.sdtim  =  0x00000600;	EmifA.sdext  =  0x00054549;		EMIFA_config( &EmifA );		EMIFB_getConfig( &EmifB );	EmifB.gblctl = 0x0001307c;	EmifB.cectl0 = 0xffffff03;	EmifB.cectl1 = 0xffffff03;	EMIFB_config( &EmifB );		return;}

⌨️ 快捷键说明

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