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.
This commit is contained in:
parent
2c53dbe2a8
commit
4ca9e470a5
|
|
@ -368,12 +368,6 @@ DEFINE_TEMP_SENSOR(noheater, TT_INTERCOM, 0)
|
|||
*/
|
||||
#define STEP_INTERRUPT_INTERRUPTIBLE 1
|
||||
|
||||
/*
|
||||
how often we overflow and update our clock; with F_CPU=16MHz, max is < 4.096ms (TICK_TIME = 65535)
|
||||
*/
|
||||
#define TICK_TIME 2 MS
|
||||
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
|
||||
|
||||
/*
|
||||
temperature history count. This is how many temperature readings to keep in order to calculate derivative in PID loop
|
||||
higher values make PID derivative term more stable at the expense of reaction time
|
||||
|
|
|
|||
|
|
@ -357,12 +357,6 @@ DEFINE_HEATER(extruder, PORTD, PIND6, OCR2B)
|
|||
*/
|
||||
#define STEP_INTERRUPT_INTERRUPTIBLE 1
|
||||
|
||||
/*
|
||||
how often we overflow and update our clock; with F_CPU=16MHz, max is < 4.096ms (TICK_TIME = 65535)
|
||||
*/
|
||||
#define TICK_TIME 2 MS
|
||||
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
|
||||
|
||||
/*
|
||||
temperature history count. This is how many temperature readings to keep in order to calculate derivative in PID loop
|
||||
higher values make PID derivative term more stable at the expense of reaction time
|
||||
|
|
|
|||
|
|
@ -385,12 +385,6 @@ DEFINE_HEATER(bed, PORTB, PINB4, OCR0B)
|
|||
*/
|
||||
#define STEP_INTERRUPT_INTERRUPTIBLE 1
|
||||
|
||||
/*
|
||||
how often we overflow and update our clock; with F_CPU=16MHz, max is < 4.096ms (TICK_TIME = 65535)
|
||||
*/
|
||||
#define TICK_TIME 2 MS
|
||||
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
|
||||
|
||||
/*
|
||||
temperature history count. This is how many temperature readings to keep in order to calculate derivative in PID loop
|
||||
higher values make PID derivative term more stable at the expense of reaction time
|
||||
|
|
|
|||
|
|
@ -371,12 +371,6 @@ DEFINE_HEATER(fan, PORTH, PINH6, OCR2B)
|
|||
*/
|
||||
#define STEP_INTERRUPT_INTERRUPTIBLE 1
|
||||
|
||||
/*
|
||||
how often we overflow and update our clock; with F_CPU=16MHz, max is < 4.096ms (TICK_TIME = 65535)
|
||||
*/
|
||||
#define TICK_TIME 2 MS
|
||||
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
|
||||
|
||||
/*
|
||||
temperature history count. This is how many temperature readings to keep in order to calculate derivative in PID loop
|
||||
higher values make PID derivative term more stable at the expense of reaction time
|
||||
|
|
|
|||
6
timer.c
6
timer.c
|
|
@ -4,6 +4,12 @@
|
|||
|
||||
#include "dda_queue.h"
|
||||
|
||||
/*
|
||||
how often we overflow and update our clock; with F_CPU=16MHz, max is < 4.096ms (TICK_TIME = 65535)
|
||||
*/
|
||||
#define TICK_TIME 2 MS
|
||||
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
|
||||
|
||||
volatile uint32_t next_step_time;
|
||||
|
||||
uint8_t clock_counter_10ms = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue