linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RTC with TQM823L
@ 2005-03-17  7:47 Jean Nicollerat MD
  2005-03-17  8:23 ` Jaap-Jan Boor
  2005-03-17  8:34 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Jean Nicollerat MD @ 2005-03-17  7:47 UTC (permalink / raw)
  To: linuxppc-embedded

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

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

end of thread, other threads:[~2005-03-17 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17  7:47 RTC with TQM823L Jean Nicollerat MD
2005-03-17  8:23 ` 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

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).