Teacup_Firmware/simulator
Phil Hord 887a4eedd9 Simulator: fix pin numbering consistency
The simulator code is compiled with different definitions than the
rest of the code even when compiling the simulator.  This was done
originally to satisfy the compiler, but it was the wrong way to go.
The result is that the main Teacup code may decide to do things one
way (X_INVERT_DIR, for example) but the simulator code will do
things a different way (no X_INVERT_DIR).

Fix this by including the board and printer definitions also in the
simulator code, and use a simple enum trick to give consistent
definitions to the needed PIN definitions, safely ignoring the ones
the config does not use.

This requires that we include simulator.h after 'config.h' in all cases.
Manage that by moving simulator.h from its previous home in arduino.h
into config_wrapper.h.

After this change we will be able to reliably communicate the expected
state of the endstop pins from the simulator.
2016-05-26 11:04:30 +02:00
..
analog_sim.c Sim: add --report-temptables option 2016-04-16 00:59:55 +02:00
data_recorder.c Simulator: record serial data as comments, not as G-code. 2015-07-17 16:34:20 +02:00
data_recorder.h simulator: Make time-scale=0 a cmdline option 2013-12-06 19:24:58 +01:00
delay_sim.c Restore simulation build target. 2013-12-06 19:24:58 +01:00
heater_sim.c heater_sim.c: Note that the heater isn't implemented in the simulator. 2014-08-31 19:06:23 +02:00
intercom_sim.c Restore simulation build target. 2013-12-06 19:24:58 +01:00
pff_diskio_sim.c Add simulator SD card (and SPI, PFF) support. 2015-07-17 16:02:59 +02:00
pff_sim.c Add simulator SD card (and SPI, PFF) support. 2015-07-17 16:02:59 +02:00
sd_sim.c SD card: remove sd_read_char() also from the simulator. 2015-07-17 16:06:19 +02:00
serial_sim.c Simulator: record serial data as comments, not as G-code. 2015-07-17 16:34:20 +02:00
simulator.c Simulator: fix pin numbering consistency 2016-05-26 11:04:30 +02:00
spi_sim.c Introduce #ifdef SPI. 2015-08-13 17:12:12 +02:00
timer_ext.c Move pin I/O macros from arduino.h to pinio.h. 2015-08-12 14:26:34 +02:00