123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- /*******************************************************************************
- * @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 <ir_protocol_def.h>
- #include "ir_factory.h"
- #include <Customization.h>
- #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_NETWORK
- // Reserved space
- {0, },
- {0, }, //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},
- };
|