We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 tos_cpu.c 文件中 KNL k_stack_t *cpu_task_stk_init(void *entry, void *arg, void *exit, k_stack_t *stk_base, size_t stk_size) { cpu_data_t *sp;
sp = (cpu_data_t *)&stk_base[stk_size]; sp = (cpu_data_t *)((cpu_addr_t)sp & 0xFFFFFFF8);
#if TOS_CFG_TASK_STACK_DRAUGHT_DEPTH_DETACT_EN > 0u uint8_t *slot = (uint8_t *)&stk_base[0]; for (; slot < (uint8_t *)sp; ++slot) { *slot = 0xCC; }
在keil的编译器中,变量声明不能放在在执行语句之后,在移植的时候会报错。
The text was updated successfully, but these errors were encountered:
新版keil 旧版keil 采用以上方式可以使得keil支持C99
Sorry, something went wrong.
OK 感谢指出,我们看看怎么提示下开发者移植的时候注意
No branches or pull requests
在 tos_cpu.c 文件中
KNL k_stack_t *cpu_task_stk_init(void *entry,
void *arg,
void *exit,
k_stack_t *stk_base,
size_t stk_size)
{
cpu_data_t *sp;
#if TOS_CFG_TASK_STACK_DRAUGHT_DEPTH_DETACT_EN > 0u
uint8_t *slot = (uint8_t *)&stk_base[0];
for (; slot < (uint8_t *)sp; ++slot) {
*slot = 0xCC;
}
在keil的编译器中,变量声明不能放在在执行语句之后,在移植的时候会报错。
The text was updated successfully, but these errors were encountered: