Correct a comment, and add timer priming macros.

This commit is contained in:
thorpej 1996-09-12 04:54:19 +00:00
parent a453e56ffd
commit 2a57ba6633
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pccreg.h,v 1.4 1996/05/08 05:55:08 thorpej Exp $ */
/* $NetBSD: pccreg.h,v 1.5 1996/09/12 04:54:19 thorpej Exp $ */
/*
*
@ -97,8 +97,7 @@ struct pcc {
extern struct pcc *sys_pcc;
/*
* we lock off our interrupt vector at 0x40. if this is changed
* we'll need to change vector.s
* we lock off our interrupt vector at 0x40.
*/
#define PCC_VECBASE 0x40
@ -144,6 +143,9 @@ extern struct pcc *sys_pcc;
#define PCC_TIMERSTOP 0x1 /* stop clock, but don't clear it */
#define PCC_TIMERSTART 0x3 /* start timer */
#define pcc_timer_hz2lim(hz) (65536 - (160000/(hz)))
#define pcc_timer_us2lim(us) (65536 - (160000/(1000000/(us))))
/*
* serial control
*/