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.
更新port文件,与 rt_kprintf_threadsafe兼容
详细看这里 > 与软件包 rt_kprintf_threadsafe 同时使用时,测试时死机 #13
启用 rt_kprintf_threadsafe后,cmb无法正常打印错误信息
原因大致为 rt_kprintf_threadsafe中判断不在中断或者在线程中,会创建互斥量保护线程.
而cmb原来用rt_enter_critical()无法被识别为中断中,将会创建互斥量.
互斥量中将会触发RT_DEBUG_SCHEDULER_AVAILABLE
改为使用中断保护,本来也是进入了错误中断触发的
在STM32F4和STM32F7中复现问题,更新代码都得到解决