#ifndef _PRINTER_H
#define _PRINTER_H

#include "include.h"

/***走纸步进电机****/
#define MOTOR_SLEEP_GPIO  GPIOF_REG
#define MOTOR_SLEEP_PIN   GPIO_PIN_2

#define MOTOR_AIN1_GPIO   GPIOF_REG
#define MOTOR_AIN1_PIN    GPIO_PIN_1
#define MOTOR_AIN2_GPIO   GPIOF_REG
#define MOTOR_AIN2_PIN    GPIO_PIN_0
#define MOTOR_BIN1_GPIO   GPIOE_REG
#define MOTOR_BIN1_PIN    GPIO_PIN_7
#define MOTOR_BIN2_GPIO   GPIOE_REG
#define MOTOR_BIN2_PIN    GPIO_PIN_6
/*********************/

/*******SPI******/
#define TPH_SPI_GPIO    GPIOA_REG
#define TPH_SPI_CLK     GPIO_PIN_3
#define TPH_SPI_DAT     GPIO_PIN_4
#define TPH_SPI_MHZ     6
/*********************/

/******打印头******/
#define TPH_LAT_GPIO   GPIOF_REG
#define TPH_LAT_PIN    GPIO_PIN_4

#define TPH_STB_GPIO   GPIOF_REG
#define TPH_STB_PIN    GPIO_PIN_5

#define TPH_VH_GPIO    GPIOF_REG
#define TPH_VH_PIN     GPIO_PIN_3
/******************/

void printer_example(void);
void printer_init(void);

#endif
