/*% F$ O: S6 E* z7 E
* Copyright 2006 by Texas Instruments Incorporated.
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
* @(#) DSP/BIOS_Kernel 5,2,3,14 10-05-2006 (cuda-r14)DSP交流网 DSP学习第一论坛 DSP技术应用与推广平台 DSP开发服务平台 - h7 ]- V' A4 A$ o4 }$ a
*/6 D. K0 T) {9 a+ A7 F% w; b
/* O$ r# d# V/ V* v' D a
* ======== tistdtypes.h ========
*4 ~3 x e3 V8 a
*/" A& x! d L$ i, ]/ i6 g, _# m
www.hellodsp.com1 h) // O. /& w D# j
/*DSP交流网 DSP学习第一论坛 DSP技术应用与推广平台 DSP开发服务平台 " ?# h. v( H" U: b8 C* n! F
* These types are also defined by other TI components. They are bracketed
* with _TI_STD_TYPES to avoid warnings for duplicate definition. The
* The Uint16, etc. definitions were provided in early 2.x versions of CSL
* that did not have _TI_STD_TYPES protection.
*
* You may get warnings about duplicate type definitions when using this
* header file with 2.x CSL. You can use the '-pds303' compiler option to
* suppress these warnings." X) [9 x/ ?$ J7 o: p3 u: U# W- X
*/1 c0 L8 f# t. B1 }: E" P
#ifndef _TI_STD_TYPES
#define _TI_STD_TYPES+ e9 z- d$ Q/ t( g& ^
/*& P. ^/ Q+ B. _0 R% ^+ N
* Aliases for standard C typeswww.hellodsp.com, C% s; h7 H# f8 X, u
*/www.hellodsp.com+ Y: U" Q# A, Z' r: x$ ?
typedef int Int;: / @. r' E E& s
typedef unsigned Uns;
typedef char Char;1 I1 W" U4 d- i) b
/* pointer to null-terminated character sequence */
typedef char *String;
typedef void *Ptr; /* pointer to arbitrary type */
typedef unsigned short Bool; /* boolean */
/*
* Uint8, Uint16, Uint32, etc are defined to be "smallest unit of
* available storage that is large enough to hold unsigned or integer- V6 }6 M, {: L1 p* R7 /
* of specified size".) r! k& T: r5 J; m
*/2 e7 F+ L+ l6 S' G" I3 Y @
L. Y& Q6 V @( b$ _1 L
/* Handle the 6x ISA */
#if defined(_TMS320C6X)
/* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */1 F# `- S$ `/ m( J- d. @8 /3 x/ P
typedef unsigned int Uint32;
typedef unsigned short Uint16;
typedef unsigned char Uint8;DSP交流网 DSP学习第一论坛 DSP技术应用与推广平台 DSP开发服务平台 ( r0 ~. x6 [" d- c
/* Signed integer definitions (32bit, 16bit, 8bit) follow... */$ H3 g! C2 /2 ?' Q/ s- o ^
typedef int Int32;www.hellodsp.com# G7 C- ^* p% N% q" e- |
typedef short Int16;
typedef char Int8;+ f' l* K6 P0 n4 d
; c1 o! @7 T# o7 a) {" ?" L
/* Handle the 54x, 55x and 28x ISAs */5 j, ?9 v d z. L/ E
#elif defined(_TMS320C5XX) || defined(__TMS320C55X__)! o) v7 E1 k4 U: /, ^6 t& V0 d% W
/* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */' u" M0 m0 /8 b7 V7 p
typedef unsigned long Uint32;www.hellodsp.com; T2 `+ M: S& D# G
typedef unsigned short Uint16;
typedef unsigned char Uint8;6 Y+ |) f' t9 K! S) u* Q3 d# U0 B
/* Signed integer definitions (32bit, 16bit, 8bit) follow... */
typedef long Int32;* e( M% c$ ]. i! I/ S! E! }
typedef short Int16;
typedef char Int8;
5 ]! @5 K" c+ s% f" k
#elif defined(_TMS320C28X)
/* Unsigned integer definitions (32bit, 16bit, 8bit) follow... */
typedef unsigned long Uint32;
typedef unsigned int Uint16;: q# Q$ D% T2 p6 ]3 o* /# ~
typedef unsigned char Uint8;+ k& `2 F- t& t6 U
/* Signed integer definitions (32bit, 16bit, 8bit) follow... */
typedef long Int32;
typedef int Int16;- D5 }7 j6 _$ r& f3 w
typedef char Int8;0 ]; |5 T0 _* G
#else
/* Other ISAs not supported */7 t) F! S% i ]6 U* q7 K
#error <tistdtypes.h> is not supported for this target
#endif /* defined(_6x_) */
#endif /* _TI_STD_TYPES */
Sm开头的表示8-bit类型;
Md开头的表示16-bit类型;
Lg开头的表示32-bit类型;
Int表示有符号整型;- A/ ~: _( r9 x1 z7 F8 [: v
Uns表示无符号类型;
Bits表示按bit计算类型;1 O8