dda_queue.c/.h: make mb_head local.

This doesn't change binary size or performance, but it increases
encapsulation.
This commit is contained in:
Markus Hitter 2016-11-24 12:01:22 +01:00
parent 721649e8ef
commit c594a2b995
2 changed files with 6 additions and 5 deletions

View File

@ -16,10 +16,12 @@
#include "cpu.h"
#include "memory_barrier.h"
/// movebuffer head pointer. Points to the last move in the queue.
/// this variable is used both in and out of interrupts, but is
/// only written outside of interrupts.
uint8_t mb_head = 0;
/**
Movebuffer head pointer. Points to the last move in the queue. This variable
is used both in and out of interrupts, but is only written outside of
interrupts.
*/
static uint8_t mb_head = 0;
/// movebuffer tail pointer. Points to the currently executing move
/// this variable is read/written both in and out of interrupts.

View File

@ -11,7 +11,6 @@
*/
// this is the ringbuffer that holds the current and pending moves.
extern uint8_t mb_head;
extern uint8_t mb_tail;
extern DDA movebuffer[MOVEBUFFER_SIZE];