[U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)

Wolfgang Denk wd at denx.de
Wed Sep 26 11:04:39 CEST 2007


In message <12896654.post at 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.




More information about the U-Boot mailing list