Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 3 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| 22 | #ifndef __MAIN_H |
22 | #ifndef __MAIN_H |
| 23 | #define __MAIN_H |
23 | #define __MAIN_H |
| 24 | 24 | ||
| 25 | #ifdef __cplusplus |
25 | #ifdef __cplusplus |
| 26 | extern "C" |
26 | extern "C" { |
| 27 | { |
- | |
| 28 | #endif |
27 | #endif |
| 29 | 28 | ||
| 30 | /* Includes ------------------------------------------------------------------*/ |
29 | /* Includes ------------------------------------------------------------------*/ |
| 31 | #include "stm32f1xx_hal.h" |
30 | #include "stm32f1xx_hal.h" |
| 32 | 31 | ||
| 33 | /* Private includes ----------------------------------------------------------*/ |
32 | /* Private includes ----------------------------------------------------------*/ |
| 34 | /* USER CODE BEGIN Includes */ |
33 | /* USER CODE BEGIN Includes */ |
| 35 | 34 | ||
| 36 | /* USER CODE END Includes */ |
35 | /* USER CODE END Includes */ |
| 37 | 36 | ||
| 38 | /* Exported types ------------------------------------------------------------*/ |
37 | /* Exported types ------------------------------------------------------------*/ |
| 39 | /* USER CODE BEGIN ET */ |
38 | /* USER CODE BEGIN ET */ |
| 40 | 39 | ||
| 41 | /* USER CODE END ET */ |
40 | /* USER CODE END ET */ |
| 42 | 41 | ||
| 43 | /* Exported constants --------------------------------------------------------*/ |
42 | /* Exported constants --------------------------------------------------------*/ |
| 44 | /* USER CODE BEGIN EC */ |
43 | /* USER CODE BEGIN EC */ |
| 45 | 44 | ||
| 46 | /* USER CODE END EC */ |
45 | /* USER CODE END EC */ |
| 47 | 46 | ||
| 48 | /* Exported macro ------------------------------------------------------------*/ |
47 | /* Exported macro ------------------------------------------------------------*/ |
| 49 | /* USER CODE BEGIN EM */ |
48 | /* USER CODE BEGIN EM */ |
| 50 | 49 | ||
| 51 | /* USER CODE END EM */ |
50 | /* USER CODE END EM */ |
| 52 | 51 | ||
| 53 | /* Exported functions prototypes ---------------------------------------------*/ |
52 | /* Exported functions prototypes ---------------------------------------------*/ |
| 54 | void Error_Handler(void); |
53 | void Error_Handler(void); |
| 55 | 54 | ||
| 56 | /* USER CODE BEGIN EFP */ |
55 | /* USER CODE BEGIN EFP */ |
| 57 | 56 | ||
| 58 | /* USER CODE END EFP */ |
57 | /* USER CODE END EFP */ |
| 59 | 58 | ||
| 60 | /* Private defines -----------------------------------------------------------*/ |
59 | /* Private defines -----------------------------------------------------------*/ |
| 61 | #define LED_Pin GPIO_PIN_13 |
60 | #define LED_Pin GPIO_PIN_13 |
| 62 | #define LED_GPIO_Port GPIOC |
61 | #define LED_GPIO_Port GPIOC |
| - | 62 | #define GREEN_LED_Pin GPIO_PIN_0 |
|
| - | 63 | #define GREEN_LED_GPIO_Port GPIOA |
|
| - | 64 | #define YELLOW_LED_Pin GPIO_PIN_1 |
|
| - | 65 | #define YELLOW_LED_GPIO_Port GPIOA |
|
| 63 | #define SPI_CD_Pin GPIO_PIN_4 |
66 | #define SPI_CD_Pin GPIO_PIN_4 |
| 64 | #define SPI_CD_GPIO_Port GPIOA |
67 | #define SPI_CD_GPIO_Port GPIOA |
| 65 | #define SPI_SCK_Pin GPIO_PIN_5 |
68 | #define SPI_SCK_Pin GPIO_PIN_5 |
| 66 | #define SPI_SCK_GPIO_Port GPIOA |
69 | #define SPI_SCK_GPIO_Port GPIOA |
| 67 | #define SPI_NSS_Pin GPIO_PIN_6 |
70 | #define SPI_NSS_Pin GPIO_PIN_6 |
| Line 71... | Line 74... | ||
| 71 | #define SPI_RESET_Pin GPIO_PIN_0 |
74 | #define SPI_RESET_Pin GPIO_PIN_0 |
| 72 | #define SPI_RESET_GPIO_Port GPIOB |
75 | #define SPI_RESET_GPIO_Port GPIOB |
| 73 | #define enableAFRN_Pin GPIO_PIN_1 |
76 | #define enableAFRN_Pin GPIO_PIN_1 |
| 74 | #define enableAFRN_GPIO_Port GPIOB |
77 | #define enableAFRN_GPIO_Port GPIOB |
| 75 | 78 | ||
| 76 | /* USER CODE BEGIN Private defines */ |
79 | /* USER CODE BEGIN Private defines */ |
| 77 | 80 | ||
| 78 | /* USER CODE END Private defines */ |
81 | /* USER CODE END Private defines */ |
| 79 | 82 | ||
| 80 | #ifdef __cplusplus |
83 | #ifdef __cplusplus |
| 81 | } |
84 | } |
| 82 | #endif |
85 | #endif |
| 83 | 86 | ||