/******************************************************************************* * @file 8051_param_table.c * @brief This file discripe the customer data which 8051 use. * @note Copyright (c) 2013 sunmedia Inc. * All rights reserved. * @date 2013/10/09 ********************************************************************************/ #include "drv_ir_def.h" #include "pin_config.h" #include "ir_map.h" #include #include "ir_factory.h" #include #include "subcustomer_setting.h" #include "keypad_mapping_table.h" #ifdef IR_PROTOCOL_PHILLIPS #include "irset_Phillips.h" #define OP_IRSET OP_IRSET_PHILLIPS #endif #ifdef IR_PROTOCOL_Phillips_RC6 #include "irset_Phillipsrc6.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_PHILLIPS_RC6 #else #define OP_IRSET OP_IRSET_PHILLIPS_RC6 #endif #endif #ifdef IR_PROTOCOL_SONY #include "irset_Sony.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_SONY #else #define OP_IRSET OP_IRSET_SONY #endif #endif #ifdef IR_PROTOCOL_JVC #include "irset_JVC.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_JVC #else #define OP_IRSET OP_IRSET_JVC #endif #endif #ifdef IR_PROTOCOL_SHARP #include "irset_Sharp.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_SHARP #else #define OP_IRSET OP_IRSET_SHARP #endif #endif #ifdef IR_PROTOCOL_SAMPO #include "irset_Sampo.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_SAMPO #else #define OP_IRSET OP_IRSET_SAMPO #endif #endif #ifdef IR_PROTOCOL_RCA #include "irset_RCA.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_RCA #else #define OP_IRSET OP_IRSET_RCA #endif #endif #ifdef IR_PROTOCOL_TOSHIBA #include "irset_Toshiba.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_TOSHIBA #else #define OP_IRSET OP_IRSET_TOSHIBA #endif #endif #ifdef IR_PROTOCOL_X_SAT #include "irset_X_SAT.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_X_SAT #else #define OP_IRSET OP_IRSET_X_SAT #endif #endif #ifdef IR_PROTOCOL_TOSHIBA2 #include "irset_Toshiba2.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_TOSHIBA2 #else #define OP_IRSET OP_IRSET_TOSHIBA2 #endif #endif #ifdef IR_PROTOCOL_NEC #include "irset_Nec.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_NEC #else #define OP_IRSET OP_IRSET_NEC #endif #endif #ifdef IR_PROTOCOL_NEC_SAMSUNG #include "irset_Nec_ samsung.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_NEC_samsung #else #define OP_IRSET OP_IRSET_NEC_samsung #endif #endif #ifdef IR_PROTOCOL_KONKA #include "irset_Konka.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_KONKA #else #define OP_IRSET OP_IRSET_KONKA #endif #endif #ifdef IR_PROTOCOL_PANASONIC #include "irset_Panasonic.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_Panasonic #else #define OP_IRSET OP_IRSET_Panasonic #endif #endif #ifdef IR_PROTOCOL_SHARP2 #include "irset_Sharp2.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_SHARP2 #else #define OP_IRSET OP_IRSET_SHARP2 #endif #endif #ifdef IR_PROTOCOL_Phillips_RC6_6A #include "irset_Phillipsrc6_6a.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_PHILLIPS_RC6_6A #else #define OP_IRSET OP_IRSET_PHILLIPS_RC6_6A #endif #endif #ifdef IR_PROTOCOL_TC9012 #include "irset_TC9012.h" #ifdef OP_IRSET #define OP_IR2SET OP_IRSET_TC9012 #else #define OP_IRSET OP_IRSET_TC9012 #endif #endif #ifndef OP_IRSET #include "irset_others.h" #define OP_IRSET OP_IRSET_OTHER #endif static CUSTIMIZATION_TABLE gCust8051ParamTable = { //IRCommandType IR_PROTOCOL_TYPE, // pIR_Set OP_IRSET, #ifdef IR2_PROTOCOL_TYPE //IRCommandType IR2_PROTOCOL_TYPE, // pIR_Set OP_IR2SET, #else 0, {0, }, #endif // number of remote controls CONFIG_ROMOTE_CTL_NUM, // KEYPAD_PWR_ON_KEY //set 1: 1.98~1.32V */ KEYPAD_PWR_ON_KEY, // LED_GPIO GPIO_LED_G_ON_PIN, // Green LED No 1, //1: GPIO mode, 0: PWM mode GPIO_LED_R_ON_PIN, // Red LED No 1, //1: GPIO mode, 0: PWM mode LED_OnStatus, // Power On LED status LED_OffStatus, // Power Off LED status // Panel GPIO_PANEL_ON_PIN, //Power on gpio pin PNL_REF_PWM_NO, //backlight gpio pin PNL_PWM_NO, //Panel PWM, 0: PWM0(GPIO27), 1: PWM1(GPIO15), 2: PWM2(GPIO30), 3: PWM3(GPIO35) //DVD IR OUT, this macro defined in pin_config.h, set to GPIO_NOT_USE if no need this function GPIO_DVD_IROUT, // Custom_self_ID 0, // Custom_self_Feature CUSTOMER_SELF_FEATURE, // HDMISwitchMap CONFIG_HDMI_SWITCH, // HDMI Port HPD Invert Map CONFIG_HDMIHPDInvertMap, // HDMIPortMap CONFIG_HDMI_PORT_MAP, 0, // [6:0]:Power Control GPIO no 0, // [7]:Power Control enable 1:enable 0:disable CONFIG_PANEL_NUM, KEYPAD0_VOLTAGE_B0, KEYPAD0_VOLTAGE_B1, KEYPAD0_VOLTAGE_B2, KEYPAD1_VOLTAGE_B0, KEYPAD1_VOLTAGE_B1, KEYPAD1_VOLTAGE_B2, #ifdef CONFIG_SUPPORT_ETHERNET // Reserved space {0, }, {0x55, 0xAA, 0xAA, 0x55, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55}, //Mac #else // Reserved space {0, }, #endif // KEYPAD LEVEL R_MLKEY_0_LEVEL, R_MLKEY_4_LEVEL, R_MLKEY_8_LEVEL, {0, }, POWERON_KEY_SETS, // Factory IR key code mapping for switch multi panel { CONFIG_PANEL_NUM, FACTORY_IR_MULTIPANEL_SWITCH_KEYMAP}, };