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

📄 flashgo.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
字号:
/********************************************************************* 
*    Property of Texas Instruments Incorporated, Copyright 2000
*    All rights reserved
**********************************************************************/
/*********************************************************************
*
* Description:    Include file for FLASH Programming
* 
*
* Function list:
*
**********************************************************************/
/*********************************************************************
*
* $Revision: 1 $
*
* $History: flashGo.h $
* 
*********************************************************************/
#ifndef FLASH_GO_DOT_H
#define FLASH_GO_DOT_H

typedef struct 
{
    short   adr;
    short   data;
} CMDSEQ;

// FLASH STATUS BIT
#define DQ7  (1<<7) 
#define DQ6  (1<<6)
#define DQ5  (1<<5)
#define DQ3  (1<<3)
#define DQ2  (1<<2)

// Segment Size
#define MEG4  ((1024*1024)*4)


/*Function Prototypes*/
static void flashReset(void);
static void writeSequence(const CMDSEQ *cmd);
static unsigned char flashToggleErase(void);
static unsigned char  flashErase(void);
static unsigned char sectorEraseToggle(void);
static unsigned char flashSectorErase(unsigned short sectionNum);
static void getDeviceId(void);
static void flashRead(unsigned short offset,unsigned short *buffer,unsigned long size);
static void flashByPassReset(void);
static unsigned char flashToggle(void);
static unsigned char flashProgram(unsigned long offset,unsigned long dat,unsigned long length);

#endif









⌨️ 快捷键说明

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