📄 uart_handler.c
字号:
/****************************************************************************************************
* Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
* File: uart_handler.c
*
* Description:
* =========
*
****************************************************************************************************/
#include "Config.h" // Global Configuration - do not remove!
#include "include\sysdefs.h" // Global definition - do not remove!
/****************************************************************************************************
* INCLUDE FILES
****************************************************************************************************/
// Include C Standard
// Include project specific
#ifdef OEC_UART_SUPPORT
#include "Kernel\ker_api.h"
#include "Kernel\EventDef.h"
#include "Playcore\Coremain\coremain.h"
#include "Playcore\Coremain\coregdef.h"
#include "UI_Manager\UART_Handler\uart_handler.h"
#include "UI_Manager\UART_Handler\uart_handler_config.h"
#include "UI_Manager\UI_Input\ui_input_uart.h"
/****************************************************************************************************
* DEFINITION: Private named constants
****************************************************************************************************/
/****************************************************************************************************
* DEFINITION: Private macros
****************************************************************************************************/
#ifdef _DEBUG
#undef IFTRACE
#define IFTRACE if (gTraceUI)
#include "Debug\DbgMain.h"
#endif //_DEBUG
/****************************************************************************************************
* DEFINITION: Private typedefs
****************************************************************************************************/
/****************************************************************************************************
* DEFINITION: Public (global) variables
****************************************************************************************************/
/****************************************************************************************************
* DEFINITION: Private (static) variables
****************************************************************************************************/
/****************************************************************************************************
* DECLARATION: Private (static) functions
****************************************************************************************************/
static void _KeyScanHandler(void);
/****************************************************************************************************
* DEFINITION: Public functions
****************************************************************************************************/
#include "UI_Manager\UART_Handler\uart_handler_config.c"
/**********************************************************************************
* Name :
*
* Purpose :
*
* Input :
*
* Return Value :
*
* Description :
*
* Comments :
*
**********************************************************************************/
#pragma argsused
int UART_EventHandler(HDLR_OP op, EVENT event, void *param)
{
switch ( event )
{
case IE_UI_TICK_200:
_KeyScanHandler();
break;
}
return 0;
}
static void _KeyScanHandler(void)
{
// int Sereial_status;
// if (uart_elapsed_time != 0)
{
serial_int_ctl(FALSE);
send_uart_event( serial_int_data );
// uart_elapsed_time = 0;
serial_int_data = 0;
serial_int_ctl(TRUE);
// fw_update_wait = FW_UPDATE_WATI_TIME;
}
}
#endif//OEC_UART_SUPPORT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -