summaryrefslogtreecommitdiff
path: root/monitor/mon.h
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 20:41:22 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 20:41:22 +0100
commit1b32dfecc4fd1c9d9d024bb053c43ea17021cc65 (patch)
treea52a6527a6dd0f34f07f61c20b77b42c1d8ff720 /monitor/mon.h
parent1ff268ab13dd299c4cdc1e379df5397bd6a394e3 (diff)
downloadSystDigit-Projet-1b32dfecc4fd1c9d9d024bb053c43ea17021cc65.tar.gz
SystDigit-Projet-1b32dfecc4fd1c9d9d024bb053c43ea17021cc65.zip
Monitor now works correctly.
Diffstat (limited to 'monitor/mon.h')
-rw-r--r--monitor/mon.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/monitor/mon.h b/monitor/mon.h
index e08f01c..39ac37e 100644
--- a/monitor/mon.h
+++ b/monitor/mon.h
@@ -25,6 +25,12 @@ typedef enum {
MS_AUTO
} t_status;
+typedef enum {
+ TM_SECOND,
+ TM_FAST,
+ TM_NO_TICK
+} t_tick_mode;
+
typedef struct {
FILE *to_sim, *from_sim;
@@ -37,6 +43,12 @@ typedef struct {
t_status status;
time_t clk;
+ int ticker_input;
+ t_tick_mode ticker_mode;
+
+ int ser_in_in, ser_in_busy_out, ser_out;
+ char ser_buf[256];
+ char ser_out_buf;
} t_mon;
void disp_init();
@@ -49,6 +61,6 @@ int mon_read_prologue(t_mon *mon); // nonzero on error
void mon_step(t_mon *mon);
void mon_loop(t_mon *mon);
-void mon_handle_command(t_mon *mon, char *c);
+void mon_handle_command(t_mon *mon, const char *c);
#endif