RT-Thread
文章平均质量分 54
DawnRayYang
我觉得偶尔我还是灵光~~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
stm32f103 IIC控制器 卡在while(!I2C_CheckEvent(I2C2, I2C_EVENT_MASTER_MODE_SELECT));
使用stm32f103+rt-thread1.1.0 使用硬件IIC控制器 应该是官方的i2c_ee代码 读取24LC02的 不挂总线直接测试的时候会卡死在 while(!I2C_CheckEvent(I2C2, I2C_EVENT_MASTER_MODE_SELECT));这句话上 挂上总线,将I2C1的PB6 PB7外接上拉电阻拉高之后,打开 #define RT_USING_I2原创 2012-11-01 09:56:07 · 15741 阅读 · 1 评论 -
stm32f103 ADC 代码 rt-thread
#ifndef __ADC_H__ #define __ADC_H__ #include void rt_hw_adc_init(void); #endif #include #include void rt_hw_adc_init(void) { ADC_InitTypeDef ADC_InitStructure; GPIO_InitTypeDef GPIO_InitStru原创 2013-06-25 09:29:55 · 6841 阅读 · 2 评论 -
串口使用校验位
平时都用的8N1的模式,这次使用了校验位,因此串口的初始化工作需要改变 #ifdef RT_USING_UART2 USART_InitStructure.USART_BaudRate = 9600; USART_InitStructure.USART_WordLength = USART_WordLength_9b; USART_InitStructure.USART_StopBit原创 2013-07-25 12:18:06 · 6702 阅读 · 0 评论 -
编译rtt的命令
scons --target=mdk4 -s原创 2014-01-10 20:46:59 · 1374 阅读 · 0 评论 -
rtt中加入RTGUI
将RTGUI中的rtgui目录拷贝到rtt的components下 然后在rtconfig.h中加入各种RT_GUI的宏定义,然后重新编译,就可以了 // #define RT_USING_RTGUI // #define RTGUI_NAME_MAX 16 // #define RTGUI_USING_FONT16 // //#define RTGUI_USING_FO原创 2014-01-10 20:48:56 · 2135 阅读 · 0 评论 -
RTGUI设置背景颜色
在rtgui_theme.c中 const rtgui_color_t default_foreground = RTGUI_RGB(0x00, 0x00, 0x00); const rtgui_color_t default_background = RTGUI_RGB(212, 208, 200); const rtgui_color_t selected_color = RTGUI_RGB原创 2014-01-17 17:20:52 · 1559 阅读 · 0 评论
分享