STLclockstart.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. ******************************************************************************
  3. * @file STLclockstart.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date May-2012
  7. * @brief This file contains the prototype of test function for
  8. * clock circuitry and frequency at start-up.
  9. ******************************************************************************
  10. * @copyright
  11. *
  12. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  13. *
  14. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  15. * You may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at:
  17. *
  18. * http://www.st.com/software_license_agreement_liberty_v2
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. */
  26. /* Define to prevent recursive inclusion -------------------------------------*/
  27. #ifndef __STL_CLOCK_STARTUP_H
  28. #define __STL_CLOCK_STARTUP_H
  29. /* Includes ------------------------------------------------------------------*/
  30. /* Exported types ------------------------------------------------------------*/
  31. typedef enum {
  32. LSI_START_FAIL,
  33. HSE_START_FAIL,
  34. HSI_HSE_SWITCH_FAIL,
  35. TEST_ONGOING,
  36. EXT_SOURCE_FAIL,
  37. HSI_SOURCE_FAIL,
  38. CLASS_B_VAR_FAIL,
  39. CTRL_FLOW_ERROR,
  40. FREQ_OK
  41. } ClockStatus;
  42. /* Exported constants --------------------------------------------------------*/
  43. /* Exported macro ------------------------------------------------------------*/
  44. /* Exported functions ------------------------------------------------------- */
  45. ClockStatus STL_ClockStartUpTest(void);
  46. #endif /* __STL_CLOCK_STARTUP_H */
  47. /******************* (C) COPYRIGHT STMicroelectronics *****END OF FILE****/