r_pdl_pfc.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*""FILE COMMENT""*******************************************************
  2. * System Name : PFC API
  3. * File Name : r_pdl_pfc.h
  4. * Version : 1.02
  5. * Contents : PFC API header
  6. * Customer :
  7. * Model :
  8. * Order :
  9. * CPU : RX
  10. * Compiler : RXC
  11. * OS :
  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_PFC_H
  23. #define R_PDL_PFC_H
  24. #include "r_pdl_common_defs_RX62Nxx.h"
  25. /* Function prototypes */
  26. bool R_PFC_Read(
  27. uint8_t,
  28. uint8_t *
  29. );
  30. bool R_PFC_Write(
  31. uint8_t,
  32. uint8_t
  33. );
  34. bool R_PFC_Modify(
  35. uint8_t,
  36. uint8_t,
  37. uint8_t
  38. );
  39. /* PFC register definitions */
  40. #define PDL_PFC_PF0CSE 0x00u
  41. #define PDL_PFC_PF1CSS 0x01u
  42. #define PDL_PFC_PF2CSS 0x02u
  43. #define PDL_PFC_PF3BUS 0x03u
  44. #define PDL_PFC_PF4BUS 0x04u
  45. #define PDL_PFC_PF5BUS 0x05u
  46. #define PDL_PFC_PF6BUS 0x06u
  47. #define PDL_PFC_PF7DMA 0x07u
  48. #define PDL_PFC_PF8IRQ 0x08u
  49. #define PDL_PFC_PF9IRQ 0x09u
  50. #define PDL_PFC_PFAADC 0x0Au
  51. #define PDL_PFC_PFBTMR 0x0Bu
  52. #define PDL_PFC_PFCMTU 0x0Cu
  53. #define PDL_PFC_PFDMTU 0x0Du
  54. #define PDL_PFC_PFENET 0x0Eu
  55. #define PDL_PFC_PFFSCI 0x0Fu
  56. #define PDL_PFC_PFGSPI 0x10u
  57. #define PDL_PFC_PFHSPI 0x11u
  58. #define PDL_PFC_PFJCAN 0x13u
  59. #define PDL_PFC_PFKUSB 0x14u
  60. #define PDL_PFC_PFLUSB 0x15u
  61. #define PDL_PFC_PFMPOE 0x16u
  62. #define PDL_PFC_PFNPOE 0x17u
  63. /* Logical operations */
  64. #define PDL_PFC_AND 0x01u
  65. #define PDL_PFC_OR 0x02u
  66. #define PDL_PFC_XOR 0x04u
  67. #endif
  68. /* End of file */