2013-01-17 13:06:51 +01:00
|
|
|
#include "../planner.h"
|
|
|
|
|
2014-07-04 17:14:54 +02:00
|
|
|
static plan_block_t block_buffer[BLOCK_BUFFER_SIZE]; // A ring buffer for motion instructions
|
|
|
|
plan_block_t *get_block_buffer() { return block_buffer; }
|
2013-01-17 13:06:51 +01:00
|
|
|
|
2014-07-04 17:14:54 +02:00
|
|
|
static uint8_t block_buffer_head; // Index of the next block to be pushed
|
2013-01-17 13:06:51 +01:00
|
|
|
uint8_t get_block_buffer_head() { return block_buffer_head; }
|
|
|
|
|
2014-07-04 17:14:54 +02:00
|
|
|
static uint8_t block_buffer_tail; // Index of the next block to be pushed
|
2013-01-17 13:06:51 +01:00
|
|
|
uint8_t get_block_buffer_tail() { return block_buffer_tail; }
|