PinNamesVar.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* Remap pin name */
  2. PA_9_R = PA_9 | PREMAP,
  3. PA_10_R = PA_10 | PREMAP,
  4. /* Alternate pin name */
  5. PA_1_ALT1 = PA_1 | ALT1,
  6. PA_2_ALT1 = PA_2 | ALT1,
  7. PA_3_ALT1 = PA_3 | ALT1,
  8. PA_4_ALT1 = PA_4 | ALT1,
  9. PA_6_ALT1 = PA_6 | ALT1,
  10. PA_6_ALT2 = PA_6 | ALT2,
  11. PA_7_ALT1 = PA_7 | ALT1,
  12. PA_7_ALT2 = PA_7 | ALT2,
  13. PA_7_ALT3 = PA_7 | ALT3,
  14. PA_9_ALT1 = PA_9 | ALT1,
  15. PA_9_R_ALT1 = PA_9_R | ALT1,
  16. PA_10_ALT1 = PA_10 | ALT1,
  17. PA_10_R_ALT1 = PA_10_R | ALT1,
  18. PA_14_ALT1 = PA_14 | ALT1,
  19. PA_15_ALT1 = PA_15 | ALT1,
  20. PB_0_ALT1 = PB_0 | ALT1,
  21. PB_1_ALT1 = PB_1 | ALT1,
  22. PB_1_ALT2 = PB_1 | ALT2,
  23. PB_3_ALT1 = PB_3 | ALT1,
  24. PB_4_ALT1 = PB_4 | ALT1,
  25. PB_5_ALT1 = PB_5 | ALT1,
  26. PB_6_ALT1 = PB_6 | ALT1,
  27. PB_6_ALT2 = PB_6 | ALT2,
  28. PB_7_ALT1 = PB_7 | ALT1,
  29. PB_8_ALT1 = PB_8 | ALT1,
  30. PB_9_ALT1 = PB_9 | ALT1,
  31. PB_13_ALT1 = PB_13 | ALT1,
  32. PB_14_ALT1 = PB_14 | ALT1,
  33. PB_15_ALT1 = PB_15 | ALT1,
  34. PB_15_ALT2 = PB_15 | ALT2,
  35. PC_0_ALT1 = PC_0 | ALT1,
  36. PC_1_ALT1 = PC_1 | ALT1,
  37. PC_4_ALT1 = PC_4 | ALT1,
  38. PC_5_ALT1 = PC_5 | ALT1,
  39. PC_6_ALT1 = PC_6 | ALT1,
  40. PC_7_ALT1 = PC_7 | ALT1,
  41. PC_8_ALT1 = PC_8 | ALT1,
  42. PC_9_ALT1 = PC_9 | ALT1,
  43. PC_10_ALT1 = PC_10 | ALT1,
  44. PC_11_ALT1 = PC_11 | ALT1,
  45. PD_4_ALT1 = PD_4 | ALT1,
  46. PF_7_ALT1 = PF_7 | ALT1,
  47. /* SYS_WKUP */
  48. #ifdef PWR_WAKEUP_PIN1
  49. SYS_WKUP1 = PA_0,
  50. #endif
  51. #ifdef PWR_WAKEUP_PIN2
  52. SYS_WKUP2 = PC_13,
  53. #endif
  54. #ifdef PWR_WAKEUP_PIN3
  55. SYS_WKUP3 = PE_6,
  56. #endif
  57. #ifdef PWR_WAKEUP_PIN4
  58. SYS_WKUP4 = PA_2,
  59. #endif
  60. #ifdef PWR_WAKEUP_PIN5
  61. SYS_WKUP5 = PC_5,
  62. #endif
  63. #ifdef PWR_WAKEUP_PIN6
  64. SYS_WKUP6 = PB_5,
  65. #endif
  66. #ifdef PWR_WAKEUP_PIN7
  67. SYS_WKUP7 = NC,
  68. #endif
  69. #ifdef PWR_WAKEUP_PIN8
  70. SYS_WKUP8 = NC,
  71. #endif
  72. /* USB */
  73. #ifdef USBCON
  74. USB_DM = PA_11,
  75. USB_DP = PA_12,
  76. #ifdef USB_NOE_PA_4
  77. USB_NOE = PA_4,
  78. #endif
  79. #ifdef USB_NOE_PA_13
  80. USB_NOE = PA_13,
  81. #endif
  82. #ifdef USB_NOE_PA_15
  83. USB_NOE = PA_15,
  84. #endif
  85. #ifdef USB_NOE_PC_9
  86. USB_NOE = PC_9,
  87. #endif
  88. #endif