projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add DIV_ROUND macro.
[bertos.git]
/
drv
/
ser.h
diff --git
a/drv/ser.h
b/drv/ser.h
index 1054f4fdd3ec16abce8f59888840d0e26d2e0374..dfab067e14dbb08066e46689acbb0851247aeb7d 100644
(file)
--- a/
drv/ser.h
+++ b/
drv/ser.h
@@
-148,15
+148,17
@@
#ifndef DRV_SER_H
#define 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 <mware/fifobuf.h>
#include <cfg/compiler.h>
#include <cfg/macros.h> /* BV() */
#include <cfg/os.h>
+
#include <appconfig.h>
/** \name Serial Error/status flags. */
/*\{*/
#include <appconfig.h>
/** \name Serial Error/status flags. */
/*\{*/
-#if CPU_ARM
+#if CPU_ARM
_AT91
typedef uint32_t serstatus_t;
/* Software errors */
typedef uint32_t serstatus_t;
/* Software errors */
@@
-173,7
+175,7
@@
#define SERRF_PARITYERROR BV(7) /**< Parity error */
#define SERRF_NOISEERROR 0 /**< Unsupported */
#define SERRF_PARITYERROR BV(7) /**< Parity error */
#define SERRF_NOISEERROR 0 /**< Unsupported */
-#if CPU_AVR
+#
el
if CPU_AVR
typedef uint8_t serstatus_t;
/* Software errors */
typedef uint8_t serstatus_t;
/* Software errors */
@@
-270,7
+272,7
@@
enum
SER_UART0,
SER_UART1,
SER_SPI,
SER_UART0,
SER_UART1,
SER_SPI,
-#if CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
+#
el
if CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281
SER_UART0,
SER_UART1,
SER_SPI,
SER_UART0,
SER_UART1,
SER_SPI,