Commit Graph

80 Commits

Author SHA1 Message Date
Shell 6c1537c216
[bsp] fix smp with smart of vexpress-a9 (#8128)
Signed-off-by: Shell <smokewood@qq.com>
2023-10-13 14:20:50 +08:00
Shell eec78d9f5d
[rt-smart] testcase & improvements for memory management (#7099)
* [utest/mm] add testcase for create/init
format codes of create/init in components/mm

* [libcpu/aarch64] fix user stack check routine

* [kservice] export API for utest

* [utest/mm] testcase for aspace_map
format & modify the files under components/mm related with aspace_map

* [lwp/user_mm] add user_map_varea for mmap feature

* [mm] rename rt_mm_fault_try_fix to rt_aspace_fault_try_fix

* [utest/mm] testcase for synchronization

* [mm] modify unmap api to improve throughput

* [utest/mm] testcases for cache and varea map

* [format] remove extra space

* [utest/mm] fix testcase problem in header

* [lwp] extend map_user_varea with a flag

* [utest/mm] testcase for lwp_map_user_varea

* [libcpu/arm/cortex-a] fix kernel space layout

* [utest/mm] adjust for armv7 arch
2023-03-30 08:25:15 +08:00
Meco Man 0f461e870c [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
Shell 2d09749086
[rt-smart] PV_OFFSET as a variable (#6904)
* [rt-smart/mem] remove pv_offset

* [rt-smart] list kernel space command

* [rt-smart] restore ioremap region

* [revert] restore kernel space isolation

* [rt-smart/pv_off] code format

* [rt-smart] add get_pvoff()

* [pvoffset] pvoff as constant for C codes

* [pvoff] pvoff as interfaces
2023-02-14 23:08:32 +08:00
Meco Man f58d3c5200 rt_device_write/read return data type as rt_ssize_t
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
Shell 7450ef6c4d
[rt-smart] kernel virtual memory management layer (#6809)
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-08 21:08:55 -05:00
guo 68ca9f07a6
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)
* [dfs] sync cromfs

* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration

* [format] fix some format issue.
2022-12-16 18:38:28 +08:00
zhkag 2e488e0440
[rt-smart]同步 gitee nanosleep 修复 (#6710) 2022-12-08 10:02:40 -05:00
guo ecf2d82159
sync branch rt-smart. (#6641)
* 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 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
Man, Jianting (Meco) 0ac8f72037
[lvgl] remove suareline studio specific support for imxrt1060 (#6261)
* [lvgl] PKG_USING_LV_MUSIC_DEMO defaults by yes

* [lvgl] remove specific suppport for imxrt1060
https://github.com/lvgl/lvgl/pull/3566
2022-08-13 22:02:41 -04:00
Meco Man e6466d0fb7 [qemu] 优化qemu模拟器的LVGL文件结构 2022-05-11 20:30:38 +08:00
xfwangqiang 717c678190
fixed some warning (#5866) 2022-04-24 01:24:20 +08:00
Man, Jianting (Meco) be892de35a
[posix] add RT_USING_POSIX_SOCKET (#5731) 2022-03-29 13:39:55 +08:00
Meco Man eef0a2d810 [qmeu] chore 2022-01-16 18:54:24 +08:00
Meco Man 1948988913 [lvgl] 将lvgl目录调整到application文件夹下 2021-12-19 18:21:31 -05:00
Meco Man f4aa860d8b [qemu][lvgl] 优化lvgl显示驱动 2021-12-18 14:16:08 -05:00
Man, Jianting (Meco) 6369e89502
[posix] POSIX standard implementation for PSE51 (#5384)
* [posix] POSIX standard implementation for PSE51

- add some posix's interfaces that we haven't before.
- these PR have passed the interface definition test across gcc platfrom;
- have tested base on qemu-a9 and stm32h750-art-pi.

* [newlib] only enable POSIX.1-1990

* update projects
2021-12-17 15:34:17 +08:00
guo a6b62d37d0
Merge pull request #5394 from mysterywolf/simu 2021-12-16 16:51:30 +08:00
Tangyuxin d724eed9fc
分离内存分配接口与内存分配算法 (#5175)
* [kernel][mem] Multiple instances of small memory allocation algorithm

* [kernel][mem] Change small memory management algorithm memory header flag

* [kernel][mem] Fix assertion problem

* [kernel][slab] Multiple instances of slab memory management algorithm

* [kernel][memheap] Remove rt_malloc/rt_free/rt_realloc and other related memory interfaces

* [kernel][mem] Clean up memory space of small memory management objects

* [kernel][kservice] Add memory application interface and thread protection interface

* [kernel][kservice] Fix function return value problem

* [kernel][memheap] Optimize memheaptrace print

* [kernel][memheap] Support best mode

* [kernel][memory] Remove semaphore lock

* [kernel][memheap] Add locked flag

* [kernel][memory] Support malloc memory in interrupt

* [kernel][memheap] Add 'memheapcheck' cmd

* [kernel][mem] Fix failure to request full memory

* [kernel][memheap] Fix compilation warning

* [kernel][mem] Fix mem realloc ASSERT

* [examples][testcases] Add small mem testcase

* [examples][mem_tc] Modify test memory size

* [examples][testcases] Add slab memory management algorithm test case

* [examples][testcases] fix small memory management algorithm test case

* [kernel][memory] Adjusting memory allocation algorithm object definition and interface

* [kernel][memory] Fix compilation warning

* [examples][utest] Fix mem test case

* [examples][utest] fix slab test case

* [utest][testcases] Shorten test time

* [kernel][memory] Formatting code

* [examples][utest] Adjust test run time

* [examples][utest] Formatting code

* [bsp] update all rtconfig.h
2021-12-16 16:23:58 +08:00
Meco Man d4a72f29c7 [simulator][lvgl] 处理注释 2021-12-16 03:16:02 -05:00
Meco Man e72eb1ae95 [simulator][win32] add lvgl driver 2021-12-16 01:12:24 -05:00
Meco Man a8796abdc2 [qemu][lvgl]移除无用的定义和对外声明 2021-12-15 22:34:41 -05:00
Meco Man df474d79c5 [qemu] 调整lvgl配置参数 2021-12-15 02:17:18 -05:00
Meco Man 79e3d7f48e [qemu] format codes 2021-12-15 01:49:09 -05:00
Meco Man 5f6729e1b8 [qemu][lvgl] 优化lvgl显示驱动 2021-12-15 01:24:44 -05:00
Meco Man f6ae47fa94 [qemu][lvgl] update player demo configuration 2021-12-14 22:16:12 -05:00
Meco Man be5ad6f079 [qemu] update Kconfig for LVGL demo 2021-12-14 14:53:55 -05:00
Meco Man f9fa08208c [qemu] delete lvgl demo 2021-12-14 14:34:26 -05:00
Meco Man fbe71b7b30 [qemu] update Kconfig 2021-12-09 14:06:28 -05:00
guozhanxin 45dd302abf [qemu-a9] add .ignore_format.yml 2021-12-09 11:48:48 +08:00
guozhanxin 5aecdeb8ab [qemu-a9] add lvgl support. 2021-12-09 11:24:17 +08:00
Bernard Xiong 36d5154256
Merge pull request #5320 from mysterywolf/pse-master
[POSIX] move PSE branch to master
2021-12-05 13:16:39 +08:00
recan-li cf92ae747f fix: Fix compile warnings on qemu-vexpress-a9 platform (-Wimplicit-function-declaration) 2021-12-04 01:03:26 +08:00
Meco Man 879e9d4c54 更新rtconfig.h 2021-12-01 22:02:36 -05:00
Meco Man 30abf0ecb9 [bsp] remove empty rt_hw_us_delay 2021-10-28 16:27:31 -04:00
liukangcc 7dc99c1ff4 [update] bsp .config file and rtconfig.h file. 2021-10-14 14:49:53 +08:00
Meco Man e18d44940f [finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题 2021-09-05 01:57:26 -04:00
Meco Man 56e3571e8a implement delay.c/.h 2021-06-16 14:15:31 +08:00
zhouji 42ce237dc9 [update] 整理cortex-a aarch32启动代码
1. 去除start_gcc.s中set_secondary_cpu_boot_address代码,这部分提取到qemu-vexpress-a9 bsp中。
2. 移动cpu.c中rt_hw_cpu_id函数到cp15_gcc.s,使用汇编实现,采用wake属性,方便bsp根据cpu特性获取CPU ID(多cpu集群中,不同厂家使用组合不一样).
3. 整理start_gcc.s 适应多核启动,原来的代码只考虑到双核的情况。
2021-05-14 15:30:31 +08:00
yangjie afee7fd2b9 [bsp]update 2021-04-21 17:22:07 +08:00
yangjie b2a589b89e [bsp][qemu-vexpress-a9/drivers] change to lan911 header file 2021-04-21 10:33:58 +08:00
bernard f8d7f34728 [BSP] Add license info and code cleaup for vexpress-a9 BSP 2020-12-31 09:48:36 +08:00
yangjie ef62febf1f [SConscript]update group name 2020-12-19 16:49:11 +08:00
David Lin 8b4f55a34b
Fixed spelling mistakes of code in drv_sound.c
macro error:  
	PL041_CHANNLE_LEFT_DAC  -> PL041_CHANNEL_LEFT_DAC
	PL041_CHANNLE_RIGHT_DAC  ->  PL041_CHANNEL_RIGHT_DAC
	PL041_CHANNLE_LEFT_ADC   -> PL041_CHANNEL_LEFT_ADC
	PL041_CHANNLE_RIGHT_ADC  -> PL041_CHANNEL_RIGHT_ADC             
parameter error:
	channle -> channel
functions error:
	aaci_pl041_channle_disable -> aaci_pl041_channel_disable
	aaci_pl041_channle_enable -> aaci_pl041_channel_enable
	aaci_pl041_channle_write -> aaci_pl041_channel_write
	aaci_pl041_channle_cfg -> aaci_pl041_channel_cfg
2020-02-17 22:39:32 +08:00
David Lin 8a3b6b1da1
Update drv_pl041.h 2020-02-17 22:32:43 +08:00
David Lin 9ca77d6f51
Fixed spelling mistakes of code in drv_pl041.h
macro error:  
	PL041_CHANNLE_LEFT_DAC  -> PL041_CHANNEL_LEFT_DAC
	PL041_CHANNLE_RIGHT_DAC  ->  PL041_CHANNEL_RIGHT_DAC
	PL041_CHANNLE_LEFT_ADC   -> PL041_CHANNEL_LEFT_ADC
	PL041_CHANNLE_RIGHT_ADC  -> PL041_CHANNEL_RIGHT_ADC             
parameter error:
	channle -> channel
functions error:
	aaci_pl041_channle_disable -> aaci_pl041_channel_disable
	aaci_pl041_channle_enable -> aaci_pl041_channel_enable
	aaci_pl041_channle_read -> aaci_pl041_channel_read
	aaci_pl041_channle_write -> aaci_pl041_channel_write
	aaci_pl041_channle_cfg -> aaci_pl041_channel_cfg
2020-02-17 22:31:51 +08:00
David Lin 1f353c6f17
Fixed spelling mistakes of code in drv_pl041.c
macro error:  
	PL041_CHANNLE_NUM ->   PL041_CHANNEL_NUM 
parameter error:
	channle -> channel
functions error:
	aaci_pl041_channle_disable -> aaci_pl041_channel_disable
	aaci_pl041_channle_enable -> aaci_pl041_channel_enable
	aaci_pl041_channle_read -> aaci_pl041_channel_read
	aaci_pl041_channle_write -> aaci_pl041_channel_write
	aaci_pl041_channle_cfg -> aaci_pl041_channel_cfg
2020-02-17 22:11:57 +08:00
shaojinchun fb4959bbbb 修正qemu-vexpress-a9平台上第二核时钟不对的问题 2019-10-12 11:11:44 +08:00
EvalZero baac77c8c2 [bsp][qemu-vexpress-a9][stm32l475-atk-pandora]add audio driver copyright file header. 2019-08-07 14:03:18 +08:00
EvalZero 559e297e4b [bsp][qemu-vexpress-a9]update qemu-vexpress-a9 audio device drivers. 2019-08-06 15:01:23 +08:00