AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/at91sam7s/rs485.c
bool RS485_Set_Baud_Rate(
    uint32_t baud)
{
    bool valid = true;

    switch (baud) {
        case 9600:
        case 19200:
        case 38400:
        case 57600:
        case 76800:
        case 115200:
            RS485_Baud = baud;
            RS485_Interface->US_BRGR = MCK / 16 / baud;
            /* FIXME: store the baud rate */
            break;
        default:
            valid = false;
            break;
    }

    return valid;
}
/****************************************************************************
* DESCRIPTION: Sets the baud rate for the chip USART
* RETURN:      none
* ALGORITHM:   none
* NOTES:       none
*****************************************************************************/
Sets the baud rate for the chip USART
RETURN:      none
ALGORITHM:   none
NOTES:       none
Sets the baud rate for the chip USART RETURN : none ALGORITHM : none NOTES : none
bool RS485_Set_Baud_Rate(
    uint32_t baud)
{
    bool valid = true;
    switch (baud) {
        case 9600:
        case 19200:
        case 38400:
        case 57600:
        case 76800:
        case 115200:
            RS485_Baud = baud;
            RS485_Interface->US_BRGR = MCK / 16 / baud;
            break;
        default:
            valid = false;
            break;
    }
    return valid;
}
bool RS485_Set_Baud_Rate ( uint32_t baud ) { bool valid = true ; switch ( baud ) { case 9600 : case 19200 : case 38400 : case 57600 : case 76800 : case 115200 : RS485_Baud = baud ; RS485_Interface -> US_BRGR = MCK / 16 / baud ; break ; default : valid = false ; break ; } return valid ; }
DESCRIPTION: Sets the baud rate for the chip USART
RETURN:      none
ALGORITHM:   none
NOTES:       none
DESCRIPTION : Sets the baud rate for the chip USART RETURN : none ALGORITHM : none NOTES : none
/* FIXME: store the baud rate */