From d8e2778b7bd737fe9b779ffc638f8cf60c3594df Mon Sep 17 00:00:00 2001 From: Simen Svale Skogsrud Date: Tue, 25 Jan 2011 22:54:48 +0100 Subject: [PATCH] bye bye support for atmega 168, your flash space has overflowed --- stepper.c | 8 -------- stepper_plan.h | 4 ---- wiring_serial.c | 4 ---- 3 files changed, 16 deletions(-) diff --git a/stepper.c b/stepper.c index ce511e2..834696a 100644 --- a/stepper.c +++ b/stepper.c @@ -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 // 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. -#ifdef 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 @@ -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 // the motor port after a short period (settings.pulse_microseconds) completing one step cycle. -#ifdef TIMER2_OVF_vect SIGNAL(TIMER2_OVF_vect) -#else -SIGNAL(SIG_OVERFLOW2) -#endif { // reset stepping pins (leave the direction pins) STEPPING_PORT = (STEPPING_PORT & ~STEP_MASK) | (settings.invert_mask & STEP_MASK); diff --git a/stepper_plan.h b/stepper_plan.h index 1fcbf5a..5a7237e 100644 --- a/stepper_plan.h +++ b/stepper_plan.h @@ -24,11 +24,7 @@ #include // Pick a suitable block-buffer size -#ifdef __AVR_ATmega328P__ #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 // the source g-code and may never actually be reached if acceleration management is active. diff --git a/wiring_serial.c b/wiring_serial.c index fdec46f..2f08fd8 100644 --- a/wiring_serial.c +++ b/wiring_serial.c @@ -87,11 +87,7 @@ void serialFlush() rx_buffer_head = rx_buffer_tail; } -#ifdef USART_RX_vect SIGNAL(USART_RX_vect) -#else -SIGNAL(SIG_USART_RECV) -#endif { unsigned char c = UDR0; int i = (rx_buffer_head + 1) % RX_BUFFER_SIZE;