Sn74lvc573.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*********************************************************************************************************
  2. * 模块名称:Key.h
  3. * 摘 要:Key模块,进行独立按键初始化,以及按键扫描函数实现
  4. * 当前版本:1.0.0
  5. * 作 者:Leyutek(COPYRIGHT 2018 - 2021 Leyutek. All rights reserved.)
  6. * 完成日期:2021年07月01日
  7. * 内 容:
  8. * 注 意:
  9. **********************************************************************************************************
  10. * 取代版本:
  11. * 作 者:
  12. * 完成日期:
  13. * 修改内容:
  14. * 修改文件:
  15. *********************************************************************************************************/
  16. #ifndef _SN74LVC573_H_
  17. #define _SN74LVC573_H_
  18. /*********************************************************************************************************
  19. * 包含头文件
  20. *********************************************************************************************************/
  21. #include "gd32e230x_conf.h"
  22. /*********************************************************************************************************
  23. * 宏定义
  24. *********************************************************************************************************/
  25. #define LOCK_LE_CH_RCU GPIOB
  26. #define LOCK_OE_RCU GPIOA
  27. #define LOCK_OE GPIO_PIN_0
  28. #define LOCK_LE GPIO_PIN_14
  29. #define LOCK_CHECK GPIO_PIN_12
  30. #define LOCK gpio_bit_set(LOCK_LE_CH_RCU, LOCK_LE)
  31. #define BUFF gpio_bit_reset(LOCK_LE_CH_RCU, LOCK_LE)
  32. /*********************************************************************************************************
  33. * 枚举结构体
  34. *********************************************************************************************************/
  35. /*********************************************************************************************************
  36. * API函数声明
  37. *********************************************************************************************************/
  38. void Init74Lvc(void); //初始化74lvc573的IO
  39. #endif