r_pdl_wdt_rx62nxx.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : WDT API for RX62Nxx
  3. * File Name : r_pdl_wdt_RX62Nxx.h
  4. * Version : 1.02
  5. * Contents : WDT API 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_WDT_RX62Nxx_H
  23. #define R_PDL_WDT_RX62Nxx_H
  24. /* Callback function storage */
  25. extern VoidCallBackFunc rpdl_WDT_callback_func;
  26. /* Library prototypes */
  27. bool R_WDT_CreateAll(
  28. const uint16_t,
  29. VoidCallBackFunc const,
  30. const uint8_t
  31. );
  32. bool R_WDT_ControlAll(
  33. const uint8_t
  34. );
  35. bool R_WDT_ReadAll(
  36. volatile uint8_t * const
  37. );
  38. bool ReturnFalse(void);
  39. /* Macro definitions */
  40. #define R_WDT_Create(a, b, c) \
  41. ( \
  42. ( (c) <= IPL_MAX) ? \
  43. R_WDT_CreateAll( (a), (b), (c) ) : \
  44. ReturnFalse() \
  45. )
  46. #define R_WDT_Control(a) \
  47. ( \
  48. R_WDT_ControlAll( (a) ) \
  49. )
  50. #define R_WDT_Read(a) \
  51. ( \
  52. R_WDT_ReadAll( (a) ) \
  53. )
  54. #endif
  55. /* End of file */