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

VxWorks

开发平台:

C/C++

  1. /* usrWv.c - windview configuration library */
  2. /* Copyright 1984-1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,03jun98,ms   written
  7. */
  8. /*
  9. DESCRIPTION
  10. Windview initialization code.
  11. */
  12. /* globals */
  13. char *          bufferAddress;          /* windview: address of event buffer */
  14. /******************************************************************************
  15. *
  16. * usrWvInit - initialize windview
  17. */
  18. void usrWvInit (void)
  19.     {
  20.     /* initialize WindView host target connection */
  21.     connRtnSet (evtSockInit, evtSockClose, evtSockError, evtSockDataTransfer);
  22.     /* set the characteristics of the event task - tEvtTask */
  23.     wvEvtTaskInit (WV_EVT_STACK, WV_EVT_PRIORITY);
  24.     /* initialize windview instrumentation buffers and tasks */
  25.     bufferAddress = wvInstInit (EVTBUFFER_ADDRESS, EVTBUFFER_SIZE, WV_MODE);
  26.     }