linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Jean Nicollerat MD" <jean.nicollerat@microdev.ch>
To: <linuxppc-embedded@ozlabs.org>
Subject: RTC with TQM823L
Date: Thu, 17 Mar 2005 08:47:46 +0100	[thread overview]
Message-ID: <HMECJAKDCPLOGPDHNAHECEKFCAAA.jean.nicollerat@microdev.ch> (raw)

Hello,
I need to have an interrup every 10ms in my application running in linux.
I have a PowerPC 823 on the board TQM823L LCD from denx.
I use the ocan driver.
I try to use the RTC modules but with the code :

	fd = open ("/dev/rtc", O_RDONLY);

	if (fd ==  -1) {
		perror("/dev/rtc");
	}
	/* Turn on update interrupts (one per second) */

	retval = ioctl(fd, RTC_UIE_ON, 0);
	if (retval == -1) {
		perror("ioctl");
		//exit(errno);
	}

I get an error message :
  ioctl : invalide argument # for then line :"retval = ioctl(fd, RTC_UIE_ON,
0);"

Can somebody help ? why it is not working or a better way to get function
called each 10ms

Thanks

Jean

             reply	other threads:[~2005-03-17  8:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-17  7:47 Jean Nicollerat MD [this message]
2005-03-17  8:23 ` RTC with TQM823L Jaap-Jan Boor
2005-03-17  8:34 ` Wolfgang Denk
2005-03-17  9:27   ` Jean Nicollerat MD
2005-03-17 10:39     ` Wolfgang Denk
2005-03-17 21:36     ` Murray Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HMECJAKDCPLOGPDHNAHECEKFCAAA.jean.nicollerat@microdev.ch \
    --to=jean.nicollerat@microdev.ch \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).