interrupt_adc_12.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : 12-bit ADC Interrupt program for RX62Nxx
  3. * File Name : Interrupt_ADC_12.c
  4. * Version : 1.02
  5. * Contents : Interrupt handler for ADC_12
  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_adc_12.h"
  23. #include "r_pdl_definitions.h"
  24. #include "r_pdl_user_definitions.h"
  25. /*""FUNC COMMENT""***************************************************
  26. * Module outline: ADC interrupt processing
  27. *-------------------------------------------------------------------
  28. * Declaration : void Interrupt_ADCn(void)
  29. *-------------------------------------------------------------------
  30. * Function : Interrupt processing function for ADC unit n
  31. *-------------------------------------------------------------------
  32. * Argument : Nothing
  33. *-------------------------------------------------------------------
  34. * Return value : Nothing
  35. *-------------------------------------------------------------------
  36. * Input :
  37. * Output :
  38. *-------------------------------------------------------------------
  39. * Use function : rpdl_ADC_12_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_S12AD_ADI
  48. __fast_interrupt void Interrupt_ADC_12_0(void)
  49. #else
  50. #pragma vector = VECT_S12AD_ADI
  51. __interrupt void Interrupt_ADC_12_0(void)
  52. #endif
  53. {
  54. /* Call the user function */
  55. if (rpdl_ADC_12_callback_func[0] != PDL_NO_FUNC)
  56. {
  57. rpdl_ADC_12_callback_func[0]();
  58. }
  59. }
  60. /* End of file */