123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- /**************************************************************************************************
-
- Phyplus Microelectronics Limited confidential and proprietary.
- All rights reserved.
- IMPORTANT: All rights of this software belong to Phyplus Microelectronics
- Limited ("Phyplus"). Your use of this Software is limited to those
- specific rights granted under the terms of the business contract, the
- confidential agreement, the non-disclosure agreement and any other forms
- of agreements as a customer or a partner of Phyplus. You may not use this
- Software unless you agree to abide by the terms of these agreements.
- You acknowledge that the Software may not be modified, copied,
- distributed or disclosed unless embedded on a Phyplus Bluetooth Low Energy
- (BLE) integrated circuit, either as a product or is integrated into your
- products. Other than for the aforementioned purposes, you may not use,
- reproduce, copy, prepare derivative works of, modify, distribute, perform,
- display or sell this Software and/or its documentation for any purposes.
- YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
- PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
- INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
- NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
- PHYPLUS OR ITS SUBSIDIARIES BE LIABLE OR OBLIGATED UNDER CONTRACT,
- NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
- LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
- INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
- OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
- OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
- (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
-
- **************************************************************************************************/
- /**************************************************************************************************
- Filename: comdef.h
- Revised:
- Revision:
- Description: Type definitions and macros.
-
- **************************************************************************************************/
- #ifndef COMDEF_H
- #define COMDEF_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /*********************************************************************
- * INCLUDES
- */
- //#include "precompile_cfg.h"
-
- /* HAL */
-
- #include "types.h"
- #include "hal_defs.h"
- //#include "log.h"
-
- /*********************************************************************
- * Lint Keywords
- */
- #define VOID (void)
- #define NULL_OK
- #define INP
- #define OUTP
- #define UNUSED
- #define ONLY
- #define READONLY
- #define SHARED
- #define KEEP
- #define RELAX
- /*********************************************************************
- * CONSTANTS
- */
- #ifndef false
- #define false 0
- #endif
- #ifndef true
- #define true 1
- #endif
- #ifndef CONST
- #define CONST const
- #endif
- #ifndef GENERIC
- #define GENERIC
- #endif
- /*** Generic Status Return Values ***/
- #define SUCCESS 0x00
- #define FAILURE 0x01
- #define INVALIDPARAMETER 0x02
- #define INVALID_TASK 0x03
- #define MSG_BUFFER_NOT_AVAIL 0x04
- #define INVALID_MSG_POINTER 0x05
- #define INVALID_EVENT_ID 0x06
- #define INVALID_INTERRUPT_ID 0x07
- #define NO_TIMER_AVAIL 0x08
- #define NV_ITEM_UNINIT 0x09
- #define NV_OPER_FAILED 0x0A
- #define INVALID_MEM_SIZE 0x0B
- #define NV_BAD_ITEM_LEN 0x0C
- /*********************************************************************
- * TYPEDEFS
- */
- // Generic Status return
- typedef uint8 Status_t;
- // Data types
- typedef int32 int24;
- typedef uint32 uint24;
- /*********************************************************************
- * Global System Events
- */
- #define SYS_EVENT_MSG 0x8000 // A message is waiting event
- /*********************************************************************
- * Global Generic System Messages
- */
- #define KEY_CHANGE 0xC0 // Key Events
- // OSAL System Message IDs/Events Reserved for applications (user applications)
- // 0xE0 – 0xFC
- /*********************************************************************
- * MACROS
- */
- /*********************************************************************
- * GLOBAL VARIABLES
- */
- /*********************************************************************
- * FUNCTIONS
- */
- /*********************************************************************
- *********************************************************************/
- #ifdef __cplusplus
- }
- #endif
- #endif /* COMDEF_H */
|