diff options
author | Oxore <oxore@protonmail.com> | 2023-03-06 01:14:11 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-03-06 01:14:11 +0300 |
commit | 5e565f35686b41ae5b5a2125213e01d8aa9d0e61 (patch) | |
tree | 7874b3eaace97797f7b5f7dc83bb4d06d592c9f7 /app | |
parent | 774d716be80fade075c2d15f30cbcf8fe0066f53 (diff) |
Move FreeRTOS handlers to retarget.cpp
Diffstat (limited to 'app')
-rw-r--r-- | app/main.c | 32 | ||||
-rw-r--r-- | app/platform/retarget.cpp | 15 |
2 files changed, 15 insertions, 32 deletions
@@ -253,36 +253,4 @@ int main () vTaskStartScheduler(); // И запускаем диспетчер задач ( он же планировщик ) } // end of main - - -#ifdef USE_FULL_ASSERT -/** - * @brief Reports the name of the source file and the source line number - * where the assert_param error has occurred. - * @param file: pointer to the source file name - * @param line: assert_param error line source number - * @retval None - */ -void assert_failed ( uint8_t* file, uint32_t line ) -{ - /* User can add his own implementation to report the file name and line number, - ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ - - /* Infinite loop */ - for (;;) - { - } -} -#endif - - -// Специальные ф-ии FreeRTOS ------------------------------------------------ // -void vApplicationMallocFailedHook ( void ) { for( ;; ); } -void vApplicationStackOverflowHook ( TaskHandle_t pxTask, char *pcTaskName ) { - (void) pxTask; - (void) pcTaskName; - for( ;; ); -} -void vApplicationIdleHook ( void ) { } - /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/app/platform/retarget.cpp b/app/platform/retarget.cpp new file mode 100644 index 0000000..52be99f --- /dev/null +++ b/app/platform/retarget.cpp @@ -0,0 +1,15 @@ +extern "C" void vApplicationMallocFailedHook(void) +{ + for (;;); +} + +extern "C" void vApplicationStackOverflowHook(void *task_handle, char *task_name) +{ + (void) task_handle; + (void) task_name; + for (;;); +} + +extern "C" void vApplicationIdleHook(void) +{ +} |