flashreset.c

来自「CHP 2 - Real-Time Digital Signal Process」· C语言 代码 · 共 28 行

C
28
字号
// 
//  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 + =
减小字号Ctrl + -
显示快捷键?