interrupt_dmac.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : Interrupt program for RX62N
  3. * File Name : Interrupt_DMAC.c
  4. * Version : 1.02
  5. * Contents : Interrupt handlers for the DMAC channels
  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_dmac.h"
  23. #include "r_pdl_definitions.h"
  24. #include "r_pdl_user_definitions.h"
  25. /*""FUNC COMMENT""***************************************************
  26. * Module outline : DMAC interrupt processing
  27. *-------------------------------------------------------------------
  28. * Declaration : void Interrupt_DMACn(void)
  29. *-------------------------------------------------------------------
  30. * Function : Interrupt processing function for DMAC channel n
  31. *-------------------------------------------------------------------
  32. * Argument : Nothing
  33. *-------------------------------------------------------------------
  34. * Return value : Nothing
  35. *-------------------------------------------------------------------
  36. * Input :
  37. * Output :
  38. *-------------------------------------------------------------------
  39. * Use function : DMAC_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_DMAC_DMAC0I
  48. __fast_interrupt void Interrupt_DMAC0(void)
  49. #else
  50. #pragma vector = VECT_DMAC_DMAC0I
  51. __interrupt void Interrupt_DMAC0(void)
  52. #endif
  53. {
  54. /* Call the user function */
  55. if (rpdl_DMAC_callback_func[0] != PDL_NO_FUNC)
  56. {
  57. rpdl_DMAC_callback_func[0]();
  58. }
  59. }
  60. #if FAST_INTC_VECTOR == VECT_DMAC_DMAC1I
  61. __fast_interrupt void Interrupt_DMAC1(void)
  62. #else
  63. #pragma vector = VECT_DMAC_DMAC1I
  64. __interrupt void Interrupt_DMAC1(void)
  65. #endif
  66. {
  67. /* Call the user function */
  68. if (rpdl_DMAC_callback_func[1] != PDL_NO_FUNC)
  69. {
  70. rpdl_DMAC_callback_func[1]();
  71. }
  72. }
  73. #if FAST_INTC_VECTOR == VECT_DMAC_DMAC2I
  74. __fast_interrupt void Interrupt_DMAC2(void)
  75. #else
  76. #pragma vector = VECT_DMAC_DMAC2I
  77. __interrupt void Interrupt_DMAC2(void)
  78. #endif
  79. {
  80. /* Call the user function */
  81. if (rpdl_DMAC_callback_func[2] != PDL_NO_FUNC)
  82. {
  83. rpdl_DMAC_callback_func[2]();
  84. }
  85. }
  86. #if FAST_INTC_VECTOR == VECT_DMAC_DMAC3I
  87. __fast_interrupt void Interrupt_DMAC3(void)
  88. #else
  89. #pragma vector = VECT_DMAC_DMAC3I
  90. __interrupt void Interrupt_DMAC3(void)
  91. #endif
  92. {
  93. /* Call the user function */
  94. if (rpdl_DMAC_callback_func[3] != PDL_NO_FUNC)
  95. {
  96. rpdl_DMAC_callback_func[3]();
  97. }
  98. }
  99. /* End of file */