Correct a comment, and add timer priming macros.
This commit is contained in:
parent
a453e56ffd
commit
2a57ba6633
|
@ -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;
|
extern struct pcc *sys_pcc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we lock off our interrupt vector at 0x40. if this is changed
|
* we lock off our interrupt vector at 0x40.
|
||||||
* we'll need to change vector.s
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PCC_VECBASE 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_TIMERSTOP 0x1 /* stop clock, but don't clear it */
|
||||||
#define PCC_TIMERSTART 0x3 /* start timer */
|
#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
|
* serial control
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue