Uart reset Status Bit

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
antoniolinux
Posts: 38
Joined: Thu Dec 19, 2013 12:59 pm

Uart reset Status Bit

Post by antoniolinux »

Hi to all, in some example i have read the possibility to resetting status bits of UART,
i read

Code: Select all

UART u;
...
  u->SR = ~sr;


the function SR don't exist, in version 3.0 is change the name or others?
bye
A.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Uart reset Status Bit

Post by Giovanni »

SR is a register name not a function, it is defined in ST's headers.

Giovanni
antoniolinux
Posts: 38
Joined: Thu Dec 19, 2013 12:59 pm

Re: Uart reset Status Bit

Post by antoniolinux »

Giovanni thanks for your answer i fix it with

Code: Select all

USART1->SR

but where don't find [code]]UART_SR_ERRORS[/code

Antonio
Post Reply