PinNamesVar.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* Dual pad pin name */
  2. PC_2_C = PC_2 | PDUAL,
  3. PC_3_C = PC_3 | PDUAL,
  4. /* Alternate pin name */
  5. PA_0_ALT1 = PA_0 | ALT1,
  6. PA_1_ALT1 = PA_1 | ALT1,
  7. PA_1_ALT2 = PA_1 | ALT2,
  8. PA_2_ALT1 = PA_2 | ALT1,
  9. PA_2_ALT2 = PA_2 | ALT2,
  10. PA_3_ALT1 = PA_3 | ALT1,
  11. PA_3_ALT2 = PA_3 | ALT2,
  12. PA_4_ALT1 = PA_4 | ALT1,
  13. PA_4_ALT2 = PA_4 | ALT2,
  14. PA_5_ALT1 = PA_5 | ALT1,
  15. PA_6_ALT1 = PA_6 | ALT1,
  16. PA_7_ALT1 = PA_7 | ALT1,
  17. PA_7_ALT2 = PA_7 | ALT2,
  18. PA_7_ALT3 = PA_7 | ALT3,
  19. PA_8_ALT1 = PA_8 | ALT1,
  20. PA_9_ALT1 = PA_9 | ALT1,
  21. PA_10_ALT1 = PA_10 | ALT1,
  22. PA_11_ALT1 = PA_11 | ALT1,
  23. PA_12_ALT1 = PA_12 | ALT1,
  24. PA_15_ALT1 = PA_15 | ALT1,
  25. PA_15_ALT2 = PA_15 | ALT2,
  26. PB_0_ALT1 = PB_0 | ALT1,
  27. PB_0_ALT2 = PB_0 | ALT2,
  28. PB_1_ALT1 = PB_1 | ALT1,
  29. PB_1_ALT2 = PB_1 | ALT2,
  30. PB_3_ALT1 = PB_3 | ALT1,
  31. PB_3_ALT2 = PB_3 | ALT2,
  32. PB_4_ALT1 = PB_4 | ALT1,
  33. PB_4_ALT2 = PB_4 | ALT2,
  34. PB_5_ALT1 = PB_5 | ALT1,
  35. PB_5_ALT2 = PB_5 | ALT2,
  36. PB_6_ALT1 = PB_6 | ALT1,
  37. PB_6_ALT2 = PB_6 | ALT2,
  38. PB_7_ALT1 = PB_7 | ALT1,
  39. PB_8_ALT1 = PB_8 | ALT1,
  40. PB_8_ALT2 = PB_8 | ALT2,
  41. PB_9_ALT1 = PB_9 | ALT1,
  42. PB_9_ALT2 = PB_9 | ALT2,
  43. PB_14_ALT1 = PB_14 | ALT1,
  44. PB_14_ALT2 = PB_14 | ALT2,
  45. PB_15_ALT1 = PB_15 | ALT1,
  46. PB_15_ALT2 = PB_15 | ALT2,
  47. PC_0_ALT1 = PC_0 | ALT1,
  48. PC_0_ALT2 = PC_0 | ALT2,
  49. PC_1_ALT1 = PC_1 | ALT1,
  50. PC_1_ALT2 = PC_1 | ALT2,
  51. PC_4_ALT1 = PC_4 | ALT1,
  52. PC_5_ALT1 = PC_5 | ALT1,
  53. PC_6_ALT1 = PC_6 | ALT1,
  54. PC_6_ALT2 = PC_6 | ALT2,
  55. PC_7_ALT1 = PC_7 | ALT1,
  56. PC_7_ALT2 = PC_7 | ALT2,
  57. PC_8_ALT1 = PC_8 | ALT1,
  58. PC_9_ALT1 = PC_9 | ALT1,
  59. PC_10_ALT1 = PC_10 | ALT1,
  60. PC_11_ALT1 = PC_11 | ALT1,
  61. PF_0_ALT1 = PF_0 | ALT1,
  62. PF_1_ALT1 = PF_1 | ALT1,
  63. PF_6_ALT1 = PF_6 | ALT1,
  64. PF_7_ALT1 = PF_7 | ALT1,
  65. PF_8_ALT1 = PF_8 | ALT1,
  66. PF_8_ALT2 = PF_8 | ALT2,
  67. PF_9_ALT1 = PF_9 | ALT1,
  68. PF_9_ALT2 = PF_9 | ALT2,
  69. PG_13_ALT1 = PG_13 | ALT1,
  70. /* SYS_WKUP */
  71. #ifdef PWR_WAKEUP_PIN1
  72. SYS_WKUP1 = PA_0,
  73. #endif
  74. #ifdef PWR_WAKEUP_PIN2
  75. SYS_WKUP2 = PA_2,
  76. #endif
  77. #ifdef PWR_WAKEUP_PIN3
  78. SYS_WKUP3 = NC,
  79. #endif
  80. #ifdef PWR_WAKEUP_PIN4
  81. SYS_WKUP4 = PC_13,
  82. #endif
  83. #ifdef PWR_WAKEUP_PIN5
  84. SYS_WKUP5 = NC,
  85. #endif
  86. #ifdef PWR_WAKEUP_PIN6
  87. SYS_WKUP6 = PC_1,
  88. #endif
  89. #ifdef PWR_WAKEUP_PIN7
  90. SYS_WKUP7 = NC,
  91. #endif
  92. #ifdef PWR_WAKEUP_PIN8
  93. SYS_WKUP8 = NC,
  94. #endif
  95. /* USB */
  96. #ifdef USBCON
  97. USB_OTG_HS_DM = PA_11,
  98. USB_OTG_HS_DP = PA_12,
  99. USB_OTG_HS_ID = PA_10,
  100. USB_OTG_HS_SOF = PA_8,
  101. USB_OTG_HS_ULPI_CK = PA_5,
  102. USB_OTG_HS_ULPI_D0 = PA_3,
  103. USB_OTG_HS_ULPI_D1 = PB_0,
  104. USB_OTG_HS_ULPI_D2 = PB_1,
  105. USB_OTG_HS_ULPI_D3 = PB_10,
  106. USB_OTG_HS_ULPI_D4 = PB_11,
  107. USB_OTG_HS_ULPI_D5 = PB_12,
  108. USB_OTG_HS_ULPI_D6 = PB_13,
  109. USB_OTG_HS_ULPI_D7 = PB_5,
  110. USB_OTG_HS_ULPI_DIR = PC_2_C,
  111. USB_OTG_HS_ULPI_NXT = PC_3_C,
  112. USB_OTG_HS_ULPI_STP = PC_0,
  113. USB_OTG_HS_VBUS = PA_9,
  114. #endif