irq.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * File : irq.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Develop Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://openlab.rt-thread.com/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-01-13 weety first version
  13. */
  14. #ifndef __IRQ_H__
  15. #define __IRQ_H__
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /*
  20. * IRQ line status.
  21. *
  22. * Bits 0-7 are reserved
  23. *
  24. * IRQ types
  25. */
  26. #define IRQ_TYPE_NONE 0x00000000 /* Default, unspecified type */
  27. #define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */
  28. #define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */
  29. #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
  30. #define IRQ_TYPE_LEVEL_HIGH 0x00000004 /* Level high type */
  31. #define IRQ_TYPE_LEVEL_LOW 0x00000008 /* Level low type */
  32. #define IRQ_TYPE_SENSE_MASK 0x0000000f /* Mask of the above */
  33. #define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif