X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fs51.src%2Ftimer2cl.h;h=b0cd339e3f1f6ec6e791a591119b9277c412575a;hb=34d14506fd0c12ee5434fec0f9dec27753e1aab5;hp=57e7b4f32ee476499ab4a806040ca21ec5ba8748;hpb=f27da39dbcab5678aca6d8462f1cc37a643f37e9;p=fw%2Fsdcc diff --git a/sim/ucsim/s51.src/timer2cl.h b/sim/ucsim/s51.src/timer2cl.h index 57e7b4f3..b0cd339e 100644 --- a/sim/ucsim/s51.src/timer2cl.h +++ b/sim/ucsim/s51.src/timer2cl.h @@ -37,17 +37,17 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #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 }; @@ -63,7 +63,7 @@ protected: 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); @@ -82,7 +82,7 @@ public: 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); };