diff --git a/fw/common/regs-f320.h b/fw/common/regs-f320.h index 531e6d9..c260f40 100644 --- a/fw/common/regs-f320.h +++ b/fw/common/regs-f320.h @@ -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 */ diff --git a/fw/common/regs-f32x.h b/fw/common/regs-f32x.h index 07809e6..63b0210 100644 --- a/fw/common/regs-f32x.h +++ b/fw/common/regs-f32x.h @@ -72,4 +72,28 @@ #define SB0RUN 0x40 /* Baud Rate Generator Enable */ #define SB0CLK 0x80 /* Baud Rate Clock Source */ +/* TCON */ +#define IT0 0x01 /* Interrupt 0 Type Select */ +#define IE0 0x02 /* External Interrupt 0 */ +#define IT1 0x04 /* Interrupt 1 Type Select */ +#define IE1 0x08 /* External Interrupt 1 */ +#define TR0 0x10 /* Timer 0 Run Control */ +#define TF0 0x20 /* Timer 0 Overflow Flag */ +#define TR1 0x40 /* Timer 1 Run Control */ +#define TF1 0x80 /* Timer 1 Overflow Flag */ + +/* TMOD */ +#define T0M0 0x01 /* Timer 0 Mode Select */ +#define T0M1 0x02 +#define GATE0 0x08 /* Timer 0 Gate Control */ +#define T1M0 0x10 /* Timer 1 Mode Select */ +#define T1M1 0x20 +#define GATE1 0x80 /* Timer 1 Gate Control */ + +/* CKCON */ +#define SCA0 0x01 /* Timer 0/1 Prescale Bits */ +#define SCA1 0x02 +#define T0M 0x04 /* Timer 0 Clock Select */ +#define T1M 0x08 /* Timer 0 Clock Select */ + #endif /* REGS_F32X_H */