选了freescale的一块板子,结果发现要用yocto开发,网上一搜攻略,汗~,少的可怜!
7年前开发android系统做了先驱,现在看来又要做先烈了,开了一个交流群,欢迎爱好者和开发者一起交流,转载请注明出处。
QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样
========================================================
伪代码 ——>>>>>>>>>>>>>>>>
===================================
main()
uart.open
uart.setting
net.open
net.setting
can.open
can.setting
----------------------------
uart.read.thread.start ——> *uart.read.fun
net.read.thread.start ——> *net.read.fun
can.read.thead.start ——> *can.read.fun
----------------------------
uart.read.thread.stop
net.read.thread.stop
can.read.thread.stop
----------------------------
uart.close
net.close
can.close
======================================
new thread
*uart.read.fun; *net.read.fun; *can.read.fun;
while(1) {
read.data
judge.data
send.data ——> *data.handle.fun (msg? new thread?)
}
======================================
synchronized fun
Used by *data.handle.fun:
*uart.write.fun
*net.write.fun
*can.write.fun
======================================