8051_param_table.c 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /*******************************************************************************
  2. * @file 8051_param_table.c
  3. * @brief This file discripe the customer data which 8051 use.
  4. * @note Copyright (c) 2013 sunmedia Inc.
  5. * All rights reserved.
  6. * @date 2013/10/09
  7. ********************************************************************************/
  8. #include "drv_ir_def.h"
  9. #include "pin_config.h"
  10. #include "ir_map.h"
  11. #include <ir_protocol_def.h>
  12. #include "ir_factory.h"
  13. #include <Customization.h>
  14. #include "subcustomer_setting.h"
  15. #include "keypad_mapping_table.h"
  16. #ifdef IR_PROTOCOL_PHILLIPS
  17. #include "irset_Phillips.h"
  18. #define OP_IRSET OP_IRSET_PHILLIPS
  19. #endif
  20. #ifdef IR_PROTOCOL_Phillips_RC6
  21. #include "irset_Phillipsrc6.h"
  22. #ifdef OP_IRSET
  23. #define OP_IR2SET OP_IRSET_PHILLIPS_RC6
  24. #else
  25. #define OP_IRSET OP_IRSET_PHILLIPS_RC6
  26. #endif
  27. #endif
  28. #ifdef IR_PROTOCOL_SONY
  29. #include "irset_Sony.h"
  30. #ifdef OP_IRSET
  31. #define OP_IR2SET OP_IRSET_SONY
  32. #else
  33. #define OP_IRSET OP_IRSET_SONY
  34. #endif
  35. #endif
  36. #ifdef IR_PROTOCOL_JVC
  37. #include "irset_JVC.h"
  38. #ifdef OP_IRSET
  39. #define OP_IR2SET OP_IRSET_JVC
  40. #else
  41. #define OP_IRSET OP_IRSET_JVC
  42. #endif
  43. #endif
  44. #ifdef IR_PROTOCOL_SHARP
  45. #include "irset_Sharp.h"
  46. #ifdef OP_IRSET
  47. #define OP_IR2SET OP_IRSET_SHARP
  48. #else
  49. #define OP_IRSET OP_IRSET_SHARP
  50. #endif
  51. #endif
  52. #ifdef IR_PROTOCOL_SAMPO
  53. #include "irset_Sampo.h"
  54. #ifdef OP_IRSET
  55. #define OP_IR2SET OP_IRSET_SAMPO
  56. #else
  57. #define OP_IRSET OP_IRSET_SAMPO
  58. #endif
  59. #endif
  60. #ifdef IR_PROTOCOL_RCA
  61. #include "irset_RCA.h"
  62. #ifdef OP_IRSET
  63. #define OP_IR2SET OP_IRSET_RCA
  64. #else
  65. #define OP_IRSET OP_IRSET_RCA
  66. #endif
  67. #endif
  68. #ifdef IR_PROTOCOL_TOSHIBA
  69. #include "irset_Toshiba.h"
  70. #ifdef OP_IRSET
  71. #define OP_IR2SET OP_IRSET_TOSHIBA
  72. #else
  73. #define OP_IRSET OP_IRSET_TOSHIBA
  74. #endif
  75. #endif
  76. #ifdef IR_PROTOCOL_X_SAT
  77. #include "irset_X_SAT.h"
  78. #ifdef OP_IRSET
  79. #define OP_IR2SET OP_IRSET_X_SAT
  80. #else
  81. #define OP_IRSET OP_IRSET_X_SAT
  82. #endif
  83. #endif
  84. #ifdef IR_PROTOCOL_TOSHIBA2
  85. #include "irset_Toshiba2.h"
  86. #ifdef OP_IRSET
  87. #define OP_IR2SET OP_IRSET_TOSHIBA2
  88. #else
  89. #define OP_IRSET OP_IRSET_TOSHIBA2
  90. #endif
  91. #endif
  92. #ifdef IR_PROTOCOL_NEC
  93. #include "irset_Nec.h"
  94. #ifdef OP_IRSET
  95. #define OP_IR2SET OP_IRSET_NEC
  96. #else
  97. #define OP_IRSET OP_IRSET_NEC
  98. #endif
  99. #endif
  100. #ifdef IR_PROTOCOL_NEC_SAMSUNG
  101. #include "irset_Nec_ samsung.h"
  102. #ifdef OP_IRSET
  103. #define OP_IR2SET OP_IRSET_NEC_samsung
  104. #else
  105. #define OP_IRSET OP_IRSET_NEC_samsung
  106. #endif
  107. #endif
  108. #ifdef IR_PROTOCOL_KONKA
  109. #include "irset_Konka.h"
  110. #ifdef OP_IRSET
  111. #define OP_IR2SET OP_IRSET_KONKA
  112. #else
  113. #define OP_IRSET OP_IRSET_KONKA
  114. #endif
  115. #endif
  116. #ifdef IR_PROTOCOL_PANASONIC
  117. #include "irset_Panasonic.h"
  118. #ifdef OP_IRSET
  119. #define OP_IR2SET OP_IRSET_Panasonic
  120. #else
  121. #define OP_IRSET OP_IRSET_Panasonic
  122. #endif
  123. #endif
  124. #ifdef IR_PROTOCOL_SHARP2
  125. #include "irset_Sharp2.h"
  126. #ifdef OP_IRSET
  127. #define OP_IR2SET OP_IRSET_SHARP2
  128. #else
  129. #define OP_IRSET OP_IRSET_SHARP2
  130. #endif
  131. #endif
  132. #ifdef IR_PROTOCOL_Phillips_RC6_6A
  133. #include "irset_Phillipsrc6_6a.h"
  134. #ifdef OP_IRSET
  135. #define OP_IR2SET OP_IRSET_PHILLIPS_RC6_6A
  136. #else
  137. #define OP_IRSET OP_IRSET_PHILLIPS_RC6_6A
  138. #endif
  139. #endif
  140. #ifdef IR_PROTOCOL_TC9012
  141. #include "irset_TC9012.h"
  142. #ifdef OP_IRSET
  143. #define OP_IR2SET OP_IRSET_TC9012
  144. #else
  145. #define OP_IRSET OP_IRSET_TC9012
  146. #endif
  147. #endif
  148. #ifndef OP_IRSET
  149. #include "irset_others.h"
  150. #define OP_IRSET OP_IRSET_OTHER
  151. #endif
  152. static CUSTIMIZATION_TABLE gCust8051ParamTable =
  153. {
  154. //IRCommandType
  155. IR_PROTOCOL_TYPE,
  156. // pIR_Set
  157. OP_IRSET,
  158. #ifdef IR2_PROTOCOL_TYPE
  159. //IRCommandType
  160. IR2_PROTOCOL_TYPE,
  161. // pIR_Set
  162. OP_IR2SET,
  163. #else
  164. 0,
  165. {0, },
  166. #endif
  167. // number of remote controls
  168. CONFIG_ROMOTE_CTL_NUM,
  169. // KEYPAD_PWR_ON_KEY //set 1: 1.98~1.32V */
  170. KEYPAD_PWR_ON_KEY,
  171. // LED_GPIO
  172. GPIO_LED_G_ON_PIN, // Green LED No
  173. 1, //1: GPIO mode, 0: PWM mode
  174. GPIO_LED_R_ON_PIN, // Red LED No
  175. 1, //1: GPIO mode, 0: PWM mode
  176. LED_OnStatus, // Power On LED status
  177. LED_OffStatus, // Power Off LED status
  178. // Panel
  179. GPIO_PANEL_ON_PIN, //Power on gpio pin
  180. PNL_REF_PWM_NO, //backlight gpio pin
  181. PNL_PWM_NO, //Panel PWM, 0: PWM0(GPIO27), 1: PWM1(GPIO15), 2: PWM2(GPIO30), 3: PWM3(GPIO35)
  182. //DVD IR OUT, this macro defined in pin_config.h, set to GPIO_NOT_USE if no need this function
  183. GPIO_DVD_IROUT,
  184. // Custom_self_ID
  185. 0,
  186. // Custom_self_Feature
  187. CUSTOMER_SELF_FEATURE,
  188. // HDMISwitchMap
  189. CONFIG_HDMI_SWITCH,
  190. // HDMI Port HPD Invert Map
  191. CONFIG_HDMIHPDInvertMap,
  192. // HDMIPortMap
  193. CONFIG_HDMI_PORT_MAP,
  194. 0, // [6:0]:Power Control GPIO no
  195. 0, // [7]:Power Control enable 1:enable 0:disable
  196. CONFIG_PANEL_NUM,
  197. KEYPAD0_VOLTAGE_B0,
  198. KEYPAD0_VOLTAGE_B1,
  199. KEYPAD0_VOLTAGE_B2,
  200. KEYPAD1_VOLTAGE_B0,
  201. KEYPAD1_VOLTAGE_B1,
  202. KEYPAD1_VOLTAGE_B2,
  203. #ifdef CONFIG_SUPPORT_ETHERNET
  204. // Reserved space
  205. {0, },
  206. {0x55, 0xAA, 0xAA, 0x55, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55}, //Mac
  207. #else
  208. // Reserved space
  209. {0, },
  210. #endif
  211. // KEYPAD LEVEL
  212. R_MLKEY_0_LEVEL,
  213. R_MLKEY_4_LEVEL,
  214. R_MLKEY_8_LEVEL,
  215. {0, },
  216. POWERON_KEY_SETS,
  217. // Factory IR key code mapping for switch multi panel
  218. { CONFIG_PANEL_NUM, FACTORY_IR_MULTIPANEL_SWITCH_KEYMAP},
  219. };