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:
parent
721649e8ef
commit
c594a2b995
10
dda_queue.c
10
dda_queue.c
|
|
@ -16,10 +16,12 @@
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "memory_barrier.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
|
Movebuffer head pointer. Points to the last move in the queue. This variable
|
||||||
/// only written outside of interrupts.
|
is used both in and out of interrupts, but is only written outside of
|
||||||
uint8_t mb_head = 0;
|
interrupts.
|
||||||
|
*/
|
||||||
|
static uint8_t mb_head = 0;
|
||||||
|
|
||||||
/// movebuffer tail pointer. Points to the currently executing move
|
/// movebuffer tail pointer. Points to the currently executing move
|
||||||
/// this variable is read/written both in and out of interrupts.
|
/// this variable is read/written both in and out of interrupts.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// this is the ringbuffer that holds the current and pending moves.
|
// this is the ringbuffer that holds the current and pending moves.
|
||||||
extern uint8_t mb_head;
|
|
||||||
extern uint8_t mb_tail;
|
extern uint8_t mb_tail;
|
||||||
extern DDA movebuffer[MOVEBUFFER_SIZE];
|
extern DDA movebuffer[MOVEBUFFER_SIZE];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue