资源介绍
void F2M_SetMspUartBR(unsigned int BaudrateConst)
{
portENTER_CRITICAL();
{
#ifdef __F2M_UART1
UBR01 = (unsigned char)(BaudrateConst&0x00ff);
UBR11 = (unsigned char)((BaudrateConst&0xff00)>>8);
#else
UBR00 = (char)(BaudrateConst&0x00ff);
UBR10 = (char)((BaudrateConst&0xff00)>>8);
#endif
}
portEXIT_CRITICAL();
}