1
0

interrupt_poe.c 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : Interrupt program for RX62N
  3. * File Name : Interrupt_POE.c
  4. * Version : 1.02
  5. * Contents : Interrupt handlers for the Port Output Enable module
  6. * Customer :
  7. * Model :
  8. * Order :
  9. * CPU : RX
  10. * Compiler : RXC
  11. * OS : Nothing
  12. * Programmer :
  13. * Note :
  14. ************************************************************************
  15. * Copyright, 2011. Renesas Electronics Corporation
  16. * and Renesas Solutions Corporation
  17. ************************************************************************
  18. * History : 2011.04.08
  19. * : Ver 1.02
  20. * : CS-5 release.
  21. *""FILE COMMENT END""**************************************************/
  22. #include "r_pdl_poe.h"
  23. #include "r_pdl_definitions.h"
  24. #include "r_pdl_user_definitions.h"
  25. /*""FUNC COMMENT""***************************************************
  26. * Module outline : POE interrupt processing
  27. *-------------------------------------------------------------------
  28. * Declaration : void Interrupt_OEIn(void)
  29. *-------------------------------------------------------------------
  30. * Function : Interrupt processing function for POE interrupt n
  31. *-------------------------------------------------------------------
  32. * Argument : Nothing
  33. *-------------------------------------------------------------------
  34. * Return value : Nothing
  35. *-------------------------------------------------------------------
  36. * Input :
  37. * Output :
  38. *-------------------------------------------------------------------
  39. * Use function : POE_callback_func[n]
  40. *-------------------------------------------------------------------
  41. * Notes :
  42. *-------------------------------------------------------------------
  43. * History : 2011.04.08
  44. * : Ver 1.02
  45. * : CS-5 release.
  46. *""FUNC COMMENT END""**********************************************/
  47. #if FAST_INTC_VECTOR == VECT_POE_OEI1
  48. __fast_interrupt void Interrupt_OEI1(void)
  49. #else
  50. #pragma vector = VECT_POE_OEI1
  51. __interrupt void Interrupt_OEI1(void)
  52. #endif
  53. {
  54. #ifdef DEVICE_PACKAGE_TFLGA_85
  55. /* This peripheral is not available on the 85-pin package */
  56. nop();
  57. #else
  58. /* Call the user function */
  59. if (rpdl_POE_callback_func[0] != PDL_NO_FUNC)
  60. {
  61. rpdl_POE_callback_func[0]();
  62. }
  63. #endif
  64. }
  65. #if FAST_INTC_VECTOR == VECT_POE_OEI2
  66. __fast_interrupt void Interrupt_OEI2(void)
  67. #else
  68. #pragma vector = VECT_POE_OEI2
  69. __interrupt void Interrupt_OEI2(void)
  70. #endif
  71. {
  72. #ifdef DEVICE_PACKAGE_TFLGA_85
  73. /* This peripheral is not available on the 85-pin package */
  74. nop();
  75. #else
  76. /* Call the user function */
  77. if (rpdl_POE_callback_func[2] != PDL_NO_FUNC)
  78. {
  79. rpdl_POE_callback_func[2]();
  80. }
  81. #endif
  82. }
  83. #if FAST_INTC_VECTOR == VECT_POE_OEI3
  84. __fast_interrupt void Interrupt_OEI3(void)
  85. #else
  86. #pragma vector = VECT_POE_OEI3
  87. __interrupt void Interrupt_OEI3(void)
  88. #endif
  89. {
  90. #ifdef DEVICE_PACKAGE_TFLGA_85
  91. /* This peripheral is not available on the 85-pin package */
  92. nop();
  93. #else
  94. /* Call the user function */
  95. if (rpdl_POE_callback_func[1] != PDL_NO_FUNC)
  96. {
  97. rpdl_POE_callback_func[1]();
  98. }
  99. #endif
  100. }
  101. #if FAST_INTC_VECTOR == VECT_POE_OEI4
  102. __fast_interrupt void Interrupt_OEI4(void)
  103. #else
  104. #pragma vector = VECT_POE_OEI4
  105. __interrupt void Interrupt_OEI4(void)
  106. #endif
  107. {
  108. #ifdef DEVICE_PACKAGE_TFLGA_85
  109. /* This peripheral is not available on the 85-pin package */
  110. nop();
  111. #else
  112. /* Call the user function */
  113. if (rpdl_POE_callback_func[3] != PDL_NO_FUNC)
  114. {
  115. rpdl_POE_callback_func[3]();
  116. }
  117. #endif
  118. }
  119. /* End of file */