L4Dr.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:6k
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*******************************************************************************
- * Filename:
- * ---------
- * KeyMap.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file is intends for This Module defines the L4 interfaces.
- *
- * Author:
- * -------
- * -------
- *
- *==============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *==============================================================================
- *******************************************************************************/
- #ifndef MMI_ON_WIN32
- #ifndef PIXTEL_L4_DR_H
- #define PIXTEL_L4_DR_H
- /*****************************************************************************
- * Include
- *****************************************************************************/
- /* added by JL */
- #include <stdarg.h>
- #include "kal_release.h" /* Basic data type */
- #include "stack_common.h"
- #include "stack_msgs.h"
- #include "app_ltlcom.h" /* Task message communiction */
- #include "stacklib.h" /* Basic type for dll, evshed, stacktimer */
- #include "app_buff_alloc.h"
- #include "stack_timer.h"
- #include "event_shed.h"
- #include "syscomp_config.h"
- #include "task_config.h"
- #include "l4a.h"
- #include "kal_trace.h"
- #include "fat_fs.h"
- #include "stack_config.h"
- #include "custom_config.h"
- #include "l3_inc_enums.h"
- #include "phb_defs.h"
- #include "mmi_msg_struct.h"
- /* end added by JL */
- #include "pixteldatatypes.h"
- /* L4KeyHandle is redirected to mmi_frm_key_handle and defined in KeyBrd.h */
- #include "KeyBrd.h"
- /*****************************************************************************
- * Define
- *****************************************************************************/
- /*****************************************************************************
- * Typedef
- *****************************************************************************/
- /*****************************************************************************
- * Extern Global Variable
- *****************************************************************************/
- /*****************************************************************************
- * Extern Global Function
- *****************************************************************************/
- extern void L4SetClock(rtc_format_struct datetime, oslTaskFuncPtr FuncRspPtr);
- extern void L4SetClockRSP(void *buf);
- extern void L4GetClockTime(oslTaskFuncPtr FuncRspPtr);
- extern void L4GetClockTimeRSP(void *buf);
- extern void L4StartTimer(
- unsigned short nTimerId,
- oslTimerFuncPtr TimerExpiry,
- void *funcArg,
- unsigned long nTimeDuration,
- unsigned char alignment);
- extern void L4StopTimer(unsigned short nTimerId);
- extern void L4StopTimerRSP(void *paraBuff);
- extern void L4StartTimerRSP(void *paraBuff);
- extern void L4InitSerialPort(void);
- extern long L4UARTWrite(kal_uint8 *arrayRx, kal_uint16 size);
- extern long L4UARTRead(kal_uint8 *arrayRx, kal_uint16 size);
- /* extern void SetL4EventHandler(L4FuncPtr funcPtr, U16 eventID); */
- extern void L4NvramWriteRsp(void *buf);
- extern void L4ReadNvram(kal_uint8 gstructtype, kal_uint8 index);
- extern void L4WriteNvram(kal_uint8 gstructtype, void *buf, kal_uint8 index);
- extern void L4NvramReadRsp(void *buf);
- extern void L4InitTimer(void);
- extern void L4StopBaseTimer(void *base_timer_ptr);
- extern void L4StartBaseTimer(void *base_timer_ptr, unsigned int time_out);
- extern MMI_BOOL mmi_frm_is_align_base_timer(void *base_timer_ptr);
- #endif /* PIXTEL_L4_DR_H */
- #endif /* MMI_ON_WIN32 */