Closed
Conversation
Author
Owner
|
是不是不同版本的 Free RTOS 方法也不一样? |
Author
我看了,V9到V10.51都是可以的。 |
Author
|
可以好好测下。。。。 |
Owner
|
以前的版本我也是测试过的,所以这块建议增加版本检测的宏 |
|
实测可用,不需要改ft源码了,感谢 |
|
gangli01
reviewed
May 12, 2024
| UBaseType_t uxPriority; /*< The priority of the task. 0 is the lowest priority. */ | ||
| StackType_t * pxStack; /*< Points to the start of the stack. */ | ||
| char pcTaskName[ configMAX_TASK_NAME_LEN ]; /*< Descriptive name given to the task when created. Facilitates debugging only. */ /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ | ||
| } tskTCB_t; |
There was a problem hiding this comment.
Hi @fyyxxm, 这里的tskTCB_t和task.c中tskTCB_t并没有完全对齐,如果FreeRTOSConfig.h中使能了更多的feature, 两边的结构体就会不一致,是不是存在解析错位的风险?
gangli01
reviewed
May 12, 2024
| return (const char *)OSTCBCurPtr->NamePtr; | ||
| #elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_FREERTOS) | ||
| return vTaskName(); | ||
| tskTCB_t * task_handle = (tskTCB_t *)xTaskGetCurrentTaskHandle(); |
There was a problem hiding this comment.
这里是否可以使用TaskHandle_t替换tskTCB_t *。
TaskHandle_t task_handle = xTaskGetCurrentTaskHandle();
There was a problem hiding this comment.
我尝试这样修改,存在”struct tskTaskControlBlock“未定义的问题。
我改用traceRETURN_xTaskGetCurrentTaskHandle来实现,
#82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.