|
|
@ -27,7 +27,9 @@ |
|
|
|
|
|
|
|
|
/* Private includes ----------------------------------------------------------*/ |
|
|
/* Private includes ----------------------------------------------------------*/ |
|
|
/* USER CODE BEGIN Includes */ |
|
|
/* USER CODE BEGIN Includes */ |
|
|
|
|
|
#ifdef BUILD_COMMON |
|
|
#include "common.h" |
|
|
#include "common.h" |
|
|
|
|
|
#endif |
|
|
/* USER CODE END Includes */ |
|
|
/* USER CODE END Includes */ |
|
|
|
|
|
|
|
|
/* Private typedef -----------------------------------------------------------*/ |
|
|
/* Private typedef -----------------------------------------------------------*/ |
|
|
@ -105,18 +107,15 @@ int main(void) |
|
|
|
|
|
|
|
|
/* Infinite loop */ |
|
|
/* Infinite loop */ |
|
|
/* USER CODE BEGIN WHILE */ |
|
|
/* USER CODE BEGIN WHILE */ |
|
|
|
|
|
#ifdef BUILD_COMMON |
|
|
RD_INIT(); |
|
|
RD_INIT(); |
|
|
void Myprint_Init(void); |
|
|
void Myprint_Init(void); |
|
|
Myprint_Init(); |
|
|
Myprint_Init(); |
|
|
|
|
|
#endif |
|
|
SpoolendInit(); |
|
|
SpoolendInit(); |
|
|
while (1) |
|
|
while (1) |
|
|
{ |
|
|
{ |
|
|
SpoolendTask(); |
|
|
SpoolendTask(); |
|
|
printf("Hello world\n"); |
|
|
|
|
|
HAL_GPIO_TogglePin(LED1_GPIO_Port, LED1_Pin); |
|
|
|
|
|
HAL_GPIO_TogglePin(LED2_GPIO_Port, LED2_Pin); |
|
|
|
|
|
HAL_GPIO_TogglePin(LED3_GPIO_Port, LED3_Pin); |
|
|
|
|
|
HAL_Delay(500); |
|
|
|
|
|
/* USER CODE END WHILE */ |
|
|
/* USER CODE END WHILE */ |
|
|
|
|
|
|
|
|
/* USER CODE BEGIN 3 */ |
|
|
/* USER CODE BEGIN 3 */ |
|
|
|