Let's not hard-code constants, OK?

This commit is contained in:
briggs 1994-06-26 12:56:26 +00:00
parent 4052db0a25
commit 4d47d6a194
1 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: serreg.h,v 1.2 1993/11/29 00:33:00 briggs Exp $
* $Id: serreg.h,v 1.3 1994/06/26 12:56:26 briggs Exp $
*
* Mac II serial device interface
*
@ -41,7 +41,7 @@
/* Gleaned from MacOS */
extern volatile unsigned char *sccA;
extern int sccClkConst;
#define SER_W0_RSTESINTS 0x10 /* Reset ext/status interrupts */
#define SER_W0_ENBRXRDY 0x20 /* Enable interrupt on next receive */
@ -98,7 +98,7 @@ extern volatile unsigned char *sccA;
#define SER_R1_CRCERR 0x40
#define SER_R1_ENDOFFRAME 0x80
#define SERBRD(x) (115200 / (x) - 2)
#define SERBRD(x) (sccClkConst / (x) - 2)
#define SCCCNTL(unit) (sccA[2 - ((unit) << 1)])
#define SCCRDWR(unit) (sccA[6 - ((unit) << 1)])