error:用于记录错误信息 RT-Thread定义的错误码如下: /* include/rtdef.h */ /* RT-Thread error code definitions */ #define RT_EOK 0 /**< There is no error */ #define RT_ERROR 1 /**< A generic error happens */ #define RT_ETIME
RT-Thread有完整版和Nano版,对于资源受限的微控制器(MCU)系统,可通过简单易用的工具,裁剪出仅需要 3KB Flash、1.2KB RAM 内存资源的 NANO 内核版本;而相对资源丰富的物联网设备,可使用RT-Thread完整版,通过在线的软件包管理工具,配合系统配置工具实现直观快速的模块化裁剪,并且可以无缝地导入丰富的软件功能包,实现...
register rt_ubase_t temp;/*wakeup all suspend threads*/while(!rt_list_isempty(list))//遍历线程挂起链表{/*disable interrupt*/temp= rt_hw_interrupt_disable();//关中断/*get next suspend thread*/thread= rt_list_entry(list->next,structrt_thread, tlist);//获得线程/*set error code to RT...
Add finsh thread stack size check; Add finsh thread entry hook function FAL Add blocks mechanism for fal, support adding special block definitions MProtect Add MPU abstraction layer design, support ARMv7-M, ARMv8-M architecture Others Synchronize differences in kernel, file system, etc.; Re...
RT-Thread 的线程调度器是抢占式的,主要的工作就是从就绪线程列表中查找最高优先级线程,保证最高优先级的线程能够被运行,最高优先级的任务一旦就绪,总能得到 CPU 的使用权。 当调度器调度线程切换时,先将当前线程上下文保存起来,当再切回到这个线程时,线程调度器将该线程的上下文信息恢复。
/* RT-Thread error code definitions */ #define RT_EOK 0 /**< There is no error */ #define RT_ERROR 1 /**< A generic error happens */ #define RT_ETIMEOUT 2 /**< Timed out */ #define RT_EFULL 3 /**< The resource is full */...
一、概叙: 1、应用环境: rt-thread studio编译,rt-thread实时系统,fatfs版本-115a,硬件平台:stm32H743 2、目的 ftp服务器随时需要操作fatfs...
RT-Thread-Mirror/rtt-sgp30 代码Issues0Pull Requests0Wiki统计流水线 服务 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号?立即登录 master 分支(1) 标签(2) 管理 管理 master v1.0.0 v0.8.0 ...
The preprocessor definitions are different. CM7 has XIP_BOOT_HEADER_ENABLE=1 and XIP_EXTERNAL_FLASH=1 which prevents the chip erase from running at all However adding these two preprocessor definitions to the CM4 project still results in an error: FLEXSPI example started! Vendor ID: 0xef Erasi...
#include <rtthread.h> //这个也与线程有关 #include <dfs_config.h> #if defined(RT_USING_NEWLIB) || defined (RT_USING_MINILIBC) #include <string.h> #endif #ifndef __D_FS__ #define __D_FS__ #endif /* Device error codes */ ...