r_pdl_wdt.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : WDT API for RX62Nxx
  3. * File Name : r_pdl_wdt.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_H
  23. #define R_PDL_WDT_H
  24. #include "r_pdl_common_defs_RX62Nxx.h"
  25. /* Function prototypes */
  26. bool R_WDT_Create(
  27. uint16_t,
  28. void *,
  29. uint8_t
  30. );
  31. bool R_WDT_Control(
  32. uint8_t
  33. );
  34. bool R_WDT_Read(
  35. uint8_t *
  36. );
  37. /* Calculation selection */
  38. #define PDL_WDT_PCLK_DIV_4 0x0001u
  39. #define PDL_WDT_PCLK_DIV_64 0x0002u
  40. #define PDL_WDT_PCLK_DIV_128 0x0004u
  41. #define PDL_WDT_PCLK_DIV_512 0x0008u
  42. #define PDL_WDT_PCLK_DIV_2048 0x0010u
  43. #define PDL_WDT_PCLK_DIV_8192 0x0020u
  44. #define PDL_WDT_PCLK_DIV_32768 0x0040u
  45. #define PDL_WDT_PCLK_DIV_131072 0x0080u
  46. /* MCU reset control */
  47. #define PDL_WDT_RESET_DISABLE 0x0100u
  48. #define PDL_WDT_RESET_ENABLE 0x0200u
  49. /* Timer counter control */
  50. #define PDL_WDT_STOP 0x01u
  51. #define PDL_WDT_RESET_COUNTER 0x02u
  52. #endif
  53. /* End of file */