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

📄 fb.h

📁 基于dm642的flash烧写程序(不用ti的烧写工具flashburn) flash:sst39vf1601
💻 H
字号:
#include "type.h"
// --------------------------------------------------------------------
//                       EXTERNAL ROUTINES
// --------------------------------------------------------------------
extern void     Delay_10_Micro_Seconds();
extern void     Delay_20_Micro_Seconds();
extern void     Delay_150_Nano_Seconds();
extern void     Delay_25_Milli_Seconds();
extern void     Delay_50_Milli_Seconds();
extern void     Delay_150_Nano_Seconds(void);        // delay 150ns
extern void     Delay_1_Microsecond(void);           // delay 1us
extern void     Delay_20_Micro_Seconds(void);        // delay 20us
// --------------------------------------------------------------------


// In some cases, system will assign a device base address for flash only at run time.
// This is the reason that we define BaseAddrs as a variable rather than a CONSTANT.

// The C code in this document contains the following routines in order:
//    Name                            Function

u32 Check_SST_39VF320X(void);       // Check manufacturer and device ID
void  CFI_Query(u16*);               // Read CFI information
void  SecID_Query(u16*, u16*);      // Read both SST SecID and User SecID information
u8  Erase_One_Sector(u32);        // Erase one sector (2K words)
u8  Erase_One_Block (u32);        // Erase one block (32K word)
u8  Erase_Entire_Chip(void);        // Erase the whole chip
int Program_One_Sector (u16*, u32);
u8  Program_One_Word(u16, u32);  // Program one word into device
u8  SecID_Lock_Status(void);        // Check User SecID lock status
u8  User_SecID_Word_Program(u16*, u32, u8); // Program one word into User SecID segment
u8  User_SecID_Lock_Out(void);                   // Lock out User SecID segment
void  Erase_Suspend(void);                         // Temporarily suspend one sector-erase or block-erase
u8  Erase_Resume(void);                          // Resume suspended sector-erase or block-erase
u8  Check_Toggle_Ready (u32, u32);           // Wait until DQ6 stops toggling
u8  Check_Data_Polling (u32, u16, u32);     // Wait until DQ7 outputs true data

void Delay_150_Nano_Seconds(void);        // delay 150ns
void Delay_1_Microsecond(void);           // delay 1us
void Delay_20_Micro_Seconds(void);        // delay 20us





⌨️ 快捷键说明

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