Re: [libopenstm32-devel] USART interrupt
Status: Inactive
Brought to you by:
uh1763
From: Linus C. <li...@li...> - 2010-09-02 21:34:00
|
I have it!! change: usart_set_mode(USART3, USART_MODE_TX); to: usart_set_mode(USART3, USART_MODE_TX_RX); and change: ch = USART_DR(USART3) & 0x00f; to: ch = usart_recv(USART3); And that is it! On Thu, Sep 2, 2010 at 5:12 PM, Linus Casassa <li...@li...> wrote: > Hi. > > I am having problems receiving data from usart3. What am I missing? > > The function usart_recv(USART3); does not return when I put data to > the rx pin and the interrupt does not get called. > > Does someone have an example of usart use? > > Thanks > > -- > Linus Casassa > Estudiante Ingeniería Civil Electrónica > Universidad Técnica Federico Santa María > Fono: 56-9-97776941 > -- Linus Casassa Estudiante Ingeniería Civil Electrónica Universidad Técnica Federico Santa María Fono: 56-9-97776941 |