VDK中断

 

在主线程(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的时钟中断可以提供睡眠时钟,时间片切换时钟,等待消息超时,周期性

信号量等的节拍。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值