r_pdl_rtc_RX62Nxx.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : Real-time clock API for RX62Nxx
  3. * File Name : r_pdl_rtc_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : RTC header
  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. #ifndef R_PDL_RTC_RX62Nxx_H
  23. #define R_PDL_RTC_RX62Nxx_H
  24. extern VoidCallBackFunc rpdl_RTC_Periodic_callback_func;
  25. extern VoidCallBackFunc rpdl_RTC_Alarm_callback_func;
  26. /* Library prototypes */
  27. bool R_RTC_CreateAll(
  28. const uint32_t,
  29. const uint32_t,
  30. const uint32_t,
  31. const uint32_t,
  32. const uint32_t,
  33. VoidCallBackFunc const,
  34. const uint8_t,
  35. VoidCallBackFunc const,
  36. const uint8_t
  37. );
  38. bool R_RTC_ControlAll(
  39. const uint32_t,
  40. const uint16_t,
  41. const uint32_t,
  42. const uint32_t,
  43. const uint32_t,
  44. const uint32_t
  45. );
  46. bool R_RTC_ReadAll(
  47. volatile uint8_t * const,
  48. volatile uint32_t * const,
  49. volatile uint32_t * const
  50. );
  51. bool ReturnFalse(void);
  52. /* Macro definitions */
  53. #define R_RTC_Create(a, b, c, d, e, f, g, h, i) \
  54. ( \
  55. ( ((g) <= IPL_MAX) && ((i) <= IPL_MAX) ) ? \
  56. R_RTC_CreateAll( (a), (b), (c), (d), (e), (f), (g), (h), (i) ): \
  57. ReturnFalse() \
  58. )
  59. #define R_RTC_Control(a, b, c, d, e, f) \
  60. ( \
  61. R_RTC_ControlAll( (a), (b), (c), (d), (e), (f) ) \
  62. )
  63. #define R_RTC_Read(a, b, c) \
  64. ( \
  65. R_RTC_ReadAll( (a), (b), (c) ) \
  66. )
  67. #endif
  68. /* End of file */