Rev 66 | Rev 70 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 66 | Rev 67 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | /* Define to prevent recursive inclusion -------------------------------------*/ |
22 | /* Define to prevent recursive inclusion -------------------------------------*/ |
23 | #ifndef __MAIN_H |
23 | #ifndef __MAIN_H |
24 | #define __MAIN_H |
24 | #define __MAIN_H |
25 | 25 | ||
26 | #ifdef __cplusplus |
26 | #ifdef __cplusplus |
27 | extern "C" |
27 | extern "C" { |
28 | { |
- | |
29 | #endif |
28 | #endif |
30 | 29 | ||
31 | /* Includes ------------------------------------------------------------------*/ |
30 | /* Includes ------------------------------------------------------------------*/ |
32 | #include "stm32l1xx_hal.h" |
31 | #include "stm32l1xx_hal.h" |
33 | 32 | ||
Line 36... | Line 35... | ||
36 | #include "display.h" |
35 | #include "display.h" |
37 | #include "nvram.h" |
36 | #include "nvram.h" |
38 | 37 | ||
39 | #include "libPLX/plx.h" |
38 | #include "libPLX/plx.h" |
40 | 39 | ||
41 | /* USER CODE END Includes */ |
40 | /* USER CODE END Includes */ |
42 | 41 | ||
43 | /* Exported types ------------------------------------------------------------*/ |
42 | /* Exported types ------------------------------------------------------------*/ |
44 | /* USER CODE BEGIN ET */ |
43 | /* USER CODE BEGIN ET */ |
45 | 44 | ||
46 | #define TX_USART_BUFF_SIZ 512 |
45 | #define TX_USART_BUFF_SIZ 512 |
47 | #define RX_USART_BUFF_SIZ 512 |
46 | #define RX_USART_BUFF_SIZ 512 |
48 | 47 | ||
49 | #define MAXRDG 32 |
48 | #define MAXRDG 32 |
Line 95... | Line 94... | ||
95 | extern UART_HandleTypeDef huart3; |
94 | extern UART_HandleTypeDef huart3; |
96 | 95 | ||
97 | extern TIM_HandleTypeDef htim3; |
96 | extern TIM_HandleTypeDef htim3; |
98 | extern TIM_HandleTypeDef htim9; |
97 | extern TIM_HandleTypeDef htim9; |
99 | 98 | ||
100 | /* USER CODE END ET */ |
99 | /* USER CODE END ET */ |
101 | 100 | ||
102 | /* Exported constants --------------------------------------------------------*/ |
101 | /* Exported constants --------------------------------------------------------*/ |
103 | /* USER CODE BEGIN EC */ |
102 | /* USER CODE BEGIN EC */ |
104 | 103 | ||
105 | /* USER CODE END EC */ |
104 | /* USER CODE END EC */ |
106 | 105 | ||
107 | /* Exported macro ------------------------------------------------------------*/ |
106 | /* Exported macro ------------------------------------------------------------*/ |
108 | /* USER CODE BEGIN EM */ |
107 | /* USER CODE BEGIN EM */ |
109 | 108 | ||
110 | /* USER CODE END EM */ |
109 | /* USER CODE END EM */ |
111 | 110 | ||
112 | /* Exported functions prototypes ---------------------------------------------*/ |
111 | /* Exported functions prototypes ---------------------------------------------*/ |
113 | void Error_Handler(void); |
112 | void Error_Handler(void); |
114 | 113 | ||
115 | /* USER CODE BEGIN EFP */ |
114 | /* USER CODE BEGIN EFP */ |
116 | extern context_t context[MAX_DISPLAYS]; |
115 | extern context_t context[MAX_DISPLAYS]; |
117 | 116 | ||
118 | extern uint8_t btConnected(); |
117 | extern uint8_t btConnected(); |
119 | /* USER CODE END EFP */ |
118 | /* USER CODE END EFP */ |
120 | 119 | ||
Line 155... | Line 154... | ||
155 | #define PLX_TX_GPIO_Port GPIOA |
154 | #define PLX_TX_GPIO_Port GPIOA |
156 | #define PLX_RX_Pin GPIO_PIN_10 |
155 | #define PLX_RX_Pin GPIO_PIN_10 |
157 | #define PLX_RX_GPIO_Port GPIOA |
156 | #define PLX_RX_GPIO_Port GPIOA |
158 | #define USB_PWR_Pin GPIO_PIN_12 |
157 | #define USB_PWR_Pin GPIO_PIN_12 |
159 | #define USB_PWR_GPIO_Port GPIOC |
158 | #define USB_PWR_GPIO_Port GPIOC |
160 | /* USER CODE BEGIN Private defines */ |
159 | /* USER CODE BEGIN Private defines */ |
161 | 160 | ||
162 | /* USER CODE END Private defines */ |
161 | /* USER CODE END Private defines */ |
163 | 162 | ||
164 | #ifdef __cplusplus |
163 | #ifdef __cplusplus |
165 | } |
164 | } |
166 | #endif |
165 | #endif |
167 | 166 |