2019年10月23日
摘要: http://blog.chinaunix.net/uid-20729583-id-1884552.html 设备类struct class一个类是一个设备的高级视图,它抽象出低级的实现细节。例如,驱动可以见到一个SCSI磁盘或者一个ATA磁盘,在类的级别,他们都是磁盘,类允许用户空间基于它们作什么 阅读全文
posted @ 2019-10-23 10:52 yangjunhe 阅读(1204) 评论(0) 推荐(0) 编辑
  2019年9月29日
摘要: 1,cat /proc/kallsysms 当前内核符号表,more /boot/system.map 内核二进制符号表。 nm vmlinux 查看内核符号列表。 nm module_name c查看模块符号列表。 2,模块参数 用户空间通过:echo -n ${value} > /sys/mod 阅读全文
posted @ 2019-09-29 10:44 yangjunhe 阅读(517) 评论(0) 推荐(0) 编辑
  2019年6月25日
摘要: Qt调试输出格式: 1,qDebug() << qPrintable(firstNode.nodeName()) << qPrintable(firstNode.nodeValue());2,http://open.21ic.com/open/video/55283, QString("select 阅读全文
posted @ 2019-06-25 15:36 yangjunhe 阅读(893) 评论(0) 推荐(0) 编辑
  2019年6月3日
摘要: https://blog.csdn.net/qq769651718/article/details/79357936 使用QPushButton、QLabel、QCheckBox等构成GUI的控件或自定义图形时,开发应用程序会变得很简单。 但是如果想在GUI中使用数十个或者数百个图形对象,向用户完美 阅读全文
posted @ 2019-06-03 09:29 yangjunhe 阅读(1631) 评论(0) 推荐(0) 编辑
  2019年4月15日
摘要: 1,QChar 转换char: char QChar::toLatin1();char QChar::toAscii(); 2,Char转QChar: QChar(char ch); 3,QString 转char*: QString str; char *ch; QByteArray ba=str 阅读全文
posted @ 2019-04-15 17:05 yangjunhe 阅读(6871) 评论(0) 推荐(0) 编辑
  2019年4月2日
摘要: OSMboxCreate(void *msg) 当创建一个mbox时候,消息邮箱允许(任务或者中断)向其他一个或者几个任务发送消息。初始化msg指向消息邮箱中的消息。 void*OSMboxPend(OS_EVENT *pevent, INT16 timeout, INT8 *err);用于任务等待 阅读全文
posted @ 2019-04-02 15:55 yangjunhe 阅读(395) 评论(0) 推荐(0) 编辑
摘要: semaphore 的作用:1,允许一个任务与其他任务(中断)同步。2,取得共享资源使用权。3,标志事件的发生。 阅读全文
posted @ 2019-04-02 15:48 yangjunhe 阅读(230) 评论(0) 推荐(0) 编辑
摘要: mutex 的创建在于共享资源打交道是可以可以保证满足互斥条件:1,必须保证继承优先级要高于可能与相应共享资源打交道的任务中优先级最高的优先级。2,不要将占有Mutex的任务挂起,也不要让占有mutex的任务等待(信号量,邮箱,消息队列等),不要将占有mutex的任务延迟。应该尽快释放资源。3,中断 阅读全文
posted @ 2019-04-02 15:15 yangjunhe 阅读(445) 评论(0) 推荐(0) 编辑
  2019年3月20日
摘要: 1,lpc1765的systicker register是24bit, cpu 频率64Mhz时候,注意不要设置systicker 的值超过24bit. 2, 使用timer 的callback函数,配置的OS_TMR_CFG_TICKS_PER_SEC 不要大于OS_TICKS_PER_SEC,O 阅读全文
posted @ 2019-03-20 16:32 yangjunhe 阅读(176) 评论(0) 推荐(0) 编辑
  2019年3月14日
摘要: damn it 阅读全文
posted @ 2019-03-14 20:03 yangjunhe 阅读(439) 评论(0) 推荐(0) 编辑