summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-02-25Merge pull request #6981 from RT-Thread/masterserialX-devMan, Jianting (Meco)
sync from master
2023-02-22add serialX hardware driver for bluetrum gd32 n32 nuc980 renesas (#6952)thewon86
add serialX hardware driver for bluetrum gd32 n32 nuc980 renesas
2023-02-21separate init & configure of uart opsthewon86
2023-02-21fix rt_kprint 64bit errorzhkag
2023-02-20implement serialX UART device frameworkthewon86
2023-02-21[fix] pipelinewangxiaoyao
2023-02-21[src] add assertion for debuggingwangxiaoyao
2023-02-07rt_device_write/read return data type as rt_ssize_tMeco Man
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-02[doxygen] Fix some warnings in doxygen (#6899)tuduweb
2023-02-02[Kernel] Add Smart ID in logo show (#6898)Bernard Xiong
2023-01-19[doxygen][src] Fix the comment in rt_custom_object_createsupperthomas
Signed-off-by: supperthomas <[email protected]>
2023-01-12modify RT_ALIGN_SIZE as 8 by defaultMeco Man
2023-01-08[rt-smart] kernel virtual memory management layer (#6809)Shell
synchronize virtual memory system works. adding kernel virtual memory management layer for page-based MMU enabled architecture porting libcpu MMU codes porting lwp memory related codes
2023-01-02[kernel][timer] 修复在IAR下数据类型报错 (#6804)Man, Jianting (Meco)
2022-12-26[kernel] RT_NAME_MAX set the range from 1Meco Man
RT_NAME_MAX为0是nano中使用,完整版中不支持const name
2022-12-20[kenel] add static name for rt_object (#6422)Man, Jianting (Meco)
增加静态object 名字,用户可以根据内存实际使用情况决定使用动态还是静态。适用于资源极度受限的情况下使用。该功能在RT-Thread完整版本中不常用,主要用于RT-Thread Nano,以缩减对内存的占用。由于没有动态拼接支持,在静态名字下,空闲线程的名字在多核时将命名成相同的名字。
2022-12-20[smart/aarch64] code sync (#6750)Shell
* [smart/aarch64] sync aarch64
2022-12-16[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)guo
* [dfs] sync cromfs * [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration * [format] fix some format issue.
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-03sync branch rt-smart. (#6641)guo
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <[email protected]> Co-authored-by: zhkag <[email protected]>
2022-11-21Revert "[kernel] 修正复制name字段时潜在的内存踩踏问题"Man, Jianting (Meco)
This reverts commit 2d17fe736f79860237d8a05c57f9aabcfdab4c87.
2022-11-14[kernel] 优化Sconscript脚本Meco Man
2022-11-14[kernel] 修正复制name字段时潜在的内存踩踏问题Meco Man
2022-11-06Merge pull request #6523 from BernardXiong/nested_mutexBernard Xiong
[Kernel] Add nested mutex feature
2022-11-05[update]更正 RT_MEMHEAP_BSET_MODE -> RT_MEMHEAP_BEST_MODE 拼写错误。liangyingjian
2022-10-25Update src/ipc.cMan, Jianting (Meco)
2022-10-19[bsp][c28x] add support to not disable global interrupt in context-switch to ↵Yunjie Gu
enable zero-latency isr for critical interrupts.
2022-10-17[Kernel] Remove the debug definition for mutexBernard Xiong
2022-10-16[Kernel] Trim trailing spaces in ipc.cBernard Xiong
2022-10-16[Kernel] Add prioceiling feature in mutexBernard Xiong
2022-10-15[Kernel] Add nested mutex featureBernard Xiong
2022-10-08remove unused code to improve speedFrank Buss
The RT_ASSERT(obj != object) line is only compiled for debug mode. But the rt_enter/exit_critical causes the compiler not to optimize at least these 2 calls, even if it could optimize out the whole loop, because the rt_list_entry function has no side effect, and RT_ASSET is a no-operation in release mode. So this patch fixes this: - no warnings anymore - better speed in release mode
2022-09-27修复低概率终端无法输入问题 (#6464)Tangyuxin
* [ulog] Fix the problem that the terminal cannot input * [mem] Fix NULL pointer access
2022-09-20[fix] Fix simulator compilation warnings (#6438)Tangyuxin
* [fix] Fix simulator compilation warnings * Update bsp/simulator/rtconfig_project.h Co-authored-by: Man, Jianting (Meco) <[email protected]>
2022-09-19[memheap] Fix the Oz optimization problem of AC6 compilertangyuxin
2022-09-07[kernel][version] 采用新的版本宏定义Meco Man
版本控制规范:https://semver.org/ 目前的版本子号不是很规范,其中RT_VERSION甚至和VS那边造成了冲突 ```c /* RT-Thread version information */ #define RT_VERSION 4L /**< major version number */ #define RT_SUBVERSION 1L /**< minor version number */ #define RT_REVISION 1L /**< revise version number */ ``` 参考ESP32: ```c /** Major version number (X.x.x) */ #define ESP_ARDUINO_VERSION_MAJOR 2 /** Minor version number (x.X.x) */ #define ESP_ARDUINO_VERSION_MINOR 0 /** Patch version number (x.x.X) */ #define ESP_ARDUINO_VERSION_PATCH 3 ``` 建议改成: ```c /* Major version number (X.x.x) */ #define RT_VERSION_MAJOR 4 /* Minor version number (x.X.x) */ #define RT_VERSION_MINOR 2 /* Patch version number (x.x.X) */ #define RT_VERSION_PATCH 0 ```
2022-09-02[kservice] 增加printf格式2进制和8进制,RT_KPRINTF_USING_LONGLONG ↵winfenggao
和 RT_PRINTF_SPECIAL 做了相应处理 (#6361) * 增加printf格式2进制和8进制,RT_KPRINTF_USING_LONGLONG 和 RT_PRINTF_SPECIAL 做了相应处理
2022-08-31[kservice][ti c28x]rt_vsnprintf (#6349)Yunjie Gu
2022-08-31[kernel] 当tick为0时rt_thread_sleep不应该挂起线程Ylne
2022-08-31[kernel] 为rt_thread_sleep添加上下文检查Ylne
2022-08-29tms320f28379d fix init (#6343)YuQi
解决 tms320f28379d bsp 启动的问题。主要改动如下。 修正context.s中汇编代码错误。在旧版的代码中,操作数为32位而汇编命令却使用了针对16位数据的命令MOV,导致程序在某些情况无法正常启动线程。 由于C28x的平台下,SP只支持16bit寻址,所以用于线程空间存放的heap以及ebss段都需要放在低16位的空间,针对这个问题修改了CMD文件。此外还增加基于CMD文件基于RAM的支持,方便调试。 新增rtdef.h中RT_SECTION,RT_USED,ALIGN和RT_WEAK的定义。旧版bsp中这些定义为空,导致INIT_EXPORT注册的函数失效。 修改程序启动代码,在程序入口直接调用原生启动代码 以上改动在LAUNCHXL-F28379D 通过了测试。
2022-08-28change version number to v5.0.0 (#6291)Man, Jianting (Meco)
2022-08-25[kernel] 优化内置线程命名Meco Man
main线程栈指定对齐字节数
2022-08-24[kernel] 修复 rt_memset 使其 word size independent.Yunjie Gu
For compatibility with 16bit addressing 32bit CPU (e.g. TI C28x).
2022-08-20[bsp][tms320f28379d] Fix compile ti (#6254)Yunjie Gu
* compile_ok Issues fixed: (1) update .config: select FINSH_USING_SYMTAB (2) add rt_size_t in rtconfig_project.h (3) fix finsh problems of using sym table (4) update .project to include ipc source codes. Todo list: (1) automate the build source selection of ccs and reconcile it with scons * change compiler * msh can run now the key step is to swap the order of rt_interrupt_nest -- and RT_OBJECT_HOOK_CALL(rt_interrupt_leave_hook,()) in irq.c. This is an improvised solution and an issue has been raised. * Update 2837x_FLASH_lnk_cpu1.cmd The original one is also fine. Just to make it more rigorous since FSymTab is in data section. * update readme.md Complier selection and maintainer update. Co-authored-by: YuQi <[email protected]>
2022-08-16[kernel/schedule] fix the time slice issueblta
2022-08-14[kservice] 增加换行符Meco Man
2022-08-07[fix] the risk for function exit() when open pthread support. (#6229)xiangxistu
* [fix] the risk for function exit() when open pthread support. * [update] modify annotation from "user data" to "pthread_data".
2022-08-02Fix some compilation warning (#5744)dongly
* Fix some compilation warning * 补充修正一些数据类型的使用错误 Co-authored-by: Meco Man <[email protected]>
2022-06-29[enhancement] Add string information for error (#3186)a1012112796
* [enhancement]Add string information for error * Update src/kservice.c * Update src/kservice.c Co-authored-by: Man, Jianting (Meco) <[email protected]> * remove %m Signed-off-by: a1012112796 <[email protected]> Co-authored-by: Meco Man <[email protected]>