Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG by
Diff: uart_m.c
- Revision:
- 28:17c84ed091b3
- Parent:
- 21:bc8c1cec3da6
- Child:
- 38:716472a4492e
--- a/uart_m.c Fri Feb 05 08:02:55 2016 +0000 +++ b/uart_m.c Fri Feb 05 23:21:54 2016 +0000 @@ -39,9 +39,9 @@ -int UART0_BPS = 9600 ; /* ����0ͨ�Ų����� */ +int UART0_BPS = 9600 ; /* ����0ͨ�Ų����� */ int UART1_BPS = 4800; /* ����0ͨ�Ų����� */ -int UART2_BPS = 9600 ; /* ����0ͨ�Ų����� */ +int UART2_BPS = 9600 ; /* ����0ͨ�Ų����� */ int UART3_BPS = 19200 ; /* ����0ͨ�Ų����� */ #define UART_LCR_ODD 0x0b @@ -129,6 +129,7 @@ // LPC_UART0->FDR = 0x00000085; // c�� ��� LPC17xx-User-Manual_0[1].05 �� ��� 311 //���������� �� 8 �������� �� 5 // usFdiv = 4; + usFdiv = (FPCLK / 16) / UART0_BPS; /* ���ò����� */ LPC_UART0->DLM = usFdiv / 256; LPC_UART0->DLL = usFdiv % 256;
