
Added support for Duet 0.8.5 with auto detection between 0.6 and 0.85 board types Added P parameter to M115 command to set board type Changed M115 output to report the board type that was configured or auto-detected Improved ISR and step pulse generation efficiency to allow higher movement speeds, especially wheh using 0.9deg/step motors Added XYZE parameters to M569 command to allow driver remapping Added R parameter to M569 command to allow enable signal to be reversed when using external drivers (thanks dnewman) Removed M558 R parameter because boare type 0.7 can now be set via M115 instead Moved Fan0 RPM sense pin to PA14 to avoid conflict with Duet 0.8.5 FAN1 pin M408 poll command can now be handled concurrently with other commands
148 lines
5.2 KiB
C
148 lines
5.2 KiB
C
/****************************************************************************************************
|
|
|
|
RepRapFirmware - Configuration
|
|
|
|
This is where all machine-independent configuration and other definitions are set up. Nothing that
|
|
depends on any particular RepRap, RepRap component, or RepRap controller should go in here. Define
|
|
machine-dependent things in Platform.h
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
18 November 2012
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef CONFIGURATION_H
|
|
#define CONFIGURATION_H
|
|
|
|
#define NAME "RepRapFirmware"
|
|
|
|
#ifndef VERSION
|
|
#define VERSION "1.09i-dc42"
|
|
#endif
|
|
|
|
#ifndef DATE
|
|
#define DATE "2015-09-02"
|
|
#endif
|
|
|
|
#define AUTHORS "reprappro, dc42, zpl, t3p3, dnewman"
|
|
|
|
#define FLASH_SAVE_ENABLED (1)
|
|
|
|
// Other firmware that we might switch to be compatible with.
|
|
|
|
enum Compatibility
|
|
{
|
|
me = 0,
|
|
reprapFirmware = 1,
|
|
marlin = 2,
|
|
teacup = 3,
|
|
sprinter = 4,
|
|
repetier = 5
|
|
};
|
|
|
|
// Some numbers...
|
|
|
|
const uint32_t MainBaudRate = 115200; // Communication speed of the USB if needed.
|
|
const uint32_t AuxBaudRate = 57600;
|
|
|
|
const unsigned int GcodeLength = 100; // Maximum length of a G Code string that we handle
|
|
const unsigned int MaxFilenameLength = 100; // Maximum length of a path + filename on the SD card
|
|
|
|
const float defaultIdleCurrentFactor = 0.3; // Proportion of normal motor current that we use for idle hold
|
|
const float defaultIdleTimeout = 30.0;
|
|
|
|
const float DefaultFeedRate = 3000; // The initial requested feed rate after resetting the printer
|
|
|
|
#define ABS_ZERO (-273.15) // Celsius
|
|
#define NEARLY_ABS_ZERO (-273) // Celsius
|
|
|
|
#define INCH_TO_MM (25.4)
|
|
|
|
#define HEAT_SAMPLE_TIME (0.5) // Seconds
|
|
#define HEAT_PWM_AVERAGE_TIME (5.0) // Seconds
|
|
|
|
#define TEMPERATURE_CLOSE_ENOUGH (2.5) // Celsius
|
|
#define TEMPERATURE_LOW_SO_DONT_CARE (40.0) // Celsius
|
|
#define HOT_ENOUGH_TO_EXTRUDE (160.0) // Celsius
|
|
#define HOT_ENOUGH_TO_RETRACT (90.0) // Celsius
|
|
#define TIME_TO_HOT (150.0) // Seconds
|
|
|
|
// If temperatures fall outside this range, something nasty has happened.
|
|
|
|
#define MAX_BAD_TEMPERATURE_COUNT 6
|
|
#define BAD_LOW_TEMPERATURE -10.0
|
|
#define BAD_HIGH_TEMPERATURE 300.0
|
|
|
|
const size_t MaxProbePoints = 16; // Maximum number of probe points
|
|
const size_t MaxDeltaCalibrationPoints = 16; // Must be <= MaxProbePoints, may be smaller to reduce matrix storage requirements. Preferably a power of 2.
|
|
|
|
const float DefaultZDive = 3.0; // Default height from which to probe the bed (mm)
|
|
|
|
#define TRIANGLE_0 -0.001 // Slightly less than 0 for point-in-triangle tests
|
|
|
|
#define SILLY_Z_VALUE -9999.0
|
|
|
|
// String lengths
|
|
|
|
#define STRING_LENGTH 1024
|
|
const size_t MaxPasswordLength = 20;
|
|
const size_t MaxNameLength = 40;
|
|
const size_t MaxMessageLength = 40;
|
|
const size_t MaxGcodeReplyLength = 2048;
|
|
|
|
// Print estimation defaults
|
|
const float DefaultNozzleDiameter = 0.5; // Thickness of the nozzle
|
|
const float DefaultFilamentWidth = 1.75; // Width of the filament
|
|
|
|
#define MAX_LAYER_SAMPLES 5 // Number of layer samples (except for first layer)
|
|
#define ESTIMATION_MIN_FILAMENT_USAGE 0.025 // Minimum per cent for filament usage estimation
|
|
#define FIRST_LAYER_SPEED_FACTOR 0.25 // First layer speed compared to others (only for layer-based estimation)
|
|
|
|
// Webserver stuff
|
|
|
|
#define DEFAULT_PASSWORD "reprap"
|
|
#define DEFAULT_NAME "My RepRap 1"
|
|
#define INDEX_PAGE "reprap.htm"
|
|
#define FOUR04_FILE "html404.htm"
|
|
#define CONFIG_FILE "config.g" // The file that sets the machine's parameters
|
|
#define DEFAULT_FILE "default.g" // If the config file isn't found
|
|
#define HOME_X_G "homex.g"
|
|
#define HOME_Y_G "homey.g"
|
|
#define HOME_Z_G "homez.g"
|
|
#define HOME_ALL_G "homeall.g"
|
|
#define HOME_DELTA_G "homedelta.g"
|
|
#define SET_BED_EQUATION "bed.g"
|
|
#define PAUSE_G "pause.g"
|
|
#define RESUME_G "resume.g"
|
|
#define STOP_G "stop.g"
|
|
#define SLEEP_G "sleep.g"
|
|
|
|
#define LIST_SEPARATOR ':' // Lists in G Codes
|
|
#define FILE_LIST_SEPARATOR ',' // Put this between file names when listing them
|
|
#define FILE_LIST_BRACKET '"' // Put these round file names when listing them
|
|
|
|
#define LONG_TIME 300.0 // Seconds
|
|
|
|
#define EOF_STRING "<!-- **EoF** -->" // For HTML uploads
|
|
|
|
#define FLASH_LED 'F' // Type byte of a message that is to flash an LED; the next two bytes define
|
|
// the frequency and M/S ratio.
|
|
#define DISPLAY_MESSAGE 'L' // Type byte of a message that is to appear on a local display; the L is
|
|
// not displayed; \f and \n should be supported.
|
|
#define HOST_MESSAGE 'H' // Type byte of a message that is to be sent to the host via USB; the H is not sent.
|
|
#define WEB_MESSAGE 'W' // Type byte of message that is to be sent to the web
|
|
#define WEB_ERROR_MESSAGE 'E' // Type byte of message that is to be sent to the web - flags an error
|
|
#define BOTH_MESSAGE 'B' // Type byte of message that is to be sent to the web & host
|
|
#define BOTH_ERROR_MESSAGE 'A' // Type byte of message that is to be sent to the web & host - flags an error
|
|
#define DEBUG_MESSAGE 'D' // Type byte of debug message to send in blocking mode to USB
|
|
|
|
#endif
|