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诞生于2006年,是一款以开源、中立、社区化发展起来的物联网操作系统。 RT-Thread主要采用 C 语言编写,浅显易懂,且具有方便移植的特性(可快速移植到多种主流 MCU 及模组芯片上)。RT-Thread把面向对象的设计方法应用到实时系统设计中,使得代码风格优雅、架构清晰、系统模块化并且可裁剪性非常好。 RT-...
* IPC flags and control command definitions*/#defineRT_IPC_FLAG_FIFO 0x00/**< FIFOed IPC. @ref IPC. */#defineRT_IPC_FLAG_PRIO 0x01/**< PRIOed IPC. @ref IPC. */#defineRT_IPC_CMD_UNKNOWN 0x00/**< unknown IPC command */#defineRT_IPC_CMD_RESET 0x01/**< reset IPC object */...
/* set error code */ err_code = -RT_EEMPTY; /* enable interrupt */ rt_hw_interrupt_enable(level); break; } /* enable interrupt */ rt_hw_interrupt_enable(level); } </code c> 上述代码很容易理解,不再赘述。 如果采用查询模式,则主体代码为: <code c> /* polling mode */ while ((...
Remove definitions that "posix/io" are not in use fix the time bug optimize the handle logic on armcc/armclang fix the compiler error on iar fix dlmodule compile 'SEEK_END' undeclared eror the recycle logic about resource of pthread fix the function pthread_barrier_init return "EINVAL" if...
/* 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 */...
/* Definitions of Mutex */ /*---*/ #define OS_TYPE 5 /* 0:Win32, 1:uITRON4.0, 2:uC/OS-II, 3:FreeRTOS, 4:CMSIS-RTOS, 5:-rt-thread */ #if OS_TYPE == 0 /* Win32 */ #include <windows.h> static HANDLE Mutex[FF_VOLUMES + 1]; /* ...
| File : dfs_opts.h, the option definitions of Device FileSystem |--- | Chang Logs: | Date Author Notes | 2005-01-22 ffxz The first version. +--- */ #ifndef __DFS_CONFIG_H__ #define __DFS_CONFIG_H__ /* +---
Finally, all configuration-related macro definitions are automatically saved to the rtconfig.h file in the BSP directory. Each BSP has an rtconfig.h file. That is the configuration information of this BSP. There is already a Kconfig file for this BSP in the stm32f10x-HAL BSP directory, ...
I created a new project from MCUxpresso, defined only the RAM memories, and checked the 'link application to RAM' option: With this created project, I can debug via RAM. I would replace the MEMORY definitions created by Xpresso with those of the SDK, but I still...