1 //////////////////////////////////////////////////////////////////////////////
10 //-----------------------------------------------------------------------------
12 // Target: STM32F103C8
13 // Tool chain: CodeSourcery G++
15 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
25 ///////////////////////////////////////////////////////////////////////////////
33 // ============== Key Analysis Definitions =====================
36 // Keypad processing variables
43 U16 KCount; // Key debounce counter
44 U16 KDebounceVal; // Debounce timing length (number of scans)
45 U16 KHCount; // Key hold counter
46 U16 KTimeChk; // Key time check
55 // -- Key-Event mapping
61 // -- Key code conversion
67 // --------------------------------------
75 // -- Key Code Definitions
88 // Pushbutton processing parameters
97 #define SettingStatus_Initialized 0xF3C5
100 // ===========================================================
102 // ===========================================================
104 extern KEYPAD Keypad;
107 // ===========================================================
108 // Function Declarations
109 // ===========================================================
113 void KeyConvert(KeyScanCode *KSCTab, U16 KSCode);
114 U8 KeyEventMap(U8 keycode, KeyEvent *kvmap);
121 void DoKeyIncH(void);
122 void DoKeyDecH(void);
123 void DoKeySelH(void);