stm32l4xx_hal_msp.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * File Name : stm32l4xx_hal_msp.c
  5. * Description : This file provides code for the MSP Initialization
  6. * and de-Initialization codes.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* USER CODE END Header */
  21. /* Includes ------------------------------------------------------------------*/
  22. #include "main.h"
  23. /* USER CODE BEGIN Includes */
  24. #include <drv_common.h>
  25. /* USER CODE END Includes */
  26. /* Private typedef -----------------------------------------------------------*/
  27. /* USER CODE BEGIN TD */
  28. /* USER CODE END TD */
  29. /* Private define ------------------------------------------------------------*/
  30. /* USER CODE BEGIN Define */
  31. /* USER CODE END Define */
  32. /* Private macro -------------------------------------------------------------*/
  33. /* USER CODE BEGIN Macro */
  34. /* USER CODE END Macro */
  35. /* Private variables ---------------------------------------------------------*/
  36. /* USER CODE BEGIN PV */
  37. /* USER CODE END PV */
  38. /* Private function prototypes -----------------------------------------------*/
  39. /* USER CODE BEGIN PFP */
  40. /* USER CODE END PFP */
  41. /* External functions --------------------------------------------------------*/
  42. /* USER CODE BEGIN ExternalFunctions */
  43. /* USER CODE END ExternalFunctions */
  44. /* USER CODE BEGIN 0 */
  45. /* USER CODE END 0 */
  46. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  47. /**
  48. * Initializes the Global MSP.
  49. */
  50. void HAL_MspInit(void)
  51. {
  52. /* USER CODE BEGIN MspInit 0 */
  53. /* USER CODE END MspInit 0 */
  54. __HAL_RCC_SYSCFG_CLK_ENABLE();
  55. __HAL_RCC_PWR_CLK_ENABLE();
  56. /* System interrupt init*/
  57. /* USER CODE BEGIN MspInit 1 */
  58. /* USER CODE END MspInit 1 */
  59. }
  60. /**
  61. * @brief ADC MSP Initialization
  62. * This function configures the hardware resources used in this example
  63. * @param hadc: ADC handle pointer
  64. * @retval None
  65. */
  66. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  67. {
  68. GPIO_InitTypeDef GPIO_InitStruct = {0};
  69. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  70. if(hadc->Instance==ADC1)
  71. {
  72. /* USER CODE BEGIN ADC1_MspInit 0 */
  73. /* USER CODE END ADC1_MspInit 0 */
  74. /** Initializes the peripherals clock
  75. */
  76. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  77. PeriphClkInit.AdcClockSelection = RCC_ADCCLKSOURCE_PLLSAI1;
  78. PeriphClkInit.PLLSAI1.PLLSAI1Source = RCC_PLLSOURCE_MSI;
  79. PeriphClkInit.PLLSAI1.PLLSAI1M = 1;
  80. PeriphClkInit.PLLSAI1.PLLSAI1N = 16;
  81. PeriphClkInit.PLLSAI1.PLLSAI1P = RCC_PLLP_DIV7;
  82. PeriphClkInit.PLLSAI1.PLLSAI1Q = RCC_PLLQ_DIV2;
  83. PeriphClkInit.PLLSAI1.PLLSAI1R = RCC_PLLR_DIV2;
  84. PeriphClkInit.PLLSAI1.PLLSAI1ClockOut = RCC_PLLSAI1_ADC1CLK;
  85. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  86. {
  87. Error_Handler();
  88. }
  89. /* Peripheral clock enable */
  90. __HAL_RCC_ADC_CLK_ENABLE();
  91. __HAL_RCC_GPIOC_CLK_ENABLE();
  92. /**ADC1 GPIO Configuration
  93. PC2 ------> ADC1_IN3
  94. */
  95. GPIO_InitStruct.Pin = GPIO_PIN_2;
  96. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG_ADC_CONTROL;
  97. GPIO_InitStruct.Pull = GPIO_NOPULL;
  98. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  99. /* USER CODE BEGIN ADC1_MspInit 1 */
  100. /* USER CODE END ADC1_MspInit 1 */
  101. }
  102. }
  103. /**
  104. * @brief ADC MSP De-Initialization
  105. * This function freeze the hardware resources used in this example
  106. * @param hadc: ADC handle pointer
  107. * @retval None
  108. */
  109. void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
  110. {
  111. if(hadc->Instance==ADC1)
  112. {
  113. /* USER CODE BEGIN ADC1_MspDeInit 0 */
  114. /* USER CODE END ADC1_MspDeInit 0 */
  115. /* Peripheral clock disable */
  116. __HAL_RCC_ADC_CLK_DISABLE();
  117. /**ADC1 GPIO Configuration
  118. PC2 ------> ADC1_IN3
  119. */
  120. HAL_GPIO_DeInit(GPIOC, GPIO_PIN_2);
  121. /* USER CODE BEGIN ADC1_MspDeInit 1 */
  122. /* USER CODE END ADC1_MspDeInit 1 */
  123. }
  124. }
  125. /**
  126. * @brief DAC MSP Initialization
  127. * This function configures the hardware resources used in this example
  128. * @param hdac: DAC handle pointer
  129. * @retval None
  130. */
  131. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  132. {
  133. GPIO_InitTypeDef GPIO_InitStruct = {0};
  134. if(hdac->Instance==DAC1)
  135. {
  136. /* USER CODE BEGIN DAC1_MspInit 0 */
  137. /* USER CODE END DAC1_MspInit 0 */
  138. /* Peripheral clock enable */
  139. __HAL_RCC_DAC1_CLK_ENABLE();
  140. __HAL_RCC_GPIOA_CLK_ENABLE();
  141. /**DAC1 GPIO Configuration
  142. PA5 ------> DAC1_OUT2
  143. */
  144. GPIO_InitStruct.Pin = GPIO_PIN_5;
  145. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  146. GPIO_InitStruct.Pull = GPIO_NOPULL;
  147. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  148. /* USER CODE BEGIN DAC1_MspInit 1 */
  149. /* USER CODE END DAC1_MspInit 1 */
  150. }
  151. }
  152. /**
  153. * @brief DAC MSP De-Initialization
  154. * This function freeze the hardware resources used in this example
  155. * @param hdac: DAC handle pointer
  156. * @retval None
  157. */
  158. void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac)
  159. {
  160. if(hdac->Instance==DAC1)
  161. {
  162. /* USER CODE BEGIN DAC1_MspDeInit 0 */
  163. /* USER CODE END DAC1_MspDeInit 0 */
  164. /* Peripheral clock disable */
  165. __HAL_RCC_DAC1_CLK_DISABLE();
  166. /**DAC1 GPIO Configuration
  167. PA5 ------> DAC1_OUT2
  168. */
  169. HAL_GPIO_DeInit(GPIOA, GPIO_PIN_5);
  170. /* USER CODE BEGIN DAC1_MspDeInit 1 */
  171. /* USER CODE END DAC1_MspDeInit 1 */
  172. }
  173. }
  174. /**
  175. * @brief SPI MSP Initialization
  176. * This function configures the hardware resources used in this example
  177. * @param hspi: SPI handle pointer
  178. * @retval None
  179. */
  180. void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi)
  181. {
  182. GPIO_InitTypeDef GPIO_InitStruct = {0};
  183. if(hspi->Instance==SPI1)
  184. {
  185. /* USER CODE BEGIN SPI1_MspInit 0 */
  186. /* USER CODE END SPI1_MspInit 0 */
  187. /* Peripheral clock enable */
  188. __HAL_RCC_SPI1_CLK_ENABLE();
  189. __HAL_RCC_GPIOA_CLK_ENABLE();
  190. /**SPI1 GPIO Configuration
  191. PA1 ------> SPI1_SCK
  192. PA6 ------> SPI1_MISO
  193. PA12 ------> SPI1_MOSI
  194. */
  195. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_6|GPIO_PIN_12;
  196. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  197. GPIO_InitStruct.Pull = GPIO_NOPULL;
  198. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  199. GPIO_InitStruct.Alternate = GPIO_AF5_SPI1;
  200. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  201. /* USER CODE BEGIN SPI1_MspInit 1 */
  202. /* USER CODE END SPI1_MspInit 1 */
  203. }
  204. else if(hspi->Instance==SPI2)
  205. {
  206. /* USER CODE BEGIN SPI2_MspInit 0 */
  207. /* USER CODE END SPI2_MspInit 0 */
  208. /* Peripheral clock enable */
  209. __HAL_RCC_SPI2_CLK_ENABLE();
  210. __HAL_RCC_GPIOC_CLK_ENABLE();
  211. __HAL_RCC_GPIOB_CLK_ENABLE();
  212. /**SPI2 GPIO Configuration
  213. PC3 ------> SPI2_MOSI
  214. PB13 ------> SPI2_SCK
  215. */
  216. GPIO_InitStruct.Pin = GPIO_PIN_3;
  217. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  218. GPIO_InitStruct.Pull = GPIO_NOPULL;
  219. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  220. GPIO_InitStruct.Alternate = GPIO_AF5_SPI2;
  221. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  222. GPIO_InitStruct.Pin = GPIO_PIN_13;
  223. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  224. GPIO_InitStruct.Pull = GPIO_NOPULL;
  225. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  226. GPIO_InitStruct.Alternate = GPIO_AF5_SPI2;
  227. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  228. /* USER CODE BEGIN SPI2_MspInit 1 */
  229. /* USER CODE END SPI2_MspInit 1 */
  230. }
  231. }
  232. /**
  233. * @brief SPI MSP De-Initialization
  234. * This function freeze the hardware resources used in this example
  235. * @param hspi: SPI handle pointer
  236. * @retval None
  237. */
  238. void HAL_SPI_MspDeInit(SPI_HandleTypeDef* hspi)
  239. {
  240. if(hspi->Instance==SPI1)
  241. {
  242. /* USER CODE BEGIN SPI1_MspDeInit 0 */
  243. /* USER CODE END SPI1_MspDeInit 0 */
  244. /* Peripheral clock disable */
  245. __HAL_RCC_SPI1_CLK_DISABLE();
  246. /**SPI1 GPIO Configuration
  247. PA1 ------> SPI1_SCK
  248. PA6 ------> SPI1_MISO
  249. PA12 ------> SPI1_MOSI
  250. */
  251. HAL_GPIO_DeInit(GPIOA, GPIO_PIN_1|GPIO_PIN_6|GPIO_PIN_12);
  252. /* USER CODE BEGIN SPI1_MspDeInit 1 */
  253. /* USER CODE END SPI1_MspDeInit 1 */
  254. }
  255. else if(hspi->Instance==SPI2)
  256. {
  257. /* USER CODE BEGIN SPI2_MspDeInit 0 */
  258. /* USER CODE END SPI2_MspDeInit 0 */
  259. /* Peripheral clock disable */
  260. __HAL_RCC_SPI2_CLK_DISABLE();
  261. /**SPI2 GPIO Configuration
  262. PC3 ------> SPI2_MOSI
  263. PB13 ------> SPI2_SCK
  264. */
  265. HAL_GPIO_DeInit(GPIOC, GPIO_PIN_3);
  266. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_13);
  267. /* USER CODE BEGIN SPI2_MspDeInit 1 */
  268. /* USER CODE END SPI2_MspDeInit 1 */
  269. }
  270. }
  271. /**
  272. * @brief TIM_Base MSP Initialization
  273. * This function configures the hardware resources used in this example
  274. * @param htim_base: TIM_Base handle pointer
  275. * @retval None
  276. */
  277. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  278. {
  279. if(htim_base->Instance==TIM1)
  280. {
  281. /* USER CODE BEGIN TIM1_MspInit 0 */
  282. /* USER CODE END TIM1_MspInit 0 */
  283. /* Peripheral clock enable */
  284. __HAL_RCC_TIM1_CLK_ENABLE();
  285. /* USER CODE BEGIN TIM1_MspInit 1 */
  286. /* USER CODE END TIM1_MspInit 1 */
  287. }
  288. else if(htim_base->Instance==TIM16)
  289. {
  290. /* USER CODE BEGIN TIM16_MspInit 0 */
  291. /* USER CODE END TIM16_MspInit 0 */
  292. /* Peripheral clock enable */
  293. __HAL_RCC_TIM16_CLK_ENABLE();
  294. /* USER CODE BEGIN TIM16_MspInit 1 */
  295. /* USER CODE END TIM16_MspInit 1 */
  296. }
  297. }
  298. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  299. {
  300. GPIO_InitTypeDef GPIO_InitStruct = {0};
  301. if(htim->Instance==TIM1)
  302. {
  303. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  304. /* USER CODE END TIM1_MspPostInit 0 */
  305. __HAL_RCC_GPIOA_CLK_ENABLE();
  306. /**TIM1 GPIO Configuration
  307. PA8 ------> TIM1_CH1
  308. */
  309. GPIO_InitStruct.Pin = GPIO_PIN_8;
  310. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  311. GPIO_InitStruct.Pull = GPIO_NOPULL;
  312. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  313. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  314. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  315. /* USER CODE BEGIN TIM1_MspPostInit 1 */
  316. /* USER CODE END TIM1_MspPostInit 1 */
  317. }
  318. else if(htim->Instance==TIM16)
  319. {
  320. /* USER CODE BEGIN TIM16_MspPostInit 0 */
  321. /* USER CODE END TIM16_MspPostInit 0 */
  322. __HAL_RCC_GPIOB_CLK_ENABLE();
  323. /**TIM16 GPIO Configuration
  324. PB8 ------> TIM16_CH1
  325. */
  326. GPIO_InitStruct.Pin = GPIO_PIN_8;
  327. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  328. GPIO_InitStruct.Pull = GPIO_NOPULL;
  329. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  330. GPIO_InitStruct.Alternate = GPIO_AF14_TIM16;
  331. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  332. /* USER CODE BEGIN TIM16_MspPostInit 1 */
  333. /* USER CODE END TIM16_MspPostInit 1 */
  334. }
  335. }
  336. /**
  337. * @brief TIM_Base MSP De-Initialization
  338. * This function freeze the hardware resources used in this example
  339. * @param htim_base: TIM_Base handle pointer
  340. * @retval None
  341. */
  342. void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* htim_base)
  343. {
  344. if(htim_base->Instance==TIM1)
  345. {
  346. /* USER CODE BEGIN TIM1_MspDeInit 0 */
  347. /* USER CODE END TIM1_MspDeInit 0 */
  348. /* Peripheral clock disable */
  349. __HAL_RCC_TIM1_CLK_DISABLE();
  350. /* USER CODE BEGIN TIM1_MspDeInit 1 */
  351. /* USER CODE END TIM1_MspDeInit 1 */
  352. }
  353. else if(htim_base->Instance==TIM16)
  354. {
  355. /* USER CODE BEGIN TIM16_MspDeInit 0 */
  356. /* USER CODE END TIM16_MspDeInit 0 */
  357. /* Peripheral clock disable */
  358. __HAL_RCC_TIM16_CLK_DISABLE();
  359. /* USER CODE BEGIN TIM16_MspDeInit 1 */
  360. /* USER CODE END TIM16_MspDeInit 1 */
  361. }
  362. }
  363. /**
  364. * @brief UART MSP Initialization
  365. * This function configures the hardware resources used in this example
  366. * @param huart: UART handle pointer
  367. * @retval None
  368. */
  369. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  370. {
  371. GPIO_InitTypeDef GPIO_InitStruct = {0};
  372. RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
  373. if(huart->Instance==USART1)
  374. {
  375. /* USER CODE BEGIN USART1_MspInit 0 */
  376. /* USER CODE END USART1_MspInit 0 */
  377. /** Initializes the peripherals clock
  378. */
  379. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  380. PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;
  381. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  382. {
  383. Error_Handler();
  384. }
  385. /* Peripheral clock enable */
  386. __HAL_RCC_USART1_CLK_ENABLE();
  387. __HAL_RCC_GPIOA_CLK_ENABLE();
  388. /**USART1 GPIO Configuration
  389. PA9 ------> USART1_TX
  390. PA10 ------> USART1_RX
  391. */
  392. GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10;
  393. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  394. GPIO_InitStruct.Pull = GPIO_PULLUP;
  395. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  396. GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  397. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  398. /* USER CODE BEGIN USART1_MspInit 1 */
  399. /* USER CODE END USART1_MspInit 1 */
  400. }
  401. else if(huart->Instance==USART3)
  402. {
  403. /* USER CODE BEGIN USART3_MspInit 0 */
  404. /* USER CODE END USART3_MspInit 0 */
  405. /** Initializes the peripherals clock
  406. */
  407. PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART3;
  408. PeriphClkInit.Usart3ClockSelection = RCC_USART3CLKSOURCE_PCLK1;
  409. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
  410. {
  411. Error_Handler();
  412. }
  413. /* Peripheral clock enable */
  414. __HAL_RCC_USART3_CLK_ENABLE();
  415. __HAL_RCC_GPIOC_CLK_ENABLE();
  416. /**USART3 GPIO Configuration
  417. PC4 ------> USART3_TX
  418. PC5 ------> USART3_RX
  419. */
  420. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  421. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  422. GPIO_InitStruct.Pull = GPIO_NOPULL;
  423. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  424. GPIO_InitStruct.Alternate = GPIO_AF7_USART3;
  425. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  426. /* USER CODE BEGIN USART3_MspInit 1 */
  427. /* USER CODE END USART3_MspInit 1 */
  428. }
  429. }
  430. /**
  431. * @brief UART MSP De-Initialization
  432. * This function freeze the hardware resources used in this example
  433. * @param huart: UART handle pointer
  434. * @retval None
  435. */
  436. void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
  437. {
  438. if(huart->Instance==USART1)
  439. {
  440. /* USER CODE BEGIN USART1_MspDeInit 0 */
  441. /* USER CODE END USART1_MspDeInit 0 */
  442. /* Peripheral clock disable */
  443. __HAL_RCC_USART1_CLK_DISABLE();
  444. /**USART1 GPIO Configuration
  445. PA9 ------> USART1_TX
  446. PA10 ------> USART1_RX
  447. */
  448. HAL_GPIO_DeInit(GPIOA, GPIO_PIN_9|GPIO_PIN_10);
  449. /* USER CODE BEGIN USART1_MspDeInit 1 */
  450. /* USER CODE END USART1_MspDeInit 1 */
  451. }
  452. else if(huart->Instance==USART3)
  453. {
  454. /* USER CODE BEGIN USART3_MspDeInit 0 */
  455. /* USER CODE END USART3_MspDeInit 0 */
  456. /* Peripheral clock disable */
  457. __HAL_RCC_USART3_CLK_DISABLE();
  458. /**USART3 GPIO Configuration
  459. PC4 ------> USART3_TX
  460. PC5 ------> USART3_RX
  461. */
  462. HAL_GPIO_DeInit(GPIOC, GPIO_PIN_4|GPIO_PIN_5);
  463. /* USER CODE BEGIN USART3_MspDeInit 1 */
  464. /* USER CODE END USART3_MspDeInit 1 */
  465. }
  466. }
  467. /* USER CODE BEGIN 1 */
  468. /* USER CODE END 1 */