All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] RTDM for a GPIO line in RT mode
@ 2013-05-22 22:10 CF
  2013-05-23  7:14 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: CF @ 2013-05-22 22:10 UTC (permalink / raw)
  To: xenomai

Hello,

Despite my munerous reading, i'm locked in how to perform a basic RTDM
for a simple ppc board.

This is a simple pin level setting. The linux kernel module i developped
follow theses steps:
-reading DTS for IOCTL et GPIOCTL base adress registers
- out_be32(addr, value) at theses register to set line as an output and
then set the logical level with setbits32(addr, bit) or clrbits32(addr,bit)

Basically, it works but in NRT  ops modes, so i'm unable (or at least i
lack indication) to do this in RT ops mode (i don't think it is
important, but i use ioctl to make my changes). I based my work on
tut01/tut02 drivers, except i end up in using ioctl instead or
read/write in the RTDM driver.

I guess i still could read the DTS in nrt mode (because it is done at
rtdm_dev_register() time and won't interfere with RT task), but how can
i drive the hardware directly in RT op mode ?

Thanks you for your help,
JG


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-25 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 22:10 [Xenomai] RTDM for a GPIO line in RT mode CF
2013-05-23  7:14 ` Gilles Chanteperdrix
2013-05-25 10:28   ` CF
2013-05-25 11:22     ` Gilles Chanteperdrix
2013-05-25 11:38       ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.