X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fser_p.h;h=d0071feb5f21b75f46704ed395e6cc4473d04ea3;hb=HEAD;hp=4825bb86ab3a6f790eb561fe751dd1e66f379b6b;hpb=7ee3b3c3da60b181d18336e892d8d0920166f5ae;p=bertos.git diff --git a/drv/ser_p.h b/drv/ser_p.h deleted file mode 100755 index 4825bb86..00000000 --- a/drv/ser_p.h +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * \file - * - * - * \brief Hardware dependent serial driver (interface) - * - * \version $Id$ - * - * \author Stefano Fedrigo - * \author Giovanni Bajo - */ - -/* - * $Log$ - * Revision 1.2 2004/05/23 18:21:53 bernie - * Trim CVS logs and cleanup header info. - * - */ - -#ifndef DRV_SER_P_H -#define DRV_SER_P_H - -struct SerialHardware; -struct Serial; - -struct SerialHardwareVT -{ - void (*init)(struct SerialHardware* ctx, struct Serial* ser); - void (*cleanup)(struct SerialHardware* ctx); - void (*setbaudrate)(struct SerialHardware* ctx, unsigned long rate); - void (*setparity)(struct SerialHardware* ctx, int parity); - void (*enabletxirq)(struct SerialHardware* ctx); -}; - -struct SerialHardware -{ - const struct SerialHardwareVT* table; -}; - -struct SerialHardware* ser_hw_getdesc(int unit); - -#endif /* DRV_SER_P_H */