*
* -->
*
- * \brief High level serial I/O API
+ * \brief High level serial I/O API.
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * $WIZ$ module_name = "ser"
+ * $WIZ$ module_depends = "kfile", "timer"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_ser.h"
+ * $WIZ$ module_hw = "bertos/hw/hw_ser.h"
+ * $WIZ$ module_supports = "not atmega103 and not atmega168 "
+ * $WIZ$ module_supports += "and not atmega32 and not atmega8"
*/
#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.
- * \{
+ *
+ * $WIZ$ 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().
#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;