2 * Simulator of microcontrollers (wdtcl.h)
4 * Copyright (C) 2024 Drotos Daniel
6 * To contact author send email to dr.dkdb@gmail.com
10 /* This file is part of microcontroller simulator: ucsim.
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING. If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42 class cl_wdt
: public cl_hw
47 class cl_memory_cell
*mod
, *misc
;
52 cl_wdt(class cl_uc
*auc
, const char *aname
);
53 virtual int init(void);
54 virtual unsigned int cfg_size(void) { return wdt_nuof
; }
55 virtual const char *cfg_help(t_addr addr
);
56 virtual void reset(void);
57 virtual void recalc(void);
58 virtual void set_len(void);
59 virtual void clear(void) { cnt
= 0; }
60 virtual void write(class cl_memory_cell
*cell
, t_mem
*val
);
61 virtual t_mem
conf_op(cl_memory_cell
*cell
, t_addr addr
, t_mem
*val
);
62 virtual int tick(int cycles
);
63 virtual void print_info(class cl_console_base
*con
);
69 /* End of pdk.src/wdtcl.h */