stm32_eval_legacy.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. ******************************************************************************
  3. * @file stm32_eval_legacy.h
  4. * @author MCD Application Team
  5. * @version V5.0.2
  6. * @date 05-March-2012
  7. * @brief This file contains defines legacy for STM32 EVAL drivers.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __STM32_EVAL_LEGACY_H
  29. #define __STM32_EVAL_LEGACY_H
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /* Includes ------------------------------------------------------------------*/
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported constants --------------------------------------------------------*/
  36. /* STM322xG_EVAL Defines Legacy */
  37. #ifdef USE_STM3220F_EVAL
  38. #define USE_STM322xG_EVAL
  39. #endif
  40. #define STM3220F_LCD_Init STM322xG_LCD_Init
  41. /* Button Defines Legacy */
  42. #define Button_WAKEUP BUTTON_WAKEUP
  43. #define Button_TAMPER BUTTON_TAMPER
  44. #define Button_KEY BUTTON_KEY
  45. #define Button_RIGHT BUTTON_RIGHT
  46. #define Button_LEFT BUTTON_LEFT
  47. #define Button_UP BUTTON_UP
  48. #define Button_DOWN BUTTON_DOWN
  49. #define Button_SEL BUTTON_SEL
  50. #define Mode_GPIO BUTTON_MODE_GPIO
  51. #define Mode_EXTI BUTTON_MODE_EXTI
  52. #define Button_Mode_TypeDef ButtonMode_TypeDef
  53. #define JOY_CENTER JOY_SEL
  54. #define JOY_State_TypeDef JOYState_TypeDef
  55. /* LCD Defines Legacy */
  56. #define LCD_RSNWR_GPIO_CLK LCD_NWR_GPIO_CLK
  57. #define LCD_SPI_GPIO_PORT LCD_SPI_SCK_GPIO_PORT
  58. #define LCD_SPI_GPIO_CLK LCD_SPI_SCK_GPIO_CLK
  59. #define R0 LCD_REG_0
  60. #define R1 LCD_REG_1
  61. #define R2 LCD_REG_2
  62. #define R3 LCD_REG_3
  63. #define R4 LCD_REG_4
  64. #define R5 LCD_REG_5
  65. #define R6 LCD_REG_6
  66. #define R7 LCD_REG_7
  67. #define R8 LCD_REG_8
  68. #define R9 LCD_REG_9
  69. #define R10 LCD_REG_10
  70. #define R12 LCD_REG_12
  71. #define R13 LCD_REG_13
  72. #define R14 LCD_REG_14
  73. #define R15 LCD_REG_15
  74. #define R16 LCD_REG_16
  75. #define R17 LCD_REG_17
  76. #define R18 LCD_REG_18
  77. #define R19 LCD_REG_19
  78. #define R20 LCD_REG_20
  79. #define R21 LCD_REG_21
  80. #define R22 LCD_REG_22
  81. #define R23 LCD_REG_23
  82. #define R24 LCD_REG_24
  83. #define R25 LCD_REG_25
  84. #define R26 LCD_REG_26
  85. #define R27 LCD_REG_27
  86. #define R28 LCD_REG_28
  87. #define R29 LCD_REG_29
  88. #define R30 LCD_REG_30
  89. #define R31 LCD_REG_31
  90. #define R32 LCD_REG_32
  91. #define R33 LCD_REG_33
  92. #define R34 LCD_REG_34
  93. #define R36 LCD_REG_36
  94. #define R37 LCD_REG_37
  95. #define R40 LCD_REG_40
  96. #define R41 LCD_REG_41
  97. #define R43 LCD_REG_43
  98. #define R45 LCD_REG_45
  99. #define R48 LCD_REG_48
  100. #define R49 LCD_REG_49
  101. #define R50 LCD_REG_50
  102. #define R51 LCD_REG_51
  103. #define R52 LCD_REG_52
  104. #define R53 LCD_REG_53
  105. #define R54 LCD_REG_54
  106. #define R55 LCD_REG_55
  107. #define R56 LCD_REG_56
  108. #define R57 LCD_REG_57
  109. #define R59 LCD_REG_59
  110. #define R60 LCD_REG_60
  111. #define R61 LCD_REG_61
  112. #define R62 LCD_REG_62
  113. #define R63 LCD_REG_63
  114. #define R64 LCD_REG_64
  115. #define R65 LCD_REG_65
  116. #define R66 LCD_REG_66
  117. #define R67 LCD_REG_67
  118. #define R68 LCD_REG_68
  119. #define R69 LCD_REG_69
  120. #define R70 LCD_REG_70
  121. #define R71 LCD_REG_71
  122. #define R72 LCD_REG_72
  123. #define R73 LCD_REG_73
  124. #define R74 LCD_REG_74
  125. #define R75 LCD_REG_75
  126. #define R76 LCD_REG_76
  127. #define R77 LCD_REG_77
  128. #define R78 LCD_REG_78
  129. #define R79 LCD_REG_79
  130. #define R80 LCD_REG_80
  131. #define R81 LCD_REG_81
  132. #define R82 LCD_REG_82
  133. #define R83 LCD_REG_83
  134. #define R96 LCD_REG_96
  135. #define R97 LCD_REG_97
  136. #define R106 LCD_REG_106
  137. #define R118 LCD_REG_118
  138. #define R128 LCD_REG_128
  139. #define R129 LCD_REG_129
  140. #define R130 LCD_REG_130
  141. #define R131 LCD_REG_131
  142. #define R132 LCD_REG_132
  143. #define R133 LCD_REG_133
  144. #define R134 LCD_REG_134
  145. #define R135 LCD_REG_135
  146. #define R136 LCD_REG_136
  147. #define R137 LCD_REG_137
  148. #define R139 LCD_REG_139
  149. #define R140 LCD_REG_140
  150. #define R141 LCD_REG_141
  151. #define R143 LCD_REG_143
  152. #define R144 LCD_REG_144
  153. #define R145 LCD_REG_145
  154. #define R146 LCD_REG_146
  155. #define R147 LCD_REG_147
  156. #define R148 LCD_REG_148
  157. #define R149 LCD_REG_149
  158. #define R150 LCD_REG_150
  159. #define R151 LCD_REG_151
  160. #define R152 LCD_REG_152
  161. #define R153 LCD_REG_153
  162. #define R154 LCD_REG_154
  163. #define R157 LCD_REG_157
  164. #define R192 LCD_REG_192
  165. #define R193 LCD_REG_193
  166. #define R227 LCD_REG_227
  167. #define R229 LCD_REG_229
  168. #define R231 LCD_REG_231
  169. #define R239 LCD_REG_239
  170. #define White LCD_COLOR_WHITE
  171. #define Black LCD_COLOR_BLACK
  172. #define Grey LCD_COLOR_GREY
  173. #define Blue LCD_COLOR_BLUE
  174. #define Blue2 LCD_COLOR_BLUE2
  175. #define Red LCD_COLOR_RED
  176. #define Magenta LCD_COLOR_MAGENTA
  177. #define Green LCD_COLOR_GREEN
  178. #define Cyan LCD_COLOR_CYAN
  179. #define Yellow LCD_COLOR_YELLOW
  180. #define Line0 LCD_LINE_0
  181. #define Line1 LCD_LINE_1
  182. #define Line2 LCD_LINE_2
  183. #define Line3 LCD_LINE_3
  184. #define Line4 LCD_LINE_4
  185. #define Line5 LCD_LINE_5
  186. #define Line6 LCD_LINE_6
  187. #define Line7 LCD_LINE_7
  188. #define Line8 LCD_LINE_8
  189. #define Line9 LCD_LINE_9
  190. #define Horizontal LCD_DIR_HORIZONTAL
  191. #define Vertical LCD_DIR_VERTICAL
  192. /* Exported macro ------------------------------------------------------------*/
  193. /* Exported functions --------------------------------------------------------*/
  194. #ifdef __cplusplus
  195. }
  196. #endif
  197. #endif /* __STM32_EVAL_LEGACY_H */
  198. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/