brewco/simulator.c

Tue, 15 Dec 2015 23:11:42 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 15 Dec 2015 23:11:42 +0100
changeset 459
1f88be70f253
parent 456
045db83dd013
child 473
fdd30e935079
permissions
-rw-r--r--

Added the beginning of the recipes editor. Added load and save of recipes file.

438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 /*****************************************************************************
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 * Copyright (C) 2015
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 *
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 * Michiel Broek <mbroek at mbse dot eu>
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5 *
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 * This file is part of the mbsePi-apps
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 *
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 * This is free software; you can redistribute it and/or modify it
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 * under the terms of the GNU General Public License as published by the
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 * Free Software Foundation; either version 2, or (at your option) any
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 * later version.
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 *
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13 * mbsePi-apps is distributed in the hope that it will be useful, but
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 * General Public License for more details.
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 *
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 * along with ThermFerm; see the file COPYING. If not, write to the Free
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 *****************************************************************************/
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23 #include "brewco.h"
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 #include "simulator.h"
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26 #ifdef USE_SIMULATOR
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 extern int my_shutdown;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29 extern int debug;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 extern sys_config Config;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
32 int SIM_hlt_value = 0;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
33 int SIM_mlt_value = 0;
456
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
34 int SIM_cooler = FALSE;
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
35
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
36
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
37 #ifdef HAVE_WIRINGPI_H
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
38 PI_THREAD (my_simulator_loop)
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
39 #else
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
40 void *my_simulator_loop(void *threadid)
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
41 #endif
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
42 {
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
43 time_t now, last;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
44 int loops = 0;
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
45 // double hlt_heat_transfer, mlt_heat_transfer;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
46 // double vhc_air = 0.00121, vhc_water = 4.1796;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
47
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
48 syslog(LOG_NOTICE, "Thread my_simulator_loop started");
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
49 if (debug)
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
50 fprintf(stdout, "Thread my_simulator_loop started\n");
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
51
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
52 /*
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
53 * Initial temperatures
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
54 */
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
55 Config.simulator->hlt_heater_temp = Config.simulator->hlt_temperature;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
56 Config.simulator->mlt_heater_temp = Config.simulator->mlt_temperature;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
57 last = now = time(NULL);
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
58
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
59 /*
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
60 * About 50 mSec loops
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
61 */
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
62 for (;;) {
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63 if (my_shutdown)
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64 break;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
65
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
66 /*
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
67 * First calculate the heat loss for the HLT and MLT liquids.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
68 * Then decrease both liquid temperatures and consider the volume.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
69 */
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
70 Config.simulator->hlt_temperature -= (Config.simulator->hlt_temperature - Config.simulator->room_temperature) /
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
71 (40000 * (Config.simulator->hlt_heater_volume / 2));
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
72 Config.simulator->mlt_temperature -= (Config.simulator->mlt_temperature - Config.simulator->room_temperature) /
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
73 (40000 * (Config.simulator->mlt_heater_volume / 2));
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
74
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
75 /*
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
76 * If heating, calculate the heating element temperature but not higher then 250 degrees celcius.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
77 * I have no data about real temperatures of electric elements, so this is a rough guess.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
78 * If not heating, the elements are couling towards the current liquid temperature.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
79 */
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
80 Config.simulator->hlt_heater_state = SIM_hlt_value;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
81 if (SIM_hlt_value) {
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
82 Config.simulator->hlt_heater_temp += (250 - Config.simulator->hlt_heater_temp) / 2000;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
83 } else {
456
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
84 Config.simulator->hlt_heater_temp -= (Config.simulator->hlt_heater_temp - Config.simulator->hlt_temperature) / 500;
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
85 }
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
86 Config.simulator->mlt_heater_state = SIM_mlt_value;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
87 if (SIM_mlt_value) {
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
88 Config.simulator->mlt_heater_temp += (250 - Config.simulator->mlt_heater_temp) / 2000;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
89 } else {
456
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
90 Config.simulator->mlt_heater_temp -= (Config.simulator->mlt_heater_temp - Config.simulator->mlt_temperature) / 500;
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
91 }
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
92
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
93 /*
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
94 * If cooling, bring down the MLT temperature. Assume 14 degrees coolwater.
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
95 */
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
96 if (SIM_cooler) {
045db83dd013 Build a simulated immersion chiller. It will start on SIGUSR1 signal and stop on a SIGUSR2 signal. Hardcoded is te coolwater temperature at 14 degrees celcius.
Michiel Broek <mbroek@mbse.eu>
parents: 455
diff changeset
97 Config.simulator->mlt_temperature -= (Config.simulator->mlt_temperature - 14) / (250 * Config.simulator->hlt_heater_volume);
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
98 }
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
99
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
100 /*
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
101 * Shift the liquid temperature towards the heating elements temperature,
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
102 * but never higher then 100 degrees celcius.
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
103 */
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
104 Config.simulator->hlt_temperature += (Config.simulator->hlt_heater_temp - Config.simulator->hlt_temperature) / (10000 * Config.simulator->hlt_heater_volume);
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
105 if (Config.simulator->hlt_temperature > 100.25)
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
106 Config.simulator->hlt_temperature = 100.25;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
107 Config.simulator->mlt_temperature += (Config.simulator->mlt_heater_temp - Config.simulator->mlt_temperature) / (10000 * Config.simulator->mlt_heater_volume);
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
108 if (Config.simulator->mlt_temperature > 100.25)
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
109 Config.simulator->mlt_temperature = 100.25;
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
110
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
111 loops++;
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
112 now = time(NULL);
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
113 if (now != last) {
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
114 last = now;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
115 /*
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
116 * Each second
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
117 */
459
1f88be70f253 Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents: 456
diff changeset
118 // if (debug)
1f88be70f253 Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents: 456
diff changeset
119 // fprintf(stdout, "HLT temp=%f plate=%f val=%d MLT temp=%f plate=%f val=%d Room %.1f loops=%d cool=%s\n",
1f88be70f253 Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents: 456
diff changeset
120 // Config.simulator->hlt_temperature, Config.simulator->hlt_heater_temp, Config.simulator->hlt_heater_state,
1f88be70f253 Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents: 456
diff changeset
121 // Config.simulator->mlt_temperature, Config.simulator->mlt_heater_temp, Config.simulator->mlt_heater_state,
1f88be70f253 Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents: 456
diff changeset
122 // Config.simulator->room_temperature, loops, SIM_cooler ? "Yes":"No");
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
123 loops = 0;
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
124 }
455
f84501d8dd87 Most parts of the simulator are working, needs some tuning.
Michiel Broek <mbroek@mbse.eu>
parents: 438
diff changeset
125 usleep(50000);
438
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
126 }
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
127
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
128 syslog(LOG_NOTICE, "Thread my_simulator_loop stopped");
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
129 if (debug)
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
130 fprintf(stdout, "Thread my_simulator_loop stopped\n");
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
131 return 0;
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
132 }
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
133
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
134
7d1ec160d751 Added simulator configuration.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
135 #endif

mercurial