在 RT-Thread 程序中,我们启动一个线程用于循环控制 LED 灯亮灭。因此,当 main 函数运行起来后,你会看到 Wio Terminal 板载的蓝色 LED 灯开始闪烁。 该BSP 默认配置 uart0 为 RT-Thread 的 Finsh 控制台,uart0 对应的引脚在 Wio Terminal 背面 40 pin 接口上,如下图所示。 使用USB 转 TTL 串口模块连接...
2.4 RT-Thread studio开发 当然,该工程也可导出使用rt-thread studio开发。 先使用scons --dist导出工程。 再将工程导入rt-thread studio中 最后,就可在rt-thread studio就可进行开发工作了。 当然啦,后面也可在rt-thread studio中新建工程时选择笔者提交的GD32407V-START的BSP。 关于BSP的移植就到这里了,当然还...
BSP架构主要分为三个部分:libraries、tools和具体的Boards,其中libraries包含了GD32的通用库,包括每个系列的Firmware Library以及适配RT-Thread的drivers;tools是生成工程的Python脚本工具;另外就是Boards文件,当然这里的Boards有很多,我这里值列举了GD32VF103V-SEVAL。 这里先谈谈libraries和tools的构建,然后在后文单独讨论...
if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']): if GetDepend('BSP_USING_I2C0') or GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2') or GetDepend('BSP_USING_I2C3'): src += ['drv_soft_i2c.c'] # add spi drivers. if GetDepend('RT_USING_SPI'): src +=...
2 changes: 1 addition & 1 deletion 2 peripherals/i2c-tools/Kconfig Original file line numberDiff line numberDiff line change @@ -3,7 +3,7 @@ menuconfig PKG_USING_I2C_TOOLS bool "i2c-tools: a collection of i2c tools including scan/read/write" select RT_USING_PIN select RT_USING_LIBC...
GD32的BSP架构主要分为三个部分:libraries、tools和具体的Boards,其中libraries包含了GD32的通用库,包括每个系列的HAL以及适配RT-Thread的drivers;tools是生成工程的Python脚本工具;另外就是Boards文件,当然这里的Boards有很多,我这里值列举了GD32103C-eval。
CONFIG_RT_USING_I2C=y # CONFIG_RT_I2C_DEBUG is not set CONFIG_RT_USING_I2C_BITOPS=y # CONFIG_RT_I2C_BITOPS_DEBUG is not set # CONFIG_RT_USING_SOFT_I2C is not set # CONFIG_RT_USING_PHY is not set # CONFIG_RT_USING_ADC is not set # CONFIG_RT_USING_DAC is not set # CONFIG...
ThreadXapplications, which will provide ThreadX applications using ThreadX RTOS, placed inapplication/threadx/folder. SoC This directory contains all the supported SoCs for this Nuclei SDK, the directory name for SoC and its boards should always in lower case. ...
Env 是 RT-Thread 推出的开发辅助工具,针对基于 RT-Thread 操作系统的项目工程,提供编译构建环境、图形化系统配置及软件包管理功能。其内置的 menuconfig 提供了简单易用的配置剪裁工具,可对内核、组件和软件包进行自由裁剪,使系统以搭积木的方式进行构建。
使用基于RT-Thread工程输出2Hz的方波信号,即是LED灯的翻转操作,具体代码如下,连接的指针万用表依次...