Functions | Variables

gcode_process.c File Reference

Work out what to do with received G-Code commands. More...

#include "gcode_process.h"
#include <string.h>
#include "gcode_parse.h"
#include "dda_queue.h"
#include "watchdog.h"
#include "delay.h"
#include "serial.h"
#include "sermsg.h"
#include "temp.h"
#include "heater.h"
#include "timer.h"
#include "sersendf.h"
#include "pinio.h"
#include "debug.h"
#include "clock.h"
#include "config.h"
#include "home.h"

Functions

void process_gcode_command ()
 Processes command stored in global next_target.

Variables

uint8_t tool
 the current tool
uint8_t next_tool
 the tool to be changed when we get an M6

Detailed Description

Work out what to do with received G-Code commands.


Function Documentation

void process_gcode_command ( void   )

Processes command stored in global next_target.

This is where we work out what to actually do with each command we receive. All data has already been scaled to integers in gcode_process. If you want to add support for a new G or M code, this is the place.

Referenced by gcode_parse_char().

 All Data Structures Files Functions Variables Defines