relaunch ontop of latest grbl edge
code very messy but tested
This commit is contained in:
parent
aad8b0468d
commit
5e76136dd3
22 changed files with 1281 additions and 0 deletions
10
sim/planner_inject_accessors.c
Normal file
10
sim/planner_inject_accessors.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "../planner.h"
|
||||
|
||||
static block_t block_buffer[BLOCK_BUFFER_SIZE]; // A ring buffer for motion instructions
|
||||
block_t *get_block_buffer() { return block_buffer; }
|
||||
|
||||
static volatile uint8_t block_buffer_head; // Index of the next block to be pushed
|
||||
uint8_t get_block_buffer_head() { return block_buffer_head; }
|
||||
|
||||
static volatile uint8_t block_buffer_tail; // Index of the next block to be pushed
|
||||
uint8_t get_block_buffer_tail() { return block_buffer_tail; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue