Repetier-Firmware  0.91
src/ArduinoAVR/Repetier/HAL.cpp File Reference
#include "Repetier.h"
#include <compat/twi.h>
#include <avr/io.h>

Defines

#define serialEvent_implemented

Functions

void setTimer (unsigned long delay)
 Sets the timer 1 compare value to delay ticks.
 ISR (TIMER1_COMPA_vect)
 Timer interrupt routine to drive the stepper motors.
 ISR (PWM_TIMER_VECTOR)
 ISR (EXTRUDER_TIMER_VECTOR)
 Timer routine for extruder stepper.
void rf_store_char (unsigned char c, ring_buffer *buffer)
void rfSerialEvent () __attribute__((weak))

Variables

const uint16_t fast_div_lut[17] PROGMEM
void(* resetFunc )(void)=0
volatile uint8_t insideTimer1 = 0
long stepperWait = 0
ring_buffer rx_buffer = { { 0 }, 0, 0}
ring_buffer_tx tx_buffer = { { 0 }, 0, 0}

Define Documentation


Function Documentation

ISR ( TIMER1_COMPA_vect  )

Timer interrupt routine to drive the stepper motors.

This timer is called 3906 timer per second. It is used to update pwm values for heater and some other frequent jobs.

Timer routine for extruder stepper.

Several methods need to move the extruder. To get a optima result, all methods update the printer_state.extruderStepsNeeded with the number of additional steps needed. During this interrupt, one step is executed. This will keep the extruder moving, until the total wanted movement is achieved. This will be done with the maximum allowable speed for the extruder.

void rf_store_char ( unsigned char  c,
ring_buffer buffer 
) [inline]
void rfSerialEvent ( )
void setTimer ( unsigned long  delay) [inline]

Sets the timer 1 compare value to delay ticks.

This function sets the OCR1A compare counter to get the next interrupt at delay ticks measured from the last interrupt. delay must be << 2^24


Variable Documentation

volatile uint8_t insideTimer1 = 0
const uint16_t slow_div_lut [257] PROGMEM
Initial value:
 {0,F_CPU/4096,F_CPU/8192,F_CPU/12288,F_CPU/16384,F_CPU/20480,F_CPU/24576,F_CPU/28672,F_CPU/32768,F_CPU/36864
        ,F_CPU/40960,F_CPU/45056,F_CPU/49152,F_CPU/53248,F_CPU/57344,F_CPU/61440,F_CPU/65536
                                          }
void(* resetFunc)(void)=0
ring_buffer rx_buffer = { { 0 }, 0, 0}
long stepperWait = 0
ring_buffer_tx tx_buffer = { { 0 }, 0, 0}
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Defines