下载默认工程
https://www.rt-thread.org/
配置rtconfig.h
#define STM32F103RE //修改成自己的板子
#define RT_HSE_VALUE 8000000
#define RT_USING_UART1
选择index
修改pin
测试
msh >
| /
- RT - Thread Operating System
/ | 3.1.0 build Sep 26 2018
2006 - 2018 Copyright by rt-thread team
msh >led
led on, count : 0
led off
led on, count : 1
led off
led on, count : 2
led off
led on, count : 3
方法二
还可以通过RT-Thread Env工具配置