From 9595ce520a6be0d993e87d80bed9fc47e7c203ba Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 27 May 2011 16:11:37 -0400 Subject: 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 --- libmaple/usart.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmaple') 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 { -- cgit v1.2.3