📄 targetconfig.h
字号:
/*******************************************************************************
* Copyright 2004-2005 - Software Design Solutions, Inc. All rights reserved.
*
* Portions of this work have been provided under license with Texas
* Instruments Inc.
*
* Target specific initialization details
* C5402 DSK with 256K x 16 STMicro m29W400BT Flash at word address 0x8000
* in (8) 32K pages
*
******************************************************************************/
#ifndef _TARGETCONFIG_H
#define _TARGETCONFIG_H
#include "type.h"
/*
* Empty definition for TARGET_INITIALIZE()
*/
#define TARGET_INITIALIZE()
/*
* Set wait states for external RAM (EXMEM_WAITS) and Flash memory.
*/
#define EXMEM_WAITS() {extern void dspInitEx(void); dspInitEx(); }
#define FLASH_WAITS() {extern void dspInitFl(void); dspInitFl(); }
#define EDITFLASHPERMIT 0 /* 1 - allow FBTC to edit individual flash
memory locations */
#define BYTESPERMAU 2 /* How many bytes in an addressable unit of
data memory */
#define ERASEESTIMATE 7 /* Number of seconds to erase the entire
flash */
/**
* Type of data that the flash contains
* C5402 program memory is 16 bit words
*/
typedef u16 FLASH_DATA_TYPE;
/**
* Type of data that is contained in the FBTC message buffer
* C5402 expects the message buffer to contain 16 bit words of data
*/
typedef u16 MSG_DATA_TYPE;
/**
* An integer that is the same size as a pointer. Solely used for
* casting from larger ints to pointer without generating a warning.
* Use with caution.
*/
typedef u16 PTR_SIZED_INT;
/**
* FLASH ADDRESSING (Word Addresses)
* 0x08000-0x0ffff Block 0
* 0x10000-0x17fff Block 1
* 0x18000-0x1ffff Block 2
* 0x20000-0x27fff Block 3
* 0x28000-0x2ffff Block 4
* 0x30000-0x37fff Block 5
* 0x38000-0x3ffff Block 6
* 0x40000-0x47fff Block 7
*/
#define FLBASE 0x8000
#define FLPAGELEN 0x8000
#define FLSIZEBYTES 0x00080000UL
#endif // __TARGET_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -