Typos.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Oct 2007 10:18:35 +0000 (10:18 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Oct 2007 10:18:35 +0000 (10:18 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@914 38d2e660-2303-0410-9eaa-f027e97ec537

drv/ser.h

index 1054f4fdd3ec16abce8f59888840d0e26d2e0374..dfab067e14dbb08066e46689acbb0851247aeb7d 100644 (file)
--- a/drv/ser.h
+++ b/drv/ser.h
 #ifndef DRV_SER_H
 #define DRV_SER_H
 
+#include <cpu/detect.h>
 #include <mware/fifobuf.h>
 #include <cfg/compiler.h>
 #include <cfg/macros.h> /* BV() */
 #include <cfg/os.h>
+
 #include <appconfig.h>
 
 /** \name Serial Error/status flags. */
 /*\{*/
-#if CPU_ARM
+#if CPU_ARM_AT91
        typedef uint32_t serstatus_t;
 
        /* Software errors */
        #define SERRF_PARITYERROR    BV(7)  /**< Parity error */
        #define SERRF_NOISEERROR     0      /**< Unsupported */
 
-#if CPU_AVR
+#elif CPU_AVR
        typedef uint8_t serstatus_t;
 
        /* Software errors */
@@ -270,7 +272,7 @@ enum
        SER_UART0,
        SER_UART1,
        SER_SPI,
-#if CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
+#elif CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
        SER_UART0,
        SER_UART1,
        SER_SPI,