mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Amber Web Server updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3702 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -58,10 +58,10 @@
|
|||||||
/* USART0 Baud rate settings for normal and double speed modes */
|
/* USART0 Baud rate settings for normal and double speed modes */
|
||||||
|
|
||||||
#define AVR_NORMAL_UBRR0 \
|
#define AVR_NORMAL_UBRR0 \
|
||||||
(((((BOARD_CPU_CLOCK / 16) + (CONFIG_USART0_BAUD / 2)) / (CONFIG_USART0_BAUD)) - 1)
|
((((BOARD_CPU_CLOCK / 16) + (CONFIG_USART0_BAUD / 2)) / (CONFIG_USART0_BAUD)) - 1)
|
||||||
|
|
||||||
#define AVR_DBLSPEED_UBRR0 \
|
#define AVR_DBLSPEED_UBRR0 \
|
||||||
(((((BOARD_CPU_CLOCK / 8) + (CONFIG_USART0_BAUD / 2)) / (CONFIG_USART0_BAUD)) - 1)
|
((((BOARD_CPU_CLOCK / 8) + (CONFIG_USART0_BAUD / 2)) / (CONFIG_USART0_BAUD)) - 1)
|
||||||
|
|
||||||
/* Select normal or double speed baud settings. This is a trade-off between the
|
/* Select normal or double speed baud settings. This is a trade-off between the
|
||||||
* sampling rate and the accuracy of the divisor for high baud rates.
|
* sampling rate and the accuracy of the divisor for high baud rates.
|
||||||
|
|||||||
Reference in New Issue
Block a user