main.h.bak 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : main.h
  5. * @brief : Header for main.c file.
  6. * This file contains the common defines of the application.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2022 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __MAIN_H
  22. #define __MAIN_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "stm32f0xx_ll_crs.h"
  28. #include "stm32f0xx_ll_rcc.h"
  29. #include "stm32f0xx_ll_bus.h"
  30. #include "stm32f0xx_ll_system.h"
  31. #include "stm32f0xx_ll_exti.h"
  32. #include "stm32f0xx_ll_cortex.h"
  33. #include "stm32f0xx_ll_utils.h"
  34. #include "stm32f0xx_ll_pwr.h"
  35. #include "stm32f0xx_ll_dma.h"
  36. #include "stm32f0xx_ll_spi.h"
  37. #include "stm32f0xx_ll_gpio.h"
  38. #if defined(USE_FULL_ASSERT)
  39. #include "stm32_assert.h"
  40. #endif /* USE_FULL_ASSERT */
  41. /* Private includes ----------------------------------------------------------*/
  42. /* USER CODE BEGIN Includes */
  43. /* USER CODE END Includes */
  44. /* Exported types ------------------------------------------------------------*/
  45. /* USER CODE BEGIN ET */
  46. /* USER CODE END ET */
  47. /* Exported constants --------------------------------------------------------*/
  48. /* USER CODE BEGIN EC */
  49. /* USER CODE END EC */
  50. /* Exported macro ------------------------------------------------------------*/
  51. /* USER CODE BEGIN EM */
  52. /* USER CODE END EM */
  53. /* Exported functions prototypes ---------------------------------------------*/
  54. void Error_Handler(void);
  55. /* USER CODE BEGIN EFP */
  56. /* USER CODE END EFP */
  57. /* Private defines -----------------------------------------------------------*/
  58. #define ENC_CS_Pin LL_GPIO_PIN_4
  59. #define ENC_CS_GPIO_Port GPIOA
  60. #ifndef NVIC_PRIORITYGROUP_0
  61. #define NVIC_PRIORITYGROUP_0 ((uint32_t)0x00000007) /*!< 0 bit for pre-emption priority,
  62. 4 bits for subpriority */
  63. #define NVIC_PRIORITYGROUP_1 ((uint32_t)0x00000006) /*!< 1 bit for pre-emption priority,
  64. 3 bits for subpriority */
  65. #define NVIC_PRIORITYGROUP_2 ((uint32_t)0x00000005) /*!< 2 bits for pre-emption priority,
  66. 2 bits for subpriority */
  67. #define NVIC_PRIORITYGROUP_3 ((uint32_t)0x00000004) /*!< 3 bits for pre-emption priority,
  68. 1 bit for subpriority */
  69. #define NVIC_PRIORITYGROUP_4 ((uint32_t)0x00000003) /*!< 4 bits for pre-emption priority,
  70. 0 bit for subpriority */
  71. #endif
  72. /* USER CODE BEGIN Private defines */
  73. /* USER CODE END Private defines */
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /* __MAIN_H */