|
- /*
- * File: PushBtnMgr.h
- * Author: JF
- *
- * Created on February 23, 2025, 12:33 PM
- */
-
- #ifndef PUSHBTNMGR_H
- #define PUSHBTNMGR_H
- #include "BoardCfg.h"
- #include "define.h"
- #include "AudioConsole.h"
-
- #define PUSHBTN_DEBOUNCE_TIMEOUT 50 //millisecs
-
-
- #define AUDIO_CONSOLE_LINK_Z2_BTN PUSH_BUTTON_INPUT1_PIN
- #define AUDIO_CONSOLE_MAIN_PWR_BTN PUSH_BUTTON_INPUT2_PIN
- #define AUDIO_CONSOLE_Z2_PWR_BTN PUSH_BUTTON_INPUT3_PIN
-
- typedef struct BtnState
- {
- int BtnState;
- bool Debouncing;
- }BtnState_t;
-
-
-
- void PushButtonMgrTick();
- void PushButtonMgrInit();
-
-
-
- #endif /* PUSHBTNMGR_H */
|