1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2025-04-21 12:27:27 +03:00

Added timer register values.

- fw/common/regs-f32x.h: common values for TCON, TMOD, and CKCON
- fw/common/regs-f320.h: C8051F320-specific values for TMOD and CKCON
This commit is contained in:
Werner Almesberger
2010-08-23 18:11:51 -03:00
parent 0f1c0ea783
commit d1b3966e5a
2 changed files with 33 additions and 0 deletions

View File

@@ -39,4 +39,13 @@
#define XBARE 0x40 /* Crossbar Enable */
#define WEAKPUD 0x80 /* Port I/O Weak Pull-up Disable */
/* TMOD, extending f32x */
#define C_T0 0x04 /* Counter/Timer Select */
/* CKCON, extending f32x */
#define T2ML 0x10 /* Timer 2 Low Byte Clock Select */
#define T2MH 0x20 /* Timer 2 High Byte Clock Select */
#define T3ML 0x40 /* Timer 3 Low Byte Clock Select */
#define T3MH 0x80 /* Timer 3 High Byte Clock Select */
#endif /* REGS_F320_H */