Remove CVS logs.
[bertos.git] / bertos / drv / ser.h
index 568725734c26a04338189c6b1d4e1aa3b4222754..b0e0f36666778e9878c3e13ecfe04b4ece5ef1f5 100644 (file)
  *
  * \version $Id$
  * \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * $WIZARD_MODULE = {
+ * "name" : "ser",
+ * "depends" : ["kfile", "timer"],
+ * "configuration" : "bertos/cfg/cfg_ser.h"
+ * }
  */
 
 #ifndef DRV_SER_H
 #define DRV_SER_H
 
 #include <kern/kfile.h>
-#include <mware/fifobuf.h>
+#include <struct/fifobuf.h>
 #include <cfg/compiler.h>
 
 #if OS_HOSTED
 
 /**
  * \name LSB or MSB first data order for SPI driver.
- * \{
+ *
+ * $WIZARD_LIST = {
+ * "ser_order_bit" : ["SER_MSB_FIRST", "SER_LSB_FIRST"]
+ * }
  */
 #define SER_MSB_FIRST 0
 #define SER_LSB_FIRST 1
-/*\}*/
 
 /**
  * \name Parity settings for ser_setparity().
@@ -162,7 +170,7 @@ typedef struct Serial
 #define KFT_SERIAL MAKE_ID('S', 'E', 'R', 'L')
 
 
-INLINE Serial * SERIAL(KFile *fd)
+INLINE Serial * SERIAL_CAST(KFile *fd)
 {
        ASSERT(fd->_type == KFT_SERIAL);
        return (Serial *)fd;