使用arm linux c complier进行纳秒延迟 [英] nanosecond delay using arm linux c complier

查看:137
本文介绍了使用arm linux c complier进行纳秒延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ARM linux的新手,我正在使用AT91RM9200板并使用ARM linuc C编译器..我想知道如何使用软件生成纳秒延迟...

I am new to ARM linux, i am working on AT91RM9200 board and using ARM linuc C complier.. i want to know how to produce nanosecond delay using software...

推荐答案


我是ARM linux的新手,我正在使用AT91RM9200板并使用ARM linuc C编译器。我想知道如何使用软件产生纳秒延迟。 ..
I am new to ARM linux, i am working on AT91RM9200 board and using ARM linuc C complier.. i want to know how to produce nanosecond delay using software...



看看nanosleep函数。

您可能需要重新编译内核以增加定时器中断频率,以便提高纳米睡眠功能的分辨率。

我不知道芯片上的时钟速度是多少,如果可以达到分辨率的话,你可能不得不将代码移到内核中。

Take a look at the nanosleep function.
You may need to recompile your kernel to increase the timer interrupt frequency in order to improve the resolution of the nanosleep function.
I do not know what the clock-speed on that chip is, you may have to move your code into the kernel, if that fine of a resolution is attainable.



看看nanosleep函数。

您可能需要重新编译内核以增加计时器中断频率以便进行超分辨率的纳米级功能。

我不知道芯片上的时钟速度是多少,如果可以达到分辨率的话,你可能需要将代码移到内核中。
Take a look at the nanosleep function.
You may need to recompile your kernel to increase the timer interrupt frequency in order to improve the resolution of the nanosleep function.
I do not know what the clock-speed on that chip is, you may have to move your code into the kernel, if that fine of a resolution is attainable.




谢谢...我现在使用18.432 MHZ时钟我需要通过软件产生100纳秒的延迟。我正在使用Kernal 2.4.19 ..请giude me ..



Thank ... I am using 18.432 MHZ Clock now i need to generate 100 nanosecond delay through software. i am using Kernal 2.4.19.. please giude me..



谢谢...我现在正在使用18.432 MHZ时钟我需要通过软件产生100纳秒的延迟。我正在使用Kernal 2.4.19 ..请giude me ..
Thank ... I am using 18.432 MHZ Clock now i need to generate 100 nanosecond delay through software. i am using Kernal 2.4.19.. please giude me..



您是否看过nanosleep功能?

你呢有重建内核的经验吗?如果你这样做了,你知道如何将新内核放到你的设备上吗?

Did you take a look at the nanosleep function?
Do you have experience in rebuilding your kernel? If you did so, do you know how to get the new kernel onto your device?


这篇关于使用arm linux c complier进行纳秒延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆