main.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : main.c
  5. * @brief : Main program body
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "can_driver.h"
  22. #include "hwsetup.h"
  23. /* Private includes ----------------------------------------------------------*/
  24. /* USER CODE BEGIN Includes */
  25. #include "RefreshMenu.h"
  26. /* USER CODE END Includes */
  27. /* Private typedef -----------------------------------------------------------*/
  28. /* USER CODE BEGIN PTD */
  29. /* USER CODE END PTD */
  30. /* Private define ------------------------------------------------------------*/
  31. /* USER CODE BEGIN PD */
  32. /* USER CODE END PD */
  33. /* Private macro -------------------------------------------------------------*/
  34. /* USER CODE BEGIN PM */
  35. /* USER CODE END PM */
  36. /* Private variables ---------------------------------------------------------*/
  37. /* USER CODE BEGIN PV */
  38. /* USER CODE END PV */
  39. /* Private function prototypes -----------------------------------------------*/
  40. void SystemClock_Config(void);
  41. /* USER CODE BEGIN PFP */
  42. /* USER CODE END PFP */
  43. /* Private user code ---------------------------------------------------------*/
  44. /* USER CODE BEGIN 0 */
  45. /* USER CODE END 0 */
  46. /**
  47. * @brief The application entry point.
  48. * @retval int
  49. */
  50. int main(void)
  51. {
  52. /* USER CODE BEGIN 1 */
  53. /* USER CODE END 1 */
  54. DISABLE_IRQ; /* MCU Core and GPIO configuration */
  55. hw_voHardwareSetup1();
  56. hw_voHardwareSetup2();
  57. ENABLE_IRQ;
  58. /* USER CODE BEGIN 2 */
  59. User_Manu_Init();
  60. User_Main_Manu();
  61. /* USER CODE END 2 */
  62. /* Infinite loop */
  63. /* USER CODE BEGIN WHILE */
  64. while (1)
  65. {
  66. /* USER CODE END WHILE */
  67. /* USER CODE BEGIN 3 */
  68. }
  69. /* USER CODE END 3 */
  70. }
  71. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/