添加hello world源码文件

编写hello world业务代码

编写业务编译构建文件BUILD.gn


my_ app是相对路径,指向. /appl icat ions/ BearPi/BearPi -HM/ sample/my_ app/BUILD. gn。
myapp是目标,指向. /applications/ BearPi/ BearPi -HM/ sample/my_ app/ BUILD. gn中的static_ library(" myapp" )
调试hello world程序

添加点亮LED源码文件


调试LED灯程序(添加LED灯闪烁源码)

介绍Ninja编译工具

编译模块
模块gn文件

业务gn文件

json文件

执行代码
初始化入口

注册入口

CMSIS-RTOS2接口

OpenHarmony与CMSIS-RTOS2接口联系

使用CMSIS-RT0S2











