xc Delay代码
来源:互联网 发布:北京奥运会姚明数据 编辑:程序博客网 时间:2024/05/18 17:41
//XMOS延时函数
void DelayMs(unsigned ms)
{
unsigned time;
timer t;
t :> time;
for(int i = 0;i<ms;i++)
{
time += 100000;//timer 计数频率为100MHZ
t when timerafter(time) :> void;
}
}
timer.h文件中有对应的delay函数:
inline void delay_seconds(unsigned int delay);
inline void delay_milliseconds(unsigned delay);
inline void delay_microseconds(unsigned delay);
1 0
- xc Delay代码
- XC
- xc
- Delay
- delay
- delay
- postgres-xc
- xc vg
- PostgreSQL-XC
- 分类xc
- Webrtc delay-base-bwe代码分析(1): RateStatistics模块
- Webrtc delay-base-bwe代码分析(2): InterArrival模块
- Webrtc delay-base-bwe代码分析(3): OveruseEstimator模块
- Webrtc delay-base-bwe代码分析(4): OveruseDetector模块
- Webrtc delay-base-bwe代码分析(5): AimdRateControl模块
- Webrtc delay-base-bwe代码分析(6): 整体分析
- XC笔试题
- 转载:PostgreSQL-XC : Installation
- svn "cannot set LC_CTYPE locale"
- BIO NIO AIO实例
- 函数
- Zedboard上运行Linaro系统(一):SD卡分区
- 介绍一个个人觉得比较好用VC日志文件输出工具
- xc Delay代码
- 快速对图像的像素进行操作 opencv 实战
- 【Leetcode】121. Best Time to Buy and Sell Stock 【动态规划】
- 杭电-1872 稳定排序(sort+结构体)
- Tempter of the Bone
- tomcat常用配置详解
- Java中构造代码块和成员变量初始化的顺序关系2之 Cannot reference a field before it is defined
- H5混合开发中debug模式的远程调试
- java 对象clone