![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
嵌入式编程
木鱼子酱
天予不取,天厌之。
展开
-
Vxworks和windows端的socket udp通信
Vxworks接收端#include <stio.h>#include <sockLib.h>#include <inetLib.h>int Mainapp(){ INT8 recvBuf[2048] = {0, }; INT8 recvBuf[2048] = {0, }; INT32 retCode = 0; UINT32 rxSocket = 0; //两个地址结构体 struct sockaddr_in rxAdd.原创 2020-07-23 23:21:37 · 1318 阅读 · 2 评论 -
二值信号量的使用例子Tornado
#include <stdio.h>#include <tasklib.h>#include <semlib.h>#define STACK_SIZE 0x1000void thisPrint(void);void thatPrint(void);SEM_ID sem1Sync;SEM_ID sem2Sync;int main(){ sysClkRateSet(1000); //二值信号量,初始值不同 sem1Syc ...原创 2020-07-20 21:56:08 · 549 阅读 · 0 评论