* <!--
* Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
* Copyright 2000 Bernardo Innocenti <bernie@codewiz.org>
- * This file is part of DevLib - See devlib/README for information.
+ * This file is part of DevLib - See README.devlib for information.
* -->
*
* \brief AVR UART and SPI I/O driver
/*#*
*#* $Log$
+ *#* Revision 1.31 2006/05/18 00:37:29 bernie
+ *#* Use hw_ser.h instead of ubiquitous hw.h.
+ *#*
+ *#* Revision 1.30 2006/02/17 22:23:06 bernie
+ *#* Update POSIX serial emulator.
+ *#*
+ *#* Revision 1.29 2005/11/27 23:31:48 bernie
+ *#* Support avr-libc 1.4.
+ *#*
+ *#* Revision 1.28 2005/11/04 16:20:02 bernie
+ *#* Fix reference to README.devlib in header.
+ *#*
+ *#* Revision 1.27 2005/07/03 15:19:31 bernie
+ *#* Doxygen fix.
+ *#*
+ *#* Revision 1.26 2005/04/11 19:10:27 bernie
+ *#* Include top-level headers from cfg/ subdir.
+ *#*
*#* Revision 1.25 2005/01/25 08:37:26 bernie
*#* CONFIG_SER_HWHANDSHAKE fixes.
*#*
#include "ser.h"
#include "ser_p.h"
-#include "config.h"
-#include "hw.h" /* Required for bus macros overrides */
+#include "hw_ser.h" /* Required for bus macros overrides */
+#include <appconfig.h>
-#include <debug.h>
+#include <cfg/debug.h>
#include <drv/timer.h>
#include <mware/fifobuf.h>
-#include <avr/signal.h>
#include <avr/io.h>
+#if defined(__AVR_LIBC_VERSION__) && (__AVR_LIBC_VERSION__ >= 10400UL)
+ #include <avr/interrupt.h>
+#else
+ #include <avr/signal.h>
+#endif
#if !CONFIG_SER_HWHANDSHAKE
*/
#ifndef SER_SPI_BUS_TXINIT
/*!
- * \def SER_SPI_BUS_TXINIT
- *
* Default TXINIT macro - invoked in spi_init()
* The default is no action.
*/
#ifndef SER_SPI_BUS_TXCLOSE
/*!
- * \def SER_SPI_BUS_TXCLOSE
- *
* Invoked after the last character has been transmitted.
* The default is no action.
*/
}
};
-struct SerialHardware* ser_hw_getdesc(int unit)
+struct SerialHardware *ser_hw_getdesc(int unit)
{
ASSERT(unit < SER_CNT);
return &UARTDescs[unit].hw;