tool_interrupt.h 833 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @file tool_interrupt.h
  3. * @brief 实现中断模块
  4. * This file implements interrupt handling.
  5. *
  6. * @version 0.1
  7. * @date 2021-09-17
  8. *
  9. * @copyright Copyright (c) 2021
  10. *
  11. * This module serves as utility module, don't waste time in reading it.
  12. *
  13. * To enable this module, just define macro 'CSOCP_WITH_INTERRUPT' when compiling it;
  14. * othewise, it is disabled.
  15. *
  16. * \note Notice that this module is needed only during development, and should be disabled
  17. * when used in production.
  18. */
  19. #ifndef __TOOL_INTERRUPT_H__
  20. #define __TOOL_INTERRUPT_H__
  21. /** 创建中断函数句柄 Create interrupt handler */
  22. void c_interrupt_register(void);
  23. /** 删除中断函数句柄 Remove interrupt handler */
  24. void c_interrupt_reset(void);
  25. /** 检查中断操作 Check for interrupt action */
  26. int c_interrupt_check(void);
  27. #endif