| /****************************************************************************** |
| * |
| * Copyright (C) 1999-2012 Broadcom Corporation |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at: |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| * |
| ******************************************************************************/ |
| |
| #ifndef DATA_TYPES_H |
| #define DATA_TYPES_H |
| |
| #include <stdint.h> |
| #include <stdbool.h> |
| |
| #ifndef FALSE |
| # define FALSE false |
| #endif |
| |
| #ifndef TRUE |
| # define TRUE true |
| #endif |
| |
| typedef uint8_t UINT8; |
| typedef uint16_t UINT16; |
| typedef uint32_t UINT32; |
| typedef uint64_t UINT64; |
| |
| typedef int8_t INT8; |
| typedef int16_t INT16; |
| typedef int32_t INT32; |
| typedef bool BOOLEAN; |
| |
| typedef UINT32 TIME_STAMP; |
| |
| #ifdef __arm |
| # define PACKED __packed |
| # define INLINE __inline |
| #else |
| # define PACKED |
| # define INLINE |
| #endif |
| |
| #define BCM_STRCPY_S(x1,x2,x3) strcpy((x1),(x3)) |
| #define BCM_STRNCPY_S(x1,x2,x3,x4) strncpy((x1),(x3),(x4)) |
| |
| #endif |