generated from Template/H563ZI-HAL-CMake-Template
	关闭 ThreadX
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build and Upload Artifact / build and upload-artifact (push) Has been cancelled
				
			This commit is contained in:
		| @@ -17,7 +17,6 @@ | ||||
|   */ | ||||
| /* USER CODE END Header */ | ||||
| /* Includes ------------------------------------------------------------------*/ | ||||
| #include "app_threadx.h" | ||||
| #include "main.h" | ||||
| #include "memorymap.h" | ||||
| #include "tim.h" | ||||
| @@ -96,8 +95,6 @@ int main(void) | ||||
|  | ||||
|   /* USER CODE END 2 */ | ||||
|  | ||||
|   MX_ThreadX_Init(); | ||||
|  | ||||
|   /* Initialize leds */ | ||||
|   BSP_LED_Init(LED_GREEN); | ||||
|   BSP_LED_Init(LED_YELLOW); | ||||
| @@ -117,8 +114,6 @@ int main(void) | ||||
|     Error_Handler(); | ||||
|   } | ||||
|  | ||||
|   /* We should never get here as control is now taken by the scheduler */ | ||||
|  | ||||
|   /* Infinite loop */ | ||||
|   /* USER CODE BEGIN WHILE */ | ||||
|   AppStart(); | ||||
| @@ -192,28 +187,6 @@ void SystemClock_Config(void) | ||||
|  | ||||
| /* USER CODE END 4 */ | ||||
|  | ||||
| /** | ||||
|   * @brief  Period elapsed callback in non blocking mode | ||||
|   * @note   This function is called  when TIM1 interrupt took place, inside | ||||
|   * HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment | ||||
|   * a global variable "uwTick" used as application time base. | ||||
|   * @param  htim : TIM handle | ||||
|   * @retval None | ||||
|   */ | ||||
| void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) | ||||
| { | ||||
|   /* USER CODE BEGIN Callback 0 */ | ||||
|  | ||||
|   /* USER CODE END Callback 0 */ | ||||
|   if (htim->Instance == TIM1) | ||||
|   { | ||||
|     HAL_IncTick(); | ||||
|   } | ||||
|   /* USER CODE BEGIN Callback 1 */ | ||||
|  | ||||
|   /* USER CODE END Callback 1 */ | ||||
| } | ||||
|  | ||||
| /** | ||||
|   * @brief  This function is executed in case of error occurrence. | ||||
|   * @retval None | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chauyin
					chauyin