prefect
Home Engineering Publications
DACS: Pbus Defines Template, pbusdefn-template.h
 
  next up previous contents
Next: Alphanumeric LCD Driver Header, Up: Firmware Library, dacslib Previous: Pbus Driver Code, pbus.c   Contents

Pbus Defines Template, pbusdefn-template.h

The following is a template pbusdefn.h file. In an application that uses the Pbus control code, this template is modified to reflect the memory locations of the controller ports. Additionally, this file provides a stub for the definition of application-specific Pbus addresses.
/*****************************************************************************
 * DACS : Distributed Audio Control System
 *============================================================================
 *         File: pbusdefn.h
 *       Author: Stephen S. Richardson
 * Date Created: 04.14.97
 *  Environment: ICC11 v4.0, 68HC11 target
 *        Build: library, not standalone
 *============================================================================
 * The code, executables, documentation, firmware images, and all related
 * material of DACS are  
 * Copyright (C) 1997 Stephen S. Richardson - ALL RIGHTS RESERVED
 *****************************************************************************
 * Source code control:
 *
 * $Id: pbusdefn-template.h,v 1.2 1997/07/23 21:35:55 prefect Exp prefect $
 *
 *****************************************************************************/

#ifndef _pbusdefn
#define _pbusdefn

#define PBC_PA *(unsigned char *)(0xB580)  /* pBUS controller port A */
#define PBC_PB *(unsigned char *)(0xB581)  /* pBUS controller port B */
#define PBC_PC *(unsigned char *)(0xB582)  /* pBUS controller port C */
#define PBC_PX *(unsigned char *)(0xB583)  /* pBUS controller ctrl port */

#define PBC_IX 0x98   /* pBUS ctrl word: PA i / PB o / PC0-3 o / PC4-7 i */
#define PBC_OX 0x88   /* pBUS ctrl word: PA o / PB o / PC0-3 o / PC4-7 i */

/* pbus address definitions */
/* example: #define PBADX_MIX0  0x10    */

#endif


Steve Richardson 2000-07-06
Table of Contents

[PDF] [Whole document in PDF 1.9MB]

[more photos and information]

 
Page last modified:
Copyright © 1993-2000 prefect - All Rights Reserved.