📄 osd_trtbl.c
字号:
////////////////////////////////////////////////////////////////////////////////
// Genesis Microchip, Inc.
// This file was generated by Genesis Workbench. PLEASE DO NOT EDIT MANUALLY
////////////////////////////////////////////////////////////////////////////////
#include "std_inc.h"
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_PowerOffStateTbl[] =
{
{
{ Key_None, 0x00 },
{ Key1, 0x00 }, //PowerKey
OE_PowerOn,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key2, 0x00 }, //PowerKey_GPIO
OE_PowerOn,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_GeneralTrTable[] =
{
{
{ Key_None, 0x00 },
{ Key3, 0x00 }, //One
OE_OneDown,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key4, 0x00 }, //Left
OE_LeftDown,
12,
2,
0x01,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key5, 0x00 }, //Right
OE_RightDown,
12,
2,
0x01,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key1, 0x00 }, //PowerKey
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key6, 0x00 }, //Two
OE_TwoDown,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key7, 0x00 }, //One_GPIO
OE_OneDown,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key8, 0x00 }, //Left_GPIO
OE_LeftDown,
12,
2,
0x01,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key9, 0x00 }, //Right_GPIO
OE_RightDown,
12,
2,
0x01,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key2, 0x00 }, //PowerKey_GPIO
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key10, 0x00 }, //Two_GPIO
OE_TwoDown,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_ValidModeTrTable[] =
{
{
{ Key_None, 0x00 },
{ Key3, 0x00 }, //One
OE_OneDown,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key1, 0x00 }, //PowerKey
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key6, 0x00 }, //Two
OE_HotKey,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key4, 0x00 }, //Left
OE_Brightness,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key11, 0x00 }, //Sad
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key5, 0x00 }, //Right
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key12, 0x64 }, //InputToggle
OE_Factory,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key7, 0x00 }, //One_GPIO
OE_OneDown,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key2, 0x00 }, //PowerKey_GPIO
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key10, 0x00 }, //Two_GPIO
OE_HotKey,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key8, 0x00 }, //Left_GPIO
OE_Brightness,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key7, 0x00 }, //One_GPIO
{ Key13, 0x00 }, //Right_GPIO, One_GPIO
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key7, 0x00 }, //One_GPIO
{ Key14, 0x00 }, //Two_GPIO, One_GPIO
OE_Factory,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key9, 0x00 }, //Right_GPIO
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_NoSyncTrTable[] =
{
{
{ Key_None, 0x00 },
{ Key1, 0x00 }, //PowerKey
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key11, 0x00 }, //Sad
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key2, 0x00 }, //PowerKey_GPIO
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key9, 0x00 }, //Right_GPIO
{ Key15, 0x00 }, //Right_GPIO, Two_GPIO
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key9, 0x00 }, //Right_GPIO
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key5, 0x00 }, //Right
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_SleepStateTrTable[] =
{
{
{ Key_None, 0x00 },
{ Key1, 0x00 }, //PowerKey
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key11, 0x00 }, //Sad
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key2, 0x00 }, //PowerKey_GPIO
OE_PowerOff,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key9, 0x00 }, //Right_GPIO
{ Key15, 0x00 }, //Right_GPIO, Two_GPIO
OE_Aging,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key9, 0x00 }, //Right_GPIO
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key_None, 0x00 },
{ Key5, 0x00 }, //Right
OE_NextInputSource,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
gmt_ST_TRANSLATION_TABLE_ENTRY ROM TrTbl_MLockTransitStateTbl[] =
{
{
{ Key3, 0x00 }, //One
{ Key_None, 0x00 },
OE_OneUp,
0x00,
0x00,
0x00,
TTEF_TableContinues
},
{
{ Key7, 0x00 }, //One_GPIO
{ Key_None, 0x00 },
OE_OneUp,
0x00,
0x00,
0x00,
TTEF_TableEnds
}
};
BYTE ROM KEYPAD_DEBOUNCE_PERIOD = 20;
////////////////////////////////////////////////////////////////////////////////
// Translation tables
////////////////////////////////////////////////////////////////////////////////
gmt_ST_TRANSLATION_TABLE_ENTRY ROM * ROM GlobalTranslTableSet[6] =
{
TrTbl_PowerOffStateTbl,
TrTbl_GeneralTrTable,
TrTbl_ValidModeTrTable,
TrTbl_NoSyncTrTable,
TrTbl_SleepStateTrTable,
TrTbl_MLockTransitStateTbl
};
#define GPIO_1 0x0000
#define GPIO_2 0x0001
#define GPIO_3 0x0002
gmt_ST_GPIO ROM KeyMapping[] =
{
{ GPIO_1, 5 }, //Left_GPIO
{ GPIO_1, 4 }, //One_GPIO
{ GPIO_1, 6 }, //PowerKey_GPIO
{ GPIO_1, 1 }, //Right_GPIO
{ GPIO_1, 0 } //Two_GPIO
};
BYTE ROM B_NUMBER_OF_GPIO_KEYS = NUMBER_OF_GPIO_KEYS;
gmt_ST_GPIO_TRANSLATION ROM GPIOValues[] =
{
{ Left_GPIO, Key8 },
{ One_GPIO, Key7 },
{ PowerKey_GPIO, Key2 },
{ Right_GPIO, Key9 },
{ One_GPIO | Right_GPIO, Key13 },
{ Two_GPIO, Key10 },
{ One_GPIO | Two_GPIO, Key14 },
{ Right_GPIO | Two_GPIO, Key15 }
};
BYTE ROM NUMBER_OF_GPIOValues = 8;
ST_ADC ROM ADC_1Values[] =
{
{ 0x17, Key5 }, //Right
{ 0x2b, Key4 }, //Left
{ 0x52, Key12 }, //InputToggle
{ 0x64, Key3 }, //One
{ 0x8c, Key1 }, //PowerKey
{ 0xc8, Key6 }, //Two
{ 0xd8, Key11 } //Sad
};
BYTE ROM NUMBER_OF_ADC_1Values = 7;
ST_ADC ROM ADC_2Values[] =
{
{ 0, 0 } //Empty
};
BYTE ROM NUMBER_OF_ADC_2Values = 0;
ST_ADC ROM ADC_3Values[] =
{
{ 0, 0 } //Empty
};
BYTE ROM NUMBER_OF_ADC_3Values = 0;
ST_PORTS_MIXED_TRANSLATION ROM MultiplePortsValuesTranslation[] =
{
{
{ Key_None, Key_None, Key_None, Key_None }, //No Combinations
Key_None
}
};
BYTE ROM NUMBER_OF_MultiplePortsValuesTranslation = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -