equal
deleted
inserted
replaced
|
1 /* Cypress West Bridge API header file (cyasdevice.h) |
|
2 ## =========================== |
|
3 ## |
|
4 ## Copyright Cypress Semiconductor Corporation, 2006-2009, |
|
5 ## All Rights Reserved |
|
6 ## UNPUBLISHED, LICENSED SOFTWARE. |
|
7 ## |
|
8 ## CONFIDENTIAL AND PROPRIETARY INFORMATION |
|
9 ## WHICH IS THE PROPERTY OF CYPRESS. |
|
10 ## |
|
11 ## Use of this file is governed |
|
12 ## by the license agreement included in the file |
|
13 ## |
|
14 ## <install>/license/license.txt |
|
15 ## |
|
16 ## where <install> is the Cypress software |
|
17 ## installation root directory path. |
|
18 ## |
|
19 ## =========================== |
|
20 */ |
|
21 |
|
22 #ifndef _INCLUDED_CYASCAST_H_ |
|
23 #define _INCLUDED_CYASCAST_H_ |
|
24 |
|
25 #ifndef __doxygen__ |
|
26 #define CyCastInt2UInt16(v) ((uint16_t)(v)) |
|
27 #if 0 /*nxz*/ |
|
28 #ifdef _DEBUG |
|
29 #define CyCastInt2UInt16(v) (CyAsHalAssert(v < 65536), (uint16_t)(v)) |
|
30 #else /* _DEBUG */ |
|
31 #define CyCastInt2UInt16(v) ((uint16_t)(v)) |
|
32 #endif /* _DEBUG */ |
|
33 #endif |
|
34 |
|
35 #endif /* __doxygen__ */ |
|
36 #endif /* _INCLUDED_CYASCAST_H_ */ |