/*
 * UART.h
 *
 *  Created on: Aug 3, 2020
 *      Author: joovi
 */

#ifndef UART_H_
#define UART_H_

#define FOCUS_MOTOR_COMMAND_BIT  0X00  // could switch to 0x80 if want to flip controls
#define TILT_MOTOR_COMMAND_BIT  0X80  // could switch to 0x80 if want to flip controls


void Init_UART(void);
enum Command_Action UartCommandProcess(void);

enum Command_Action {
    None, UpdateFocus, UpdateTilt
};

extern int g_iFocusMotorPositionCounter;
extern int g_iFocusMotorPIcount;
extern int g_iTiltMotorPositionCounter;
extern int g_iTiltMotorPIcount;
extern int g_StepperPositionUpdate;

#endif /* UART_H_ */
