📄 f360_flashprimitives.h
字号:
//-----------------------------------------------------------------------------
// F360_FlashPrimitives.h
//-----------------------------------------------------------------------------
// Copyright 2006 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// Program Description:
//
// This program contains several useful utilities for writing and updating
// FLASH memory.
//
// FID: 36X000005
// Target: C8051F36x
// Tool chain: Keil C51 8.00
// Command Line: None
//
//
// Release 1.0
// -Initial Revision (GP / TP)
// -24 OCT 2006
//
//-----------------------------------------------------------------------------
// Open Header #define
//-----------------------------------------------------------------------------
#ifndef _F360_FLASHPRIMITIVES_H_
#define _F360_FLASHPRIMITIVES_H_
//-----------------------------------------------------------------------------
// Structures, Unions, Enumerations, and Type Definitions
//-----------------------------------------------------------------------------
typedef unsigned long ULONG;
typedef unsigned int UINT;
typedef unsigned char UCHAR;
typedef UINT FLADDR;
//-----------------------------------------------------------------------------
// Global Constants
//-----------------------------------------------------------------------------
#ifndef FLASH_PAGESIZE
#define FLASH_PAGESIZE 512
#endif
#ifndef FLASH_TEMP
#define FLASH_TEMP 0x7400L // For 32K Flash devices
//#define FLASH_TEMP 0x3800L // For 16K Flash devices
#endif
#ifndef FLASH_LAST
#define FLASH_LAST 0x7800L // For 32K Flash devices
//#define FLASH_LAST 0x3C00L // For 16K Flash devices
#endif
//-----------------------------------------------------------------------------
// Exported Function Prototypes
//-----------------------------------------------------------------------------
void FLASH_ByteWrite (FLADDR addr, char byte);
unsigned char FLASH_ByteRead (FLADDR addr);
void FLASH_PageErase (FLADDR addr);
//-----------------------------------------------------------------------------
// Close Header #define
//-----------------------------------------------------------------------------
#endif // _F360_FLASHPRIMITIVES_H_
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -