From a9b1b37bec47e2a1a3fe5ce2d49ebab9e18514ba Mon Sep 17 00:00:00 2001 From: salvopitru Date: Mon, 17 Jan 2011 09:22:24 +0000 Subject: [PATCH] Added definition of BAUD2UBR macro. --- cpu/stm32w108/dev/uart1.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpu/stm32w108/dev/uart1.h b/cpu/stm32w108/dev/uart1.h index 53434ed8e..f49f85b21 100644 --- a/cpu/stm32w108/dev/uart1.h +++ b/cpu/stm32w108/dev/uart1.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uart1.h,v 1.1 2010/10/25 09:03:39 salvopitru Exp $ + * $Id: uart1.h,v 1.2 2011/01/17 09:22:24 salvopitru Exp $ */ /** @@ -41,9 +41,7 @@ #ifndef __UART1_H__ #define __UART1_H__ -//#include "msp430.h" -// -//#define UART1_BAUD2UBR(baud) ((MSP430_CPU_SPEED)/(baud)) +#define BAUD2UBR(baud) baud void uart1_set_input(int (*input)(unsigned char c)); void uart1_writeb(unsigned char c);