regVal = SYSCON->UARTCLKDIV; Fdiv = (((SystemCoreClock[COLOR=Red][B]*[/B][/COLOR]LPC_SYSCON->SYSAHBCLKDIV)/regVal)/16)/baudrate ; /*baud rate */ |
regVal = LPC_SYSCON->UARTCLKDIV; Fdiv = (((SystemCoreClock/LPC_SYSCON->SYSAHBCLKDIV)/regVal)/16)/baudrate ;/*baud rate */ |