Commit Graph

34 Commits

Author SHA1 Message Date
Markus Hitter b7afdda3f7 Make the use of the internal pullup resistors optional.
All other firmwares set them to zero -> no internal pullup resistor,
as they counter-work to the design of the electronic endstops.
However, in conjunction with mechanical endstops, they're very practical.
2011-03-01 16:10:52 +01:00
Markus Hitter 0d37270af1 Config templates: publish INVERT flags.
The corresponding code is in pinio.h already, so let's hope
it actually works.
2011-02-27 12:01:47 +01:00
Markus Hitter 340aea89c8 Config templates: publish ENABLE_PINs in _all_ templates.
No functional change, as the new ones are commented out.
2011-02-27 12:00:45 +01:00
Markus Hitter 7087587f19 Config templates: add MAX_PINS consistently.
No functional changes, since all the new ones are commented out.
2011-02-27 11:55:27 +01:00
Markus Hitter 694e3c4298 Revert "Config templates: protect config.h against multiple inclusion."
Teacup uses preprocessor magic which actually requires including
config.h twice.

This reverts commit c61191d86d.
2011-02-27 11:11:37 +01:00
Markus Hitter c61191d86d Config templates: protect config.h against multiple inclusion.
This is a small compile time saver and also mandatory for
patches later in the queue.
2011-02-25 11:53:21 +01:00
Markus Hitter 4ca9e470a5 Move timer macros from config.h.dist and derivates to timer.c.
This sould confuse users less and neither value is subject to change
per configuration. Reviewed also by Markus Amsler.
2011-02-23 12:37:15 +01:00
Markus Hitter 0dc623d4eb gcode_parse.c: added comments, which show possible variable overflows.
Stay tuned, the fix is just around the corner.
2011-02-23 02:52:27 +01:00
Stephan Walter eecf3af9f1 analog mask calculated automagically 2011-02-21 13:57:51 +11:00
Michael Moon f80edeabb0 fix example heaters, add note to gen3 config clarifying that heaters connected to extruder go in extruder config 2011-02-14 10:58:00 +11:00
John Gilmore (none) 686e417401 Revised thermistor code. Thermistor table now in 14.2 fixed point
Two thermistor tables included:
  ThermistorTable.h.dist.old, which is the table we used to have, included so those already using it don't have to recalibrate.
  ThermistorTable.h.dist, which was generated with 50 entries, and trimmed down in lower temperature ranges where we don't care as much about accuracy and there's less deviation from a straight line anyway.

Corrected default temp sensor entry in config.h.dist to thermistor instead of intercom. (Now matches earlier definitions which by default say we're using a thermistor)

Added noheater sensor example to config.h.dist

Copied CreateTemperatureLook.py from "official" firmware, and modified it for 14.2 fixed point, no negative temperatures (we're using uint16_t's), and PROGMEM.

Since I simply copied the example linear interpolation formula from wikipedia, I'm certian that it could be more efficient. The code that was there wouldn't work with 14.2 table values, and my understanding of it was too shallow to fix it. This works, and upgading the calculations to uint32_t actually takes less code space than leaving them at uint16_t. I assume it's calling a library routine that's already being linked in for the 32-bit math.
2011-02-12 22:22:10 +11:00
Michael Moon 8ebce94e4d add soft limits to configs 2011-02-08 19:03:21 +11:00
Michael Moon 553f3a50a6 some config templates, also bang-bang heater support to reduce code size 2011-02-07 20:48:57 +11:00
Michael Moon e4fc55289b use constants for conditional compilation since preprocessor can't work out enums and we can't define in macros 2011-02-06 21:34:44 +11:00
Michael Moon d1b2754aba sorting out preprocessor interactions 2011-02-06 21:11:39 +11:00
Stephan Walter fcaa76d3c0 Simpler definition of temp sensors and heaters. 2011-02-01 19:40:27 +11:00
Michael Moon 14809c4a7c make bed heater define zero-based 2011-01-27 21:03:26 +11:00
plasmator 80e98e9b22 Added Heated Bed Support
Signed-off-by: plasmator <public@plasmatoruniversi.com>
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-01-27 20:31:39 +11:00
Michael Moon 7b29beb127 clarify/expand PWMable pins and mappings in config.h.dist 2011-01-26 11:43:52 +11:00
Michael Moon 096d7dfdf3 Merge release-candidate-triffid branch 2011-01-07 23:09:13 +11:00
Markus Hitter 816ac96542 Make a documentation comment a normal comment. 2010-10-22 12:03:49 +02:00
Stephan Walter 3028b297f3 Add simulation code: use "make sim" 2010-10-21 11:05:55 +11:00
dps.lwk a565f31dbb Resend Request changed from "Resend:" to "rs "
As of reprap-mendel-20100806, the RepRap java host expects resend requests using the new "rs " format only, the version before this only excepted "Resend:"

Repsnapper as of SVN 348 accepts both formats.

Also fixed typo in config.h.dist

Traumflug: to avoid breaking compatibility with earlier host versions, I took the chance to additionally introduce a sort of rudimentary version compatibility system.
2010-10-11 23:46:51 +02:00
Markus Hitter 91eb11bd1e Raise precision of STEP_PER_MM_x by factor 1000. 2010-10-10 18:51:39 +02:00
Markus Hitter 2aa98b3131 Fix a typo. 2010-10-10 18:37:19 +02:00
dps.lwk d83c80e383 Added ATmega1280 pin map for Arduino Mega 2010-10-10 13:51:00 +01:00
Markus Hitter 2391dc2901 If there's no HEATER_PIN, there's no heater, so disable the
heater code. Also remove the temp_achieved() declaration
in heater.h, which has no definition in heater.c.

If you wonder about what might be the use of not having a heater,
think about a paste dispenser or an externally heated extruder :-)

Having no heater removes a whopping 1200 bytes of program size.
2010-10-07 23:43:46 +02:00
Markus Hitter 9839ac9fff Move heater macros from config.h to heater.h, as they're
not meant to be user configurable.
2010-10-07 23:43:22 +02:00
Markus Hitter 468b212077 Move micrometer conversion from config.h(.dist) to
dda.c, where it's used.
2010-10-07 21:34:38 +02:00
Markus Hitter e0ffa134bf Move mm -> inch conversion macros from config.h(.dist) to gcode.c,
as this isn't meant to be user configurable.
2010-10-07 21:34:36 +02:00
Markus Hitter da5194a54e Tidy up config.h.dist a bit. 2010-10-07 21:34:34 +02:00
Markus Hitter 4bddf3452f Move stepper macros from config.h(.dist) to dda.c, as they're not
meant to be configured by the user.
2010-10-07 21:34:29 +02:00
Markus Hitter f29c675fcc Wrap the watchdog in #ifdefs and disable it for now. My poor imagination
can't think of a situation where resetting the controller in the middle
of a build would be useful. Even hanging ist better :-/

The difference in program size is just 238 bytes.
2010-10-02 16:15:29 +02:00
Michael Moon e78381c56d Move configuration to config.h.dist 2010-09-27 09:20:07 +10:00