bye bye support for atmega 168, your flash space has overflowed
This commit is contained in:
parent
c72efdaf62
commit
d8e2778b7b
@ -111,11 +111,7 @@ void st_buffer_line(int32_t steps_x, int32_t steps_y, int32_t steps_z, uint32_t
|
|||||||
// "The Stepper Driver Interrupt" - This timer interrupt is the workhorse of Grbl. It is executed at the rate set with
|
// "The Stepper Driver Interrupt" - This timer interrupt is the workhorse of Grbl. It is executed at the rate set with
|
||||||
// config_step_timer. It pops blocks from the block_buffer and executes them by pulsing the stepper pins appropriately.
|
// config_step_timer. It pops blocks from the block_buffer and executes them by pulsing the stepper pins appropriately.
|
||||||
// It is supported by The Stepper Port Reset Interrupt which it uses to reset the stepper port after each pulse.
|
// It is supported by The Stepper Port Reset Interrupt which it uses to reset the stepper port after each pulse.
|
||||||
#ifdef TIMER1_COMPA_vect
|
|
||||||
SIGNAL(TIMER1_COMPA_vect)
|
SIGNAL(TIMER1_COMPA_vect)
|
||||||
#else
|
|
||||||
SIGNAL(SIG_OUTPUT_COMPARE1A)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// TODO: Check if the busy-flag can be eliminated by just disabeling this interrupt while we are in it
|
// TODO: Check if the busy-flag can be eliminated by just disabeling this interrupt while we are in it
|
||||||
|
|
||||||
@ -192,11 +188,7 @@ SIGNAL(SIG_OUTPUT_COMPARE1A)
|
|||||||
|
|
||||||
// This interrupt is set up by SIG_OUTPUT_COMPARE1A when it sets the motor port bits. It resets
|
// This interrupt is set up by SIG_OUTPUT_COMPARE1A when it sets the motor port bits. It resets
|
||||||
// the motor port after a short period (settings.pulse_microseconds) completing one step cycle.
|
// the motor port after a short period (settings.pulse_microseconds) completing one step cycle.
|
||||||
#ifdef TIMER2_OVF_vect
|
|
||||||
SIGNAL(TIMER2_OVF_vect)
|
SIGNAL(TIMER2_OVF_vect)
|
||||||
#else
|
|
||||||
SIGNAL(SIG_OVERFLOW2)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// reset stepping pins (leave the direction pins)
|
// reset stepping pins (leave the direction pins)
|
||||||
STEPPING_PORT = (STEPPING_PORT & ~STEP_MASK) | (settings.invert_mask & STEP_MASK);
|
STEPPING_PORT = (STEPPING_PORT & ~STEP_MASK) | (settings.invert_mask & STEP_MASK);
|
||||||
|
@ -24,11 +24,7 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
// Pick a suitable block-buffer size
|
// Pick a suitable block-buffer size
|
||||||
#ifdef __AVR_ATmega328P__
|
|
||||||
#define BLOCK_BUFFER_SIZE 20 // Atmega 328 has one full kilobyte of extra RAM!
|
#define BLOCK_BUFFER_SIZE 20 // Atmega 328 has one full kilobyte of extra RAM!
|
||||||
#else
|
|
||||||
#define BLOCK_BUFFER_SIZE 10
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// This struct is used when buffering the setup for each linear movement "nominal" values are as specified in
|
// This struct is used when buffering the setup for each linear movement "nominal" values are as specified in
|
||||||
// the source g-code and may never actually be reached if acceleration management is active.
|
// the source g-code and may never actually be reached if acceleration management is active.
|
||||||
|
@ -87,11 +87,7 @@ void serialFlush()
|
|||||||
rx_buffer_head = rx_buffer_tail;
|
rx_buffer_head = rx_buffer_tail;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USART_RX_vect
|
|
||||||
SIGNAL(USART_RX_vect)
|
SIGNAL(USART_RX_vect)
|
||||||
#else
|
|
||||||
SIGNAL(SIG_USART_RECV)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
unsigned char c = UDR0;
|
unsigned char c = UDR0;
|
||||||
int i = (rx_buffer_head + 1) % RX_BUFFER_SIZE;
|
int i = (rx_buffer_head + 1) % RX_BUFFER_SIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user