Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: How do I program interrupts ?? Date: Sun, 26 Dec 1999 15:28:38 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 35 Message-ID: <845cbr$qt71@chuka.playstation.co.uk> References: <843kp1$saq1@chuka.playstation.co.uk> NNTP-Posting-Host: host5-99-55-221.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 The serial port hardware and interrupts in general can't be accessed directly using the libps library. To access the serial port you'll need to make calls to it via the tty device. The tty device allows you to open(),close(),read() and write() to the port, and the ioctl() function provides a set of commands for changing port settings. To get an idea of how some of these functions work, take a look at the source code in this zip: http://www.netyaroze-europe.com/~imilco/ftp/cyclo20a.zip To make use of the ioctl() function you'll also need the updated libps library at http://www.netyaroze-europe.com/yaroze/ftp/tools/dev/libps.zip And when you've worked out how to use all the ioctl() commands, let me know. :-) Pete. Joachim Mertens wrote:- > Hi... > Can anyone tell me where the interrupt registers are ? How is the interrupt > system working on the PSX ? > I want to read/write on the serial interface and so I would be very happy > about some information about interrupt programming. > Thanx! > > Jo... > > >