在主线程(Thread)中配置各个端口,开启一些后台线程,在VDK中选择中断进入点和中断号,
可以直接在中断函数中发送接收满的信号量给主线程,如果使用2个信号量,就可以pingpong处理,
如果使用3信号量,就可以实现完全3缓冲处理,其延时和2缓冲处理的延时是一样的。
Timer
Where only one timer is provided by the hardware, the timer is reserved
by VDK by default for its internal timekeeping functions and may not be
used in any other manner.
上面这段是说21369只有一个硬件时钟,而在VDK中,它已经分配给操作系统的
滴答使用了,所以它不能在其他方式使用了。
The interrupt dedicated for the timer can be changed or set to none on the
Kernel tab. If the interrupt selected for the VDK timing services is not
TMZHI or TMZLI, VDK does not set up or use the core timer.
上面的意思大概是时钟中断可以配置给不同地方用,如果时钟中断器中
有TMZHI和TMZLI可选的话,VDK的内核可以使用TMZHI,而其他部件要使用到
时钟中断的时候,可以使用TMZLI,当然,他们的滴答量是一样的。
This timer generates the interrupts for system ticks and provides all VDK
timing services. Disabling the timer stops sleeping, round-robin schedul-
ing, pending with timeout, periodic semaphores, and meaningful VDK
history logging.
VDK的时钟中断可以提供睡眠时钟,时间片切换时钟,等待消息超时,周期性
信号量等的节拍。