25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

36 satır
588 B

  1. /*
  2. * File: PushBtnMgr.h
  3. * Author: JF
  4. *
  5. * Created on February 23, 2025, 12:33 PM
  6. */
  7. #ifndef PUSHBTNMGR_H
  8. #define PUSHBTNMGR_H
  9. #include "BoardCfg.h"
  10. #include "define.h"
  11. #include "AudioConsole.h"
  12. #define PUSHBTN_DEBOUNCE_TIMEOUT 50 //millisecs
  13. #define AUDIO_CONSOLE_LINK_Z2_BTN PUSH_BUTTON_INPUT3_PIN
  14. #define AUDIO_CONSOLE_MAIN_PWR_BTN PUSH_BUTTON_INPUT1_PIN
  15. #define AUDIO_CONSOLE_Z2_PWR_BTN PUSH_BUTTON_INPUT2_PIN
  16. typedef struct BtnState
  17. {
  18. int BtnState;
  19. bool Debouncing;
  20. }BtnState_t;
  21. void PushButtonMgrTick();
  22. void PushButtonMgrInit();
  23. #endif /* PUSHBTNMGR_H */