1
0

interrupt_exdmac.c 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : Interrupt program for RX62N
  3. * File Name : Interrupt_EXDMAC.c
  4. * Version : 1.02
  5. * Contents : Interrupt handlers for the EXDMAC 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_exdmac.h"
  23. #include "r_pdl_definitions.h"
  24. #include "r_pdl_user_definitions.h"
  25. /*""FUNC COMMENT""***************************************************
  26. * Module outline : EXDMAC interrupt processing
  27. *-------------------------------------------------------------------
  28. * Declaration : void Interrupt_EXDMACn(void)
  29. *-------------------------------------------------------------------
  30. * Function : Interrupt processing function for EXDMAC channel n
  31. *-------------------------------------------------------------------
  32. * Argument : Nothing
  33. *-------------------------------------------------------------------
  34. * Return value : Nothing
  35. *-------------------------------------------------------------------
  36. * Input :
  37. * Output :
  38. *-------------------------------------------------------------------
  39. * Use function : EXDMAC_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_EXDMAC_EXDMAC0I
  48. __fast_interrupt void Interrupt_EXDMAC0(void)
  49. #else
  50. #pragma vector = VECT_EXDMAC_EXDMAC0I
  51. __interrupt void Interrupt_EXDMAC0(void)
  52. #endif
  53. {
  54. #if defined(DEVICE_PACKAGE_LQFP_100) || defined(DEVICE_PACKAGE_TFLGA_85)
  55. /* This peripheral is not available on the 100-pin or 85-pin packages */
  56. nop();
  57. #else
  58. /* Call the user function */
  59. if (rpdl_EXDMAC_callback_func[0] != PDL_NO_FUNC)
  60. {
  61. rpdl_EXDMAC_callback_func[0]();
  62. }
  63. #endif
  64. }
  65. #if FAST_INTC_VECTOR == VECT_EXDMAC_EXDMAC1I
  66. __fast_interrupt void Interrupt_EXDMAC1(void)
  67. #else
  68. #pragma vector = VECT_EXDMAC_EXDMAC1I
  69. __interrupt void Interrupt_EXDMAC1(void)
  70. #endif
  71. {
  72. #if defined(DEVICE_PACKAGE_LQFP_100) || defined(DEVICE_PACKAGE_TFLGA_85)
  73. /* This peripheral is not available on the 100-pin or 85-pin packages */
  74. nop();
  75. #else
  76. /* Call the user function */
  77. if (rpdl_EXDMAC_callback_func[1] != PDL_NO_FUNC)
  78. {
  79. rpdl_EXDMAC_callback_func[1]();
  80. }
  81. #endif
  82. }
  83. /* End of file */