You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

628 lines
19 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f7xx_hal_mdios.c
  4. * @author MCD Application Team
  5. * @version V1.2.2
  6. * @date 14-April-2017
  7. * @brief MDIOS HAL module driver.
  8. * This file provides firmware functions to manage the following
  9. * functionalities of the MDIOS Peripheral.
  10. * + Initialization and de-initialization functions
  11. * + IO operation functions
  12. * + Peripheral Control functions
  13. *
  14. @verbatim
  15. ===============================================================================
  16. ##### How to use this driver #####
  17. ===============================================================================
  18. [..]
  19. The MDIOS HAL driver can be used as follows:
  20. (#) Declare a MDIOS_HandleTypeDef handle structure.
  21. (#) Initialize the MDIOS low level resources by implementing the HAL_MDIOS_MspInit() API:
  22. (##) Enable the MDIOS interface clock.
  23. (##) MDIOS pins configuration:
  24. (+++) Enable clocks for the MDIOS GPIOs.
  25. (+++) Configure the MDIOS pins as alternate function.
  26. (##) NVIC configuration if you need to use interrupt process:
  27. (+++) Configure the MDIOS interrupt priority.
  28. (+++) Enable the NVIC MDIOS IRQ handle.
  29. (#) Program the Port Address and the Preamble Check in the Init structure.
  30. (#) Initialize the MDIOS registers by calling the HAL_MDIOS_Init() API.
  31. (#) Perform direct slave read/write operations using the following APIs:
  32. (##) Read the value of a DINn register: HAL_MDIOS_ReadReg()
  33. (##) Write a value to a DOUTn register: HAL_MDIOS_WriteReg()
  34. (#) Get the Master read/write operations flags using the following APIs:
  35. (##) Bit map of DOUTn registers read by Master: HAL_MDIOS_GetReadRegAddress()
  36. (##) Bit map of DINn registers written by Master : HAL_MDIOS_GetWrittenRegAddress()
  37. (#) Clear the read/write flags using the following APIs:
  38. (##) Clear read flags of a set of registers: HAL_MDIOS_ClearReadRegAddress()
  39. (##) Clear write flags of a set of registers: HAL_MDIOS_ClearWriteRegAddress()
  40. (#) Enable interrupts on events using HAL_MDIOS_EnableEvents(), when called
  41. the MDIOS will generate an interrupt in the following cases:
  42. (##) a DINn register written by the Master
  43. (##) a DOUTn register read by the Master
  44. (##) an error occur
  45. -@@- A callback is executed for each genereted interrupt, so the driver provides the following
  46. HAL_MDIOS_WriteCpltCallback(), HAL_MDIOS_ReadCpltCallback() and HAL_MDIOS_ErrorCallback()
  47. -@@- HAL_MDIOS_IRQHandler() must be called from the MDIOS IRQ Handler, to handle the interrupt
  48. and execute the previous callbacks
  49. (#) Reset the MDIOS peripheral and all related ressources by calling the HAL_MDIOS_DeInit() API.
  50. (##) HAL_MDIOS_MspDeInit() must be implemented to reset low level ressources
  51. (GPIO, Clocks, NVIC configuration ...)
  52. @endverbatim
  53. ******************************************************************************
  54. * @attention
  55. *
  56. * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  57. *
  58. * Redistribution and use in source and binary forms, with or without modification,
  59. * are permitted provided that the following conditions are met:
  60. * 1. Redistributions of source code must retain the above copyright notice,
  61. * this list of conditions and the following disclaimer.
  62. * 2. Redistributions in binary form must reproduce the above copyright notice,
  63. * this list of conditions and the following disclaimer in the documentation
  64. * and/or other materials provided with the distribution.
  65. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  66. * may be used to endorse or promote products derived from this software
  67. * without specific prior written permission.
  68. *
  69. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  70. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  71. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  72. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  73. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  74. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  75. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  76. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  77. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  78. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  79. *
  80. ******************************************************************************
  81. */
  82. /* Includes ------------------------------------------------------------------*/
  83. #include "stm32f7xx_hal.h"
  84. /** @addtogroup STM32F7xx_HAL_Driver
  85. * @{
  86. */
  87. /** @defgroup MDIOS MDIOS
  88. * @brief HAL MDIOS module driver
  89. * @{
  90. */
  91. #ifdef HAL_MDIOS_MODULE_ENABLED
  92. #if defined (MDIOS)
  93. /* Private typedef -----------------------------------------------------------*/
  94. /* Private define ------------------------------------------------------------*/
  95. #define MDIOS_PORT_ADDRESS_SHIFT ((uint32_t)8)
  96. #define MDIOS_ALL_REG_FLAG ((uint32_t)0xFFFFFFFFU)
  97. #define MDIOS_ALL_ERRORS_FLAG ((uint32_t)(MDIOS_SR_PERF | MDIOS_SR_SERF | MDIOS_SR_TERF))
  98. #define MDIOS_DIN_BASE_ADDR (MDIOS_BASE + 0x100)
  99. #define MDIOS_DOUT_BASE_ADDR (MDIOS_BASE + 0x180)
  100. /* Private macro -------------------------------------------------------------*/
  101. /* Private variables ---------------------------------------------------------*/
  102. /* Private function prototypes -----------------------------------------------*/
  103. /* Private functions ---------------------------------------------------------*/
  104. /* Exported functions --------------------------------------------------------*/
  105. /** @defgroup MDIOS_Exported_Functions MDIOS Exported Functions
  106. * @{
  107. */
  108. /** @defgroup MDIOS_Exported_Functions_Group1 Initialization/de-initialization functions
  109. * @brief Initialization and Configuration functions
  110. *
  111. @verbatim
  112. ===============================================================================
  113. ##### Initialization and Configuration functions #####
  114. ===============================================================================
  115. [..]
  116. This subsection provides a set of functions allowing to initialize the MDIOS
  117. (+) The following parameters can be configured:
  118. (++) Port Address
  119. (++) Preamble Check
  120. @endverbatim
  121. * @{
  122. */
  123. /**
  124. * @brief Initializes the MDIOS according to the specified parameters in
  125. * the MDIOS_InitTypeDef and creates the associated handle .
  126. * @param hmdios: pointer to a MDIOS_HandleTypeDef structure that contains
  127. * the configuration information for MDIOS module
  128. * @retval HAL status
  129. */
  130. HAL_StatusTypeDef HAL_MDIOS_Init(MDIOS_HandleTypeDef *hmdios)
  131. {
  132. uint32_t tmpcr = 0;
  133. /* Check the MDIOS handle allocation */
  134. if(hmdios == NULL)
  135. {
  136. return HAL_ERROR;
  137. }
  138. /* Check the parameters */
  139. assert_param(IS_MDIOS_ALL_INSTANCE(hmdios->Instance));
  140. assert_param(IS_MDIOS_PORTADDRESS(hmdios->Init.PortAddress));
  141. assert_param(IS_MDIOS_PREAMBLECHECK(hmdios->Init.PreambleCheck));
  142. /* Process Locked */
  143. __HAL_LOCK(hmdios);
  144. if(hmdios->State == HAL_MDIOS_STATE_RESET)
  145. {
  146. /* Init the low level hardware */
  147. HAL_MDIOS_MspInit(hmdios);
  148. }
  149. /* Change the MDIOS state */
  150. hmdios->State = HAL_MDIOS_STATE_BUSY;
  151. /* Get the MDIOS CR value */
  152. tmpcr = hmdios->Instance->CR;
  153. /* Clear PORT_ADDRESS, DPC and EN bits */
  154. tmpcr &= ((uint32_t)~(MDIOS_CR_EN | MDIOS_CR_DPC | MDIOS_CR_PORT_ADDRESS));
  155. /* Set MDIOS control parametrs and enable the peripheral */
  156. tmpcr |= (uint32_t)(((hmdios->Init.PortAddress) << MDIOS_PORT_ADDRESS_SHIFT) |\
  157. (hmdios->Init.PreambleCheck) | \
  158. (MDIOS_CR_EN));
  159. /* Write the MDIOS CR */
  160. hmdios->Instance->CR = tmpcr;
  161. /* Change the MDIOS state */
  162. hmdios->State = HAL_MDIOS_STATE_READY;
  163. /* Release Lock */
  164. __HAL_UNLOCK(hmdios);
  165. /* Return function status */
  166. return HAL_OK;
  167. }
  168. /**
  169. * @brief DeInitializes the MDIOS peripheral.
  170. * @param hmdios: MDIOS handle
  171. * @retval HAL status
  172. */
  173. HAL_StatusTypeDef HAL_MDIOS_DeInit(MDIOS_HandleTypeDef *hmdios)
  174. {
  175. /* Check the MDIOS handle allocation */
  176. if(hmdios == NULL)
  177. {
  178. return HAL_ERROR;
  179. }
  180. /* Check the parameters */
  181. assert_param(IS_MDIOS_ALL_INSTANCE(hmdios->Instance));
  182. /* Change the MDIOS state */
  183. hmdios->State = HAL_MDIOS_STATE_BUSY;
  184. /* Disable the Peripheral */
  185. __HAL_MDIOS_DISABLE(hmdios);
  186. /* DeInit the low level hardware */
  187. HAL_MDIOS_MspDeInit(hmdios);
  188. /* Change the MDIOS state */
  189. hmdios->State = HAL_MDIOS_STATE_RESET;
  190. /* Release Lock */
  191. __HAL_UNLOCK(hmdios);
  192. /* Return function status */
  193. return HAL_OK;
  194. }
  195. /**
  196. * @brief MDIOS MSP Init
  197. * @param hmdios: mdios handle
  198. * @retval None
  199. */
  200. __weak void HAL_MDIOS_MspInit(MDIOS_HandleTypeDef *hmdios)
  201. {
  202. /* Prevent unused argument(s) compilation warning */
  203. UNUSED(hmdios);
  204. /* NOTE : This function should not be modified, when the callback is needed,
  205. the HAL_MDIOS_MspInit can be implemented in the user file
  206. */
  207. }
  208. /**
  209. * @brief MDIOS MSP DeInit
  210. * @param hmdios: mdios handle
  211. * @retval None
  212. */
  213. __weak void HAL_MDIOS_MspDeInit(MDIOS_HandleTypeDef *hmdios)
  214. {
  215. /* Prevent unused argument(s) compilation warning */
  216. UNUSED(hmdios);
  217. /* NOTE : This function should not be modified, when the callback is needed,
  218. the HAL_MDIOS_MspDeInit can be implemented in the user file
  219. */
  220. }
  221. /**
  222. * @}
  223. */
  224. /** @defgroup MDIOS_Exported_Functions_Group2 IO operation functions
  225. * @brief MDIOS Read/Write functions
  226. *
  227. @verbatim
  228. ===============================================================================
  229. ##### IO operation functions #####
  230. ===============================================================================
  231. This subsection provides a set of functions allowing to manage the MDIOS
  232. read and write operations.
  233. (#) APIs that allow to the MDIOS to read/write from/to the
  234. values of one of the DINn/DOUTn registers:
  235. (+) Read the value of a DINn register: HAL_MDIOS_ReadReg()
  236. (+) Write a value to a DOUTn register: HAL_MDIOS_WriteReg()
  237. (#) APIs that provide if there are some Slave registres have been
  238. read or written by the Master:
  239. (+) DOUTn registers read by Master: HAL_MDIOS_GetReadRegAddress()
  240. (+) DINn registers written by Master : HAL_MDIOS_GetWrittenRegAddress()
  241. (#) APIs that Clear the read/write flags:
  242. (+) Clear read registers flags: HAL_MDIOS_ClearReadRegAddress()
  243. (+) Clear write registers flags: HAL_MDIOS_ClearWriteRegAddress()
  244. (#) A set of Callbacks are provided:
  245. (+) HAL_MDIOS_WriteCpltCallback()
  246. (+) HAL_MDIOS_ReadCpltCallback()
  247. (+) HAL_MDIOS_ErrorCallback()
  248. @endverbatim
  249. * @{
  250. */
  251. /**
  252. * @brief Writes to an MDIOS output register
  253. * @param hmdios: mdios handle
  254. * @param RegNum: MDIOS input register number
  255. * @param Data: Data to write
  256. * @retval HAL status
  257. */
  258. HAL_StatusTypeDef HAL_MDIOS_WriteReg(MDIOS_HandleTypeDef *hmdios, uint32_t RegNum, uint16_t Data)
  259. {
  260. uint32_t tmpreg;
  261. /* Check the parameters */
  262. assert_param(IS_MDIOS_REGISTER(RegNum));
  263. /* Process Locked */
  264. __HAL_LOCK(hmdios);
  265. /* Get the addr of output register to be written by the MDIOS */
  266. tmpreg = MDIOS_DOUT_BASE_ADDR + (4 * RegNum);
  267. /* Write to DOUTn register */
  268. *((uint32_t *)tmpreg) = Data;
  269. /* Process Unlocked */
  270. __HAL_UNLOCK(hmdios);
  271. return HAL_OK;
  272. }
  273. /**
  274. * @brief Reads an MDIOS input register
  275. * @param hmdios: mdios handle
  276. * @param RegNum: MDIOS input register number
  277. * @param pData: pointer to Data
  278. * @retval HAL status
  279. */
  280. HAL_StatusTypeDef HAL_MDIOS_ReadReg(MDIOS_HandleTypeDef *hmdios, uint32_t RegNum, uint16_t *pData)
  281. {
  282. uint32_t tmpreg;
  283. /* Check the parameters */
  284. assert_param(IS_MDIOS_REGISTER(RegNum));
  285. /* Process Locked */
  286. __HAL_LOCK(hmdios);
  287. /* Get the addr of input register to be read by the MDIOS */
  288. tmpreg = MDIOS_DIN_BASE_ADDR + (4 * RegNum);
  289. /* Read DINn register */
  290. *pData = (uint16_t)(*((uint32_t *)tmpreg));
  291. /* Process Unlocked */
  292. __HAL_UNLOCK(hmdios);
  293. return HAL_OK;
  294. }
  295. /**
  296. * @brief Gets Written registers by MDIO master
  297. * @param hmdios: mdios handle
  298. * @retval bit map of written registers addresses
  299. */
  300. uint32_t HAL_MDIOS_GetWrittenRegAddress(MDIOS_HandleTypeDef *hmdios)
  301. {
  302. return hmdios->Instance->WRFR;
  303. }
  304. /**
  305. * @brief Gets Read registers by MDIO master
  306. * @param hmdios: mdios handle
  307. * @retval bit map of read registers addresses
  308. */
  309. uint32_t HAL_MDIOS_GetReadRegAddress(MDIOS_HandleTypeDef *hmdios)
  310. {
  311. return hmdios->Instance->RDFR;
  312. }
  313. /**
  314. * @brief Clears Write registers flag
  315. * @param hmdios: mdios handle
  316. * @param RegNum: registers addresses to be cleared
  317. * @retval HAL status
  318. */
  319. HAL_StatusTypeDef HAL_MDIOS_ClearWriteRegAddress(MDIOS_HandleTypeDef *hmdios, uint32_t RegNum)
  320. {
  321. /* Check the parameters */
  322. assert_param(IS_MDIOS_REGISTER(RegNum));
  323. /* Process Locked */
  324. __HAL_LOCK(hmdios);
  325. /* Clear write registers flags */
  326. hmdios->Instance->CWRFR |= (RegNum);
  327. /* Release Lock */
  328. __HAL_UNLOCK(hmdios);
  329. return HAL_OK;
  330. }
  331. /**
  332. * @brief Clears Read register flag
  333. * @param hmdios: mdios handle
  334. * @param RegNum: registers addresses to be cleared
  335. * @retval HAL status
  336. */
  337. HAL_StatusTypeDef HAL_MDIOS_ClearReadRegAddress(MDIOS_HandleTypeDef *hmdios, uint32_t RegNum)
  338. {
  339. /* Check the parameters */
  340. assert_param(IS_MDIOS_REGISTER(RegNum));
  341. /* Process Locked */
  342. __HAL_LOCK(hmdios);
  343. /* Clear read registers flags */
  344. hmdios->Instance->CRDFR |= (RegNum);
  345. /* Release Lock */
  346. __HAL_UNLOCK(hmdios);
  347. return HAL_OK;
  348. }
  349. /**
  350. * @brief Enables Events for MDIOS peripheral
  351. * @param hmdios: mdios handle
  352. * @retval HAL status
  353. */
  354. HAL_StatusTypeDef HAL_MDIOS_EnableEvents(MDIOS_HandleTypeDef *hmdios)
  355. {
  356. /* Process Locked */
  357. __HAL_LOCK(hmdios);
  358. /* Enable MDIOS interrupts: Register Write, Register Read and Error ITs */
  359. __HAL_MDIOS_ENABLE_IT(hmdios, (MDIOS_IT_WRITE | MDIOS_IT_READ | MDIOS_IT_ERROR));
  360. /* Process Unlocked */
  361. __HAL_UNLOCK(hmdios);
  362. return HAL_OK;
  363. }
  364. /**
  365. * @brief This function handles MDIOS interrupt request.
  366. * @param hmdios: MDIOS handle
  367. * @retval None
  368. */
  369. void HAL_MDIOS_IRQHandler(MDIOS_HandleTypeDef *hmdios)
  370. {
  371. /* Write Register Interrupt enabled ? */
  372. if(__HAL_MDIOS_GET_IT_SOURCE(hmdios, MDIOS_IT_WRITE) != RESET)
  373. {
  374. /* Write register flag */
  375. if(HAL_MDIOS_GetWrittenRegAddress(hmdios) != RESET)
  376. {
  377. /* Write callback function */
  378. HAL_MDIOS_WriteCpltCallback(hmdios);
  379. /* Clear write register flag */
  380. HAL_MDIOS_ClearWriteRegAddress(hmdios, MDIOS_ALL_REG_FLAG);
  381. }
  382. }
  383. /* Read Register Interrupt enabled ? */
  384. if(__HAL_MDIOS_GET_IT_SOURCE(hmdios, MDIOS_IT_READ) != RESET)
  385. {
  386. /* Read register flag */
  387. if(HAL_MDIOS_GetReadRegAddress(hmdios) != RESET)
  388. {
  389. /* Read callback function */
  390. HAL_MDIOS_ReadCpltCallback(hmdios);
  391. /* Clear read register flag */
  392. HAL_MDIOS_ClearReadRegAddress(hmdios, MDIOS_ALL_REG_FLAG);
  393. }
  394. }
  395. /* Error Interrupt enabled ? */
  396. if(__HAL_MDIOS_GET_IT_SOURCE(hmdios, MDIOS_IT_ERROR) != RESET)
  397. {
  398. /* All Errors Flag */
  399. if(__HAL_MDIOS_GET_ERROR_FLAG(hmdios, MDIOS_ALL_ERRORS_FLAG) !=RESET)
  400. {
  401. /* Error Callback */
  402. HAL_MDIOS_ErrorCallback(hmdios);
  403. /* Clear errors flag */
  404. __HAL_MDIOS_CLEAR_ERROR_FLAG(hmdios, MDIOS_ALL_ERRORS_FLAG);
  405. }
  406. }
  407. /* check MDIOS WAKEUP exti flag */
  408. if(__HAL_MDIOS_WAKEUP_EXTI_GET_FLAG() != RESET)
  409. {
  410. /* MDIOS WAKEUP interrupt user callback */
  411. HAL_MDIOS_WakeUpCallback(hmdios);
  412. /* Clear MDIOS WAKEUP Exti pending bit */
  413. __HAL_MDIOS_WAKEUP_EXTI_CLEAR_FLAG();
  414. }
  415. }
  416. /**
  417. * @brief Write Complete Callback
  418. * @param hmdios: mdios handle
  419. * @retval None
  420. */
  421. __weak void HAL_MDIOS_WriteCpltCallback(MDIOS_HandleTypeDef *hmdios)
  422. {
  423. /* Prevent unused argument(s) compilation warning */
  424. UNUSED(hmdios);
  425. /* NOTE : This function should not be modified, when the callback is needed,
  426. the HAL_MDIOS_WriteCpltCallback can be implemented in the user file
  427. */
  428. }
  429. /**
  430. * @brief Read Complete Callback
  431. * @param hmdios: mdios handle
  432. * @retval None
  433. */
  434. __weak void HAL_MDIOS_ReadCpltCallback(MDIOS_HandleTypeDef *hmdios)
  435. {
  436. /* Prevent unused argument(s) compilation warning */
  437. UNUSED(hmdios);
  438. /* NOTE : This function should not be modified, when the callback is needed,
  439. the HAL_MDIOS_ReadCpltCallback can be implemented in the user file
  440. */
  441. }
  442. /**
  443. * @brief Error Callback
  444. * @param hmdios: mdios handle
  445. * @retval None
  446. */
  447. __weak void HAL_MDIOS_ErrorCallback(MDIOS_HandleTypeDef *hmdios)
  448. {
  449. /* Prevent unused argument(s) compilation warning */
  450. UNUSED(hmdios);
  451. /* NOTE : This function should not be modified, when the callback is needed,
  452. the HAL_MDIOS_ErrorCallback can be implemented in the user file
  453. */
  454. }
  455. /**
  456. * @brief MDIOS WAKEUP interrupt callback
  457. * @param hmdios: mdios handle
  458. * @retval None
  459. */
  460. __weak void HAL_MDIOS_WakeUpCallback(MDIOS_HandleTypeDef *hmdios)
  461. {
  462. /* Prevent unused argument(s) compilation warning */
  463. UNUSED(hmdios);
  464. /* NOTE : This function Should not be modified, when the callback is needed,
  465. the HAL_MDIOS_WakeUpCallback could be implemented in the user file
  466. */
  467. }
  468. /**
  469. * @}
  470. */
  471. /** @defgroup MDIOS_Exported_Functions_Group3 Peripheral Control functions
  472. * @brief MDIOS control functions
  473. *
  474. @verbatim
  475. ===============================================================================
  476. ##### Peripheral Control functions #####
  477. ===============================================================================
  478. [..]
  479. This subsection provides a set of functions allowing to control the MDIOS.
  480. (+) HAL_MDIOS_GetState() API, helpful to check in run-time the state.
  481. (+) HAL_MDIOS_GetError() API, returns the errors occured during data transfer.
  482. @endverbatim
  483. * @{
  484. */
  485. /**
  486. * @brief Gets MDIOS error flags
  487. * @param hmdios: mdios handle
  488. * @retval bit map of occured errors
  489. */
  490. uint32_t HAL_MDIOS_GetError(MDIOS_HandleTypeDef *hmdios)
  491. {
  492. /* return errors flags on status register */
  493. return hmdios->Instance->SR;
  494. }
  495. /**
  496. * @brief Return the MDIOS HAL state
  497. * @param hmdios: mdios handle
  498. * @retval MDIOS state
  499. */
  500. HAL_MDIOS_StateTypeDef HAL_MDIOS_GetState(MDIOS_HandleTypeDef *hmdios)
  501. {
  502. /* Return MDIOS state */
  503. return hmdios->State;
  504. }
  505. /**
  506. * @}
  507. */
  508. /**
  509. * @}
  510. */
  511. #endif /* MDIOS */
  512. #endif /* HAL_MDIOS_MODULE_ENABLED */
  513. /**
  514. * @}
  515. */
  516. /**
  517. * @}
  518. */
  519. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/