📄 dsp281x_type.h
字号:
/******************************************************************************
* *
* TYPES.H *
* *
* This file contains common type declarations, compatible *
* with standard Microsoft/Windows declarations, and with *
* the format of EMON's stack records. *
* *
******************************************************************************
* *
* Copyright 1996 Advanced Micro Devices, Inc. *
* *
* This software is the property of Advanced Micro Devices, Inc (AMD) which *
* specifically grants the user the right to modify, use and distribute this *
* software provided this notice is not removed or altered. All other rights *
* are reserved by AMD. *
* *
* AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS *
* SOFTWARE. IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL *
* DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR *
* USE OF THIS SOFTWARE. *
* *
* So that all may benefit from your experience, please report any problems *
* or suggestions about this software back to AMD. Please include your name, *
* company, telephone number, AMD product requiring support and question or *
* problem encountered. *
* *
* Advanced Micro Devices, Inc. Worldwide support and contact *
* Logic Products Division information available at: *
* Systems Engineering *
* 5204 E. Ben White Blvd. http://www.amd.com/html/support/techsup.html *
* Austin, TX 78741 *
*****************************************************************************/
#ifndef _dsp281x_types_h_
#define _dsp281x_types_h_
/*
Data types are defined to be reasonably compatible with
Microsoft's standard Windows definitions.
*/
#define DEBUG
typedef unsigned long DWORD;
typedef unsigned short WORD;
typedef unsigned char BYTE;
typedef DWORD ULONG;
typedef WORD USHORT;
typedef unsigned int size_t;
typedef WORD BOOL;
typedef WORD (far *FUNCPTR)();
typedef char * PSTR;
typedef void far * LPVOID;
typedef DWORD far * LPDWORD;
typedef WORD far * LPWORD;
typedef BYTE far * LPBYTE;
typedef BOOL far * LPBOOL;
typedef char far * LPSTR;
typedef const char far * LPCSTR;
typedef void * PVOID;
typedef DWORD * PDWORD;
typedef WORD * PWORD;
typedef BYTE * PBYTE;
typedef BOOL * PBOOL;
typedef char * PSTR;
typedef const char * PCSTR;
/*Static variables which don't change (primarily strings) are stored
in the code segment so that they do not occupy RAM during operation.
*/
#define ROM const
typedef ROM char ROMCHAR;
typedef ROM BYTE ROMBYTE;
typedef ROM WORD ROMWORD;
typedef ROM DWORD ROMDWORD;
typedef ROM char * PROMCHAR; /* Pointer to rom based string*/
#ifndef NULL
#define NULL ((void*)0)
#endif
#if defined(DEBUG) || defined(_DEBUG) || defined(ALL_PUBLICS)
#define STATIC
#else
#define STATIC static
#endif
#define TRUE 1
#define FALSE 0
#define ASCII_CR 0x0d
#define ASCII_LF 0x0a
#define ASCII_BS 0x08
#define ASCII_BELL 0x07
#define ASCII_TAB 0x09
#define ASCII_XON 0x11
#define ASCII_XOFF 0x13
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -