rt-thread-official/tools/ci
Shell 6977cf9101
[src] add rt_hw_cpu_id() wrapper API (#8894)
* [src] add rt_hw_cpu_id() wrapper API

rt_hw_cpu_id() is an unsafe API which should not be used by most codes
directly. It's error-prone because it must be used in proper context,
otherwise it can lead to errors and unpredictable behavior.

This patch adds a wrapper API for rt_hw_cpu_id() to address this risk.
It includes the context-checking functionality and provides a safer
alternative for obtaining CPU IDs, ensuring that it is used correctly
within the appropriate context.

Signed-off-by: Shell <smokewood@qq.com>

* fixup UMP

* update API & comment

* ci: cpp_check

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-05-08 09:22:09 +08:00
..
bsp_buildings.py [ci][bsp_build]attachconfig add scons args parsing (#8464) 2024-01-09 22:03:32 +08:00
compile_bsp_with_drivers.py Added CI to compile more drivers for the changed BSP 2023-06-28 22:07:02 -04:00
cpp_check.py [src] add rt_hw_cpu_id() wrapper API (#8894) 2024-05-08 09:22:09 +08:00
file_check.py sync smart & dfs (#8672) 2024-03-28 23:42:56 +08:00
format_ignore.py [CI] Added feature to filter out files to file_check.py that do not require cppcheck (#7499) 2023-05-16 07:51:16 +08:00