m68332Sio.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* m68332Sio.h - SCC UART device structrue */
  2. /* Copyright 1994 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,22aug95,myz  written
  7. */
  8. #ifndef __INCm68332Sioh
  9. #define __INCm68332Sioh
  10. #include "drv/multi/m68332.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /* device and channel structures */
  15. typedef struct          
  16.     {
  17.     /* always goes first */
  18.     SIO_DRV_FUNCS *     pDrvFuncs;      /* driver functions */
  19.     /* callbacks */
  20.     STATUS      (*getTxChar) ();
  21.     STATUS      (*putRcvChar) ();
  22.     void *      getTxArg;
  23.     void *      putRcvArg;
  24.     UINT16              channelMode;    /* SIO_MODE                */
  25.     unsigned char       intVec;
  26.     int                 baudRate;        
  27.     int clockRate; /* CPU clock frequency (Hz) */
  28.     volatile UINT16 *   sccr0;
  29.     volatile UINT16 *   sccr1;
  30.     volatile UINT16 *   scsr;
  31.     volatile UINT16 *   scdr;
  32.     volatile char *     qilr;
  33.     } M68332_CHAN;
  34. /* function declarations */
  35. #if defined(__STDC__) || defined(__cplusplus)
  36. extern void m68332Int (M68332_CHAN *pDev);
  37. extern void m68332DevInit (M68332_CHAN *pDev);
  38. #else /* __STDC__ */
  39. extern void m68332Int ();
  40. extern void m68332DevInit ();
  41. #endif /* __STDC__ */
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* __INCm68332Sioh */