cleanup: remove unused function sm4_get_dir
This commit is contained in:
parent
5a5c68f563
commit
f115adf894
|
|
@ -51,26 +51,6 @@ sm4_calc_delay_cb_t sm4_calc_delay_cb = 0;
|
||||||
|
|
||||||
uint16_t sm4_cpu_time = 0;
|
uint16_t sm4_cpu_time = 0;
|
||||||
|
|
||||||
|
|
||||||
uint8_t sm4_get_dir(uint8_t axis)
|
|
||||||
{
|
|
||||||
switch (axis)
|
|
||||||
{
|
|
||||||
#if ((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3))
|
|
||||||
case 0: return (PORTL & 2)?XDIR;
|
|
||||||
case 1: return (PORTL & 1)?YDIR;
|
|
||||||
case 2: return (PORTL & 4)?ZDIR;
|
|
||||||
case 3: return (PORTL & 64)?EDIR;
|
|
||||||
#elif ((MOTHERBOARD == BOARD_EINSY_1_0a))
|
|
||||||
case 0: return (PORTL & 1)?XDIR;
|
|
||||||
case 1: return (PORTL & 2)?YDIR;
|
|
||||||
case 2: return (PORTL & 4)?ZDIR;
|
|
||||||
case 3: return (PORTL & 64)?EDIR;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void sm4_set_dir(uint8_t axis, uint8_t dir)
|
void sm4_set_dir(uint8_t axis, uint8_t dir)
|
||||||
{
|
{
|
||||||
switch (axis)
|
switch (axis)
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,6 @@ extern sm4_update_pos_cb_t sm4_update_pos_cb;
|
||||||
// callback pointer - calc_delay
|
// callback pointer - calc_delay
|
||||||
extern sm4_calc_delay_cb_t sm4_calc_delay_cb;
|
extern sm4_calc_delay_cb_t sm4_calc_delay_cb;
|
||||||
|
|
||||||
|
|
||||||
// returns direction for single axis (0 - positive, 1 - negative)
|
|
||||||
extern uint8_t sm4_get_dir(uint8_t axis);
|
|
||||||
|
|
||||||
// set direction for single axis (0 - positive, 1 - negative)
|
// set direction for single axis (0 - positive, 1 - negative)
|
||||||
extern void sm4_set_dir(uint8_t axis, uint8_t dir);
|
extern void sm4_set_dir(uint8_t axis, uint8_t dir);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue