flashgo.h

来自「ti的数字电视芯片 tvp9000的源码」· C头文件 代码 · 共 63 行

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