Greetings, all.
I have a kernel device driver for a TS-7250 which is generating timer-based
interrupts every 500uS. The interrupt handler just flips some bits on port B
resulting in the generation of 1kHz signals on port B. The problem I have is
that my user space application also needs to control some of the bits of port
B (but not the ones the kernel driver is changing).
The simple solution would be to have my application disable all interrupts
during the read/modify/write of port B. The application doesn't need to modify
the bits of port B that often and the read/modify/write would only take a few
instructions so they would only be off for a very short time.
Can I issue disable/enable interrupts instruction in user space (via asm
directives?) or will I be forced to implement ioctl support in my device
driver to control the other bits of port B?
I'm trying to avoid using ioctls since I haven't written them for a device
driver before and am trying to get this project done soon as it is already
taking a bit longer than it was supposed to take.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|