回复
梅科尔工作室-鸿蒙设备开发实战之萌新起步 第3天-快速入门
弗莱不回来
发布于 2022-7-17 15:55
浏览
0收藏
Hello_world 程序编写
添加源码文件
编写代码
#include<stdio.h>
#include"ohos_init.h"
void Hello_world(void)
{
print("Hello World\r\n");
}
APP_FEATURE_INIT(Hello_world);
编写静态库的BUILD.gn文件
static_library("myapp"){
source -[
"hello_world.c"
]
include_dirs -[
"//utils/native/lite/include"
]
}
编写模块编译构建文件BUILD.gn

点亮LED
添加源码文件

编写代码

编写静态库的BUILD.gn文件

编写模块编译构建文件BUILD

编译构建介绍
编译模块

代码运行

CMSIS接口简介

分类
标签
已于2022-7-17 15:55:52修改
赞
收藏
回复
相关推荐




















