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

📄 flashreset.c

📁 CHP 2 - Real-Time Digital Signal Processing: Implementations and Applications, Second Edition by Sen
💻 C
字号:
// 
//  Project: Experiment 2.10.5 Flash Programming - Chapter 2 
//  File name: flashReset.c   
//  Function: resetFlash()        
//
//  Description: This function resets the C5510 DSK flash memory
//               Note: this function is for AMD: AM29LV400B
//
//  For the book "Real Time Digital Signal Processing: 
//                Implementation and Application, 2nd Ed"
//                By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
//                Publisher: John Wiley and Sons, Ltd
//
//  Tools used: CCS v.2.12.07
//              TMS320VC5510 DSK Rev-C
//

#include "flash.h"

#pragma CODE_SECTION(flashReset, ".text:example:resetFlash");

void flashReset()
{      
  // Reset Flash memory
  *((unsigned short *)FLASH_MEM_BASE) = FLASH_MEM_RESET;
}

⌨️ 快捷键说明

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