stm32f4xx_selftest.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. ******************************************************************************
  3. * File Name : stm32f4xx_selftest.h
  4. * Description : This file provides code for the configuration
  5. * of the stm32f4xx_selftest instances.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by Phihong under Ultimate Liberty license
  13. * , the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.phihong.com.tw
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __stm32f4xx_selftest_H
  21. #define __stm32f4xx_selftest_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "main.h"
  27. /* USER CODE BEGIN Includes */
  28. #include "crc.h"
  29. #include "iwdg.h"
  30. #include "wwdg.h"
  31. #include "tim.h"
  32. #include "adc.h"
  33. #include "stm32fxx_STLparam.h"
  34. #include "stm32fxx_STLlib.h"
  35. #include "stm32fxx_STLclassBvar.h"
  36. #include "stm32fxx_STLcpu.h"
  37. //#include "stm32fxx_STLRam.h"
  38. //#include "stm32fxx_STLclock.h"
  39. //#include "stm32fxx_STLcrc32.h"
  40. /* USER CODE END Includes */
  41. /* USER CODE BEGIN Private defines */
  42. #define ALLOC_GLOBALS
  43. #define TEST_OK 1
  44. #define TEST_FAIL 0
  45. // Watch dog declare
  46. #define __HAL_RCC_CLEAR_FLAG __HAL_RCC_CLEAR_RESET_FLAGS
  47. #define USE_INDEPENDENT_WDOG
  48. #define USE_WINDOW_WDOG
  49. // Clock declare
  50. #define MAX_FLASH_LATENCY FLASH_LATENCY_3
  51. // Flash declare
  52. #define FLASH_BOOT_START ((uint32_t)0x08000000)
  53. #define FLASH_BOOT_LENGTH 0xC000
  54. #define FLASH_AP_START ((uint32_t)0x08040000)
  55. #define FLASH_AP_LENGTH 0x60000
  56. // GPIO declare
  57. #define GPIO_PORT_TRIGGER GPIOC
  58. #define GPIO_PIN_TRIGGER GPIO_PIN_4
  59. #define GPIO_PORT_CHECK GPIOC
  60. #define GPIO_PIN_CHECK GPIO_PIN_5
  61. /* USER CODE END Private defines */
  62. /* USER CODE BEGIN Prototypes */
  63. extern void FailSafePOR(void);
  64. extern uint8_t Startup_Test(void);
  65. extern uint8_t STL_CheckStack(void);
  66. extern uint8_t Interrupt_Test_Flag;
  67. extern int ClockCheckHSE;
  68. extern int ClockCheckHSI;
  69. /* USER CODE END Prototypes */
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif /*__ crc_H */
  74. /**
  75. * @}
  76. */
  77. /**
  78. * @}
  79. */
  80. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/