#include "timer0cl.h"
-#define T2MODE_RELOAD 0
-#define T2MODE_CAPTURE 1
-#define T2MODE_BAUDRATE 2
-#define T2MODE_OFF 3
-#define T2MODE_DOWN 4
-#define T2MODE_CLKOUT 5
+#define T2MODE_RELOAD 0
+#define T2MODE_CAPTURE 1
+#define T2MODE_BAUDRATE 2
+#define T2MODE_OFF 3
+#define T2MODE_DOWN 4
+#define T2MODE_CLKOUT 5
enum t2_features {
- t2_default = 0x01,
- t2_down = 0x02,
- t2_clock_out = 0x04
+ t2_default = 0x01,
+ t2_down = 0x02,
+ t2_clock_out = 0x04
};
class cl_memory_cell *cell_rcap2l, *cell_rcap2h, *cell_t2mod;
bool bit_dcen, bit_t2oe, bit_t2ex;
public:
- cl_timer2(class cl_uc *auc, int aid, char *aid_string, int afeautres);
+ cl_timer2(class cl_uc *auc, int aid, const char *aid_string, int afeautres);
virtual int init(void);
virtual void added_to_uc(void);
virtual void do_t2_clock_out(int cycles);
virtual void happen(class cl_hw *where, enum hw_event he, void *params);
- virtual void print_info(class cl_console *con);
+ virtual void print_info(class cl_console_base *con);
};