From: Wolfgang Denk Date: Wed, 26 Sep 2007 11:04:39 +0200 Subject: [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please) In-Reply-To: Your message of "Wed, 26 Sep 2007 01:50:22 PDT." <12896654.post@talk.nabble.com> Message-ID: <20070926090439.51AE22405D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <12896654.post@talk.nabble.com> you wrote: > > Our program based on U-BOOT and we need transmit data at UART-TX with > interrupts. What makes you think you need interrupts? U-Boot is strictly single tasking, so it will not do anything else anyway while transmitting, and even a very slow CPU should be capable of streaming characters out or an UART then. > But, as we understand, U-BOOT do not have "API" for correct realization > Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be > usage Interrupts, but not used it, because only doing looping ISR register > on FLAG IRQ_UART_TX_BIT. Indeed polling is all you need. > It is not correct usage Interrupts. We need full usage interrupts. What makes you think so? Interrupts will not give you any advantages. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de People with narrow minds usually have broad tongues.