diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-27 16:11:37 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-27 16:11:37 -0400 |
commit | 9595ce520a6be0d993e87d80bed9fc47e7c203ba (patch) | |
tree | 193059584c73fb9d78cb79215074065efb992374 /libmaple | |
parent | 8ba82a71f11098151e0fb847661e4cbaefeebbca (diff) | |
download | librambutan-9595ce520a6be0d993e87d80bed9fc47e7c203ba.tar.gz librambutan-9595ce520a6be0d993e87d80bed9fc47e7c203ba.zip |
usart.h: Allow the environment to determine USART_RX_BUF_SIZE.
Place the USART_RX_BUF_SIZE #define within an #ifndef to allow users
to pick their own buffer size.
See http://forums.leaflabs.com/topic.php?id=803
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/usart.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmaple/usart.h b/libmaple/usart.h index 9ba94bd..1cfba96 100644 --- a/libmaple/usart.h +++ b/libmaple/usart.h @@ -228,7 +228,9 @@ typedef struct usart_reg_map { * Devices */ +#ifndef USART_RX_BUF_SIZE #define USART_RX_BUF_SIZE 64 +#endif /** USART device type */ typedef struct usart_dev { |