I am trying to connect a Bluetooth module through serial communication. But the error which is " error: expected ';', ',' or ')' before numeric constant" occurred on the line where I defined the baud rate. can not find where the error is. Help would be appreciated, thanks!
#define BAUD_RATE 9600
#define BAUD_PreS (((F_CPU / (BAUD_RATE * 16UL))) - 1)
void USART_init(long BAUD_RATE){
UCSRB |= (1 << RXEN ) | (1 << TXEN ) ;
UCSRC |= (1 << URSEL) | (1 << UCSZ0) | (1 << UCSZ1) ;
UBRRH = (BAUD_PreS >> 8);
UBRRL = BAUD_PreS;
}