X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fser_p.h;fp=drv%2Fser_p.h;h=0000000000000000000000000000000000000000;hb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;hp=d0071feb5f21b75f46704ed395e6cc4473d04ea3;hpb=faf2f6bfd5933ff75e6cc01e3d48f9277f731d8f;p=bertos.git diff --git a/drv/ser_p.h b/drv/ser_p.h deleted file mode 100644 index d0071feb..00000000 --- a/drv/ser_p.h +++ /dev/null @@ -1,71 +0,0 @@ -/** - * \file - * - * - * \brief Hardware dependent serial driver (interface) - * - * \version $Id$ - * - * \author Stefano Fedrigo - * \author Giovanni Bajo - */ - - -#ifndef DRV_SER_P_H -#define DRV_SER_P_H - -#include /* size_t */ - -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 (*txStart)(struct SerialHardware *ctx); - bool (*txSending)(struct SerialHardware *ctx); -}; - -struct SerialHardware -{ - const struct SerialHardwareVT *table; - unsigned char *txbuffer; - unsigned char *rxbuffer; - size_t txbuffer_size; - size_t rxbuffer_size; -}; - -struct SerialHardware *ser_hw_getdesc(int unit); - -#endif /* DRV_SER_P_H */