From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Fri, 27 Jul 2007 08:57:33 -0400 Subject: [U-Boot-Users] How to add Timer Interrupt to u-boot? In-Reply-To: <001301c7d026$259a6ac0$3400a8c0@nmarobert> References: <001301c7d026$259a6ac0$3400a8c0@nmarobert> Message-ID: <46A9EBBD.2090500@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Robert wrote: > Hello all: > > Everybody knows how to add Timer Interrupt to the u-boot? > I wrote a fuction called timer0_isr(), and wanted to add it to Uboot, > but I didn't know what to do, Does the uboot has a funciton like > function request_irq() in linux kernel? > Thanks in advance! > > With kind regards, > > Robert Xia Hi Robert, Interrupts are not used by u-boot (with some rare exceptions). Generally things poll and there is usually some type of counter register (processor or board-specific) for measuring elapsed time. If you really need interrupts, you will probably have to set up the vectors, interrupt registers, etc. yourself. Best regards, gvb