mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Corrections for LPC178x UART baud calculation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5698 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
#define LPC17_CCLK 120000000 /* 120Mhz */
|
#define LPC17_CCLK 120000000 /* 120Mhz */
|
||||||
#define BOARD_PCLKDIV 2 /* Peripheral clock = LPC17_CCLK/2 */
|
#define BOARD_PCLKDIV 2 /* Peripheral clock = LPC17_CCLK/2 */
|
||||||
|
#define BOARD_PCLK_FREQUENCY (LPC17_CCLK / BOARD_PCLKDIV)
|
||||||
|
|
||||||
/* Select the main oscillator as the frequency source. SYSCLK is then the frequency
|
/* Select the main oscillator as the frequency source. SYSCLK is then the frequency
|
||||||
* of the main oscillator.
|
* of the main oscillator.
|
||||||
|
|||||||
Reference in New Issue
Block a user