Re: Serial port (/dev/ttySX) question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 30 January 2010, Rod Haper wrote:
>On 01/30/2010 07:03 PM, Mikkel wrote:
>> On 01/30/2010 06:25 PM, Gene Heskett wrote:
>>> Q?  This code uses the 'sleep(1)' call to time its repeat scans.  It is
>>> using no cpu as its the bottom item on an htop sorted by use report.
>>>
>>> I assume I can go into the tarball and change those 2 sleep calls to
>>> sleep(0.05) to get 20 scans a second?  I'm going to try it anyway & see
>>> if it will still build.
>>
>> Nope - sleep only accepts an integer value. Using sleep, 1 second it
>> the best you will get.
>>
>> Mikkel
>
>He probably wants usleep() which sleeps for microsecond intervals.
>
>--
>Rod
>
Precisely, a usleep(50000) would be much better .  And some man page studying 
for rpmbuild options.  I tried to edit the .c source, but then it refused to 
build and that was not the error it spit out.  We'll poke at it some more 
tomorrow unless I start plowing thru the sources I have for sc6551.asm to 
make that driver, for an H63C09 equipt trs-80 Color Computer 3, now running 
Nitros9.

Specifically, I need rpmbuild to stop after unpacking and patching the 
tarball, giving me a chance to edit the .c file to change that, and then 
restart at the next step.  I've been through the man page a couple of times, 
and how to do that hasn't exactly reached up and slapped me.  Hints welcome 
of course.

Thanks Rod.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

You will be divorced within a year.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux