25.3 任务信号量实验 25.3.1 任务信号量代替二值信号量 任务通知代替消息队列是在 UCOS 中创建了两个任务,其中一个任务是用于接收任务 信号量,另一个任务发送任务信号量。两个任务独立运行,发送任务信号量的任务是通过 检测按键的按下情况发送,等待任务在任务信号量中没有可用的信号量之前就一直等待, 获取到信号量以后就继续执行,这样子是为了代替二值信号量,任务同步成功则继续执行, 然后在串口调试助手里将运行信息打印出来,具体见代码清单 25-6 加粗部分。 代码清单 25-6 任务通知代替二值信号量 1 #include 2 3 4 static OS_TCB AppTaskStartTCB; //任务控制块 5 6 static OS_TCB AppTaskPostTCB; 7 static OS_TCB AppTaskPendTCB; 8 9 10 11 12 static CPU_STK AppTaskStartStk[APP_TASK_START_STK_SIZE]; //任务堆栈 13 14 static CPU_STK AppTaskPostStk [ APP_TASK_POST_STK_SIZE ]; 15 static CPU_STK AppTaskPendStk [ APP_TASK_PEND_STK_SIZE ]; 16 17 18 19 20 static void AppTaskStart (void *p_arg); //任务函数声明 21 22 static void AppTaskPost ( void * p_arg ); 23 static void AppTaskPend ( void * p_arg ); 24 25 26 27 int main (void) 28 { 29 OS_ERR err; 30 31 32 OSInit(&err); //初始化 33 uC/OS-III 34 35 /* 创建起始任务 */ 36 OSTaskCreate((OS_TCB *)&AppTaskStartTCB, 37 //任务控制块地址 38 (CPU_CHAR *)"App Task Start", 39 //任务名称 40 (OS_TASK_PTR ) AppTaskStart, 41 //任务函数 42 (void *) 0, 43 //传递给任务函数(形参 p_arg)的实参 44 (OS_PRIO ) APP_TASK_START_PRIO,
2021-12-21 21:34:41 7.15MB 从0到1 uCOSIII
1
官方手册。16位GMSL串行器,带高抗扰性/高带宽模式和同轴或STP电缆驱动
2021-09-26 19:07:06 2.15MB 手册
1
完整版MAX9286英文数据手册,文档介绍详细,详细说明寄存器的配置,数据格式,典型的应用案例等,1.5Gbps高速传输的MAX9286可以连接4路GMSL摄像头,可兼容MAX96705、MAX9271等串行器。可使用UART或者IIC接口控制MAX9286芯片进行读写寄存器等操作,方便用户设计使用。
2021-07-20 12:05:42 2.28MB max96705 max9286 gmsl fpd-link
1
General Description The MAX96705 is a compact serializer with features especially suited for automotive camera applications. It is function and pin compatible with the MAX9271. In highbandwidth mode, the parallel-clock maximum is 116MHz for 12-bit linear or combined HDR data types. The embedded control channel operates at 9.6kbps to 1Mbps in UART, I2C, and mixed UART/I2C modes, allowing programming of serializer, deserializer, and camera registers independent of video timing. For driving longer cables, the IC has programmable pre/deemphasis. Programmable spread spectrum is available on the serial output. The serial output meets ISO 10605 and IEC 61000-4-2 ESD standards. The core supply range is 1.7V to 1.9V, and the I/O supply range is 1.7V to 3.6V. The MAX96705 is available in a 32-pin (5mm x 5mm) TQFN package with 0.5mm lead pitch, and operates over the -40°C to +115°C temperature range
2021-02-24 09:16:15 1.32MB max96705 max9268 max9296 gmsl
1