home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-1.ZIP / GCOMM / ASINVERT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-14  |  796 b   |  35 lines

  1. /*  asinvert.c
  2.  *
  3.  * The Greenleaf Comm Library
  4.  *
  5.  * Copyright (C) 1985-1990 Greenleaf Software Inc.  All Rights Reserved.
  6.  *
  7.  *  int asinvert(mask)
  8.  *  unsigned mask;      -- Bits of shared port's I/O register to invert.
  9.  *
  10.  *  This function customizes the interrupt routines for use with a particular
  11.  *  Category B board by arranging that the status port data will be inverted.
  12.  *
  13.  *  RETURNS:
  14.  *              ASSUCCESS always.
  15.  *  USAGE:
  16.  *
  17.  * MODIFICATIONS
  18.  */
  19.  
  20. #include <stdio.h>
  21. #include "gf.h"
  22. #include "asiports.h"
  23.  
  24. int GF_CONV asinvert(mask)
  25. unsigned mask;
  26. {
  27.         int i;
  28.  
  29.         _asxorv=mask;
  30.         if(as_chnl)
  31.                 for (i=0; i<MAX_PORT; i++)
  32.                         as_chnl->tblport[i].as_xorv = mask;
  33.         return (ASSUCCESS);
  34. }
  35.