r_pdl_iwdt.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : Independent Watchdog timer API for RX62Nxx
  3. * File Name : r_pdl_iwdt.h
  4. * Version : 1.02
  5. * Contents : IWDT 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_IWDT_H
  23. #define R_PDL_IWDT_H
  24. #include "r_pdl_common_defs_RX62Nxx.h"
  25. /* Function prototypes */
  26. bool R_IWDT_Set(
  27. uint16_t
  28. );
  29. bool R_IWDT_Control(
  30. uint8_t
  31. );
  32. bool R_IWDT_Read(
  33. uint16_t *
  34. );
  35. /* Calculation selection */
  36. #define PDL_IWDT_TIMEOUT_1024 0x0001u
  37. #define PDL_IWDT_TIMEOUT_4096 0x0002u
  38. #define PDL_IWDT_TIMEOUT_8192 0x0004u
  39. #define PDL_IWDT_TIMEOUT_16384 0x0008u
  40. #define PDL_IWDT_CLOCK_OCO_1 0x0010u
  41. #define PDL_IWDT_CLOCK_OCO_16 0x0020u
  42. #define PDL_IWDT_CLOCK_OCO_32 0x0040u
  43. #define PDL_IWDT_CLOCK_OCO_64 0x0080u
  44. #define PDL_IWDT_CLOCK_OCO_128 0x0100u
  45. #define PDL_IWDT_CLOCK_OCO_256 0x0200u
  46. #define PDL_IWDT_REFRESH 0x01u
  47. #endif
  48. /* End of file */