A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stm32f10x_irq.h 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * \file stm32f10x_irq.c
  3. * \brief
  4. * Provides an IRQ implementation.
  5. *
  6. * Copyright (C) 2016 Houtouridis Christos <houtouridis.ch@gmail.com>
  7. * All Rights Reserved.
  8. *
  9. * NOTICE: All information contained herein is, and remains
  10. * the property of Houtouridis Christos. The intellectual
  11. * and technical concepts contained herein are proprietary to
  12. * Houtouridis Christos and are protected by copyright law.
  13. * Dissemination of this information or reproduction of this material
  14. * is strictly forbidden unless prior written permission is obtained
  15. * from Houtouridis Christos.
  16. */
  17. #ifndef __stm32f10x_system__h__
  18. #define __stm32f10x_system__h__
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #include <stm32f10x.h>
  23. #include <stm32f10x_exti.h>
  24. /*!
  25. * IRQ enumerator
  26. */
  27. typedef enum {
  28. IRQ0 = 0,
  29. IRQ1,
  30. IRQ2,
  31. IRQ3,
  32. IRQ4,
  33. IRQ5,
  34. IRQ6,
  35. IRQ7,
  36. IRQ8,
  37. IRQ9,
  38. IRQ10,
  39. IRQ11,
  40. IRQ12,
  41. IRQ13,
  42. IRQ14,
  43. IRQ15,
  44. }IRQ_en;
  45. /*!
  46. * IRQ callback function type
  47. */
  48. typedef void (*irq_callback_ft) (void);
  49. extern irq_callback_ft IRQ_Callback[16];
  50. void EXTI9_5_IRQHandler (void);
  51. void IRQ_ctl (IRQ_en irq, uint8_t en);
  52. void IRQ_callback (IRQ_en irq, irq_callback_ft f);
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif // #ifndef __stm32f10x_system__h__