omap3530/beagle_drivers/wb/api/include/cyashaldef.h
changeset 27 117faf51deac
equal deleted inserted replaced
26:b7e488c49d0d 27:117faf51deac
       
     1 /* Cypress West Bridge API header file (cyashaldef.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_CYASHALDEF_H_
       
    23 #define _INCLUDED_CYASHALDEF_H_
       
    24 
       
    25 /* Summary
       
    26    If set to TRUE, the basic numeric types are defined by the West Bridge API code
       
    27 
       
    28    Description
       
    29    The West Bridge API relies on some basic integral types to be defined.  These types include
       
    30    uint8_t, int8_t, uint16_t, int16_t, uint32_t, and int32_t.  If this macro is defined the
       
    31    West Bridge API will define these types based on some basic assumptions.  If this value is
       
    32    set and the West Bridge API is used to set these types, the definition of these types must
       
    33    be examined to insure that they are appropriate for the given target architecture and
       
    34    compiler.
       
    35 
       
    36    Notes
       
    37    It is preferred that if the basic platform development environment defines these types
       
    38    that the CY_DEFINE_BASIC_TYPES macro be undefined and the appropriate target system header
       
    39    file be added to the file cyashaldef.h.
       
    40 */
       
    41 #ifndef CY_DEFINE_BASIC_TYPES
       
    42 
       
    43 /*
       
    44  * Include your target system header file that defines the basic types here if at all
       
    45  * possible.
       
    46  */
       
    47 #ifdef __CY_ASTORIA_SCM_KERNEL_HAL__
       
    48 #include <linux/types.h>
       
    49 #else
       
    50 #include <stdint.h>
       
    51 #endif
       
    52 
       
    53 #else
       
    54 
       
    55 /*
       
    56  * Define the basic types.  If these are not defined by your system, define these
       
    57  * here by defining the symbol CY_DEFINE_BASIC_TYPES
       
    58  */
       
    59 typedef signed char int8_t ;
       
    60 typedef signed short int16_t ;
       
    61 typedef signed int int32_t ;
       
    62 typedef unsigned char uint8_t ;
       
    63 typedef unsigned short uint16_t ;
       
    64 typedef unsigned int uint32_t ;
       
    65 
       
    66 /*nxz*/
       
    67 #include <e32def.h>
       
    68 
       
    69 
       
    70 #endif
       
    71 
       
    72 #if !defined(__doxygen__)
       
    73 typedef int CyBool ;
       
    74 #define CyTrue				(1)
       
    75 #define CyFalse				(0)
       
    76 #endif
       
    77 
       
    78 #endif			/* _INCLUDED_CYASHALDEF_H_ */