重新设定通信协议,目标坐标值为16位,设定了一个传输结束的停止控制指令;根据丝杆有效行程,重新计算了到达目标所需时间;重新设定了串口缓冲区结构体变量参数;修改了执行XY轴单步操作以及取印章的判断条件。
110 lines
2.9 KiB
C
110 lines
2.9 KiB
C
/*
|
||
*
|
||
* Copyright 2018,程豪琪,哈尔滨工业大学
|
||
* All Rights Reserved.
|
||
*/
|
||
/*
|
||
* *******************************郑重声明****************************************
|
||
|
||
* 该程序为本人所写,付出了大量的精力,现将其公开出来供大家参考学习;
|
||
* 任何个人和组织不得未经授权将此程序转载,或用于商业行为!
|
||
*
|
||
* 由于本人水平有限,程序难免出现错误,可以通过下面的联系方式联系本人
|
||
* 谢谢你的指正!
|
||
*
|
||
* 邮箱:18s153717@stu.hit.edu.cn
|
||
* github:https://github.com/clearcumt
|
||
* 博客:https://www.cnblogs.com/loveclear/
|
||
*
|
||
* ******************************************************************************
|
||
*/
|
||
|
||
|
||
/**
|
||
******************************************************************************
|
||
* @file GPIO/IOToggle/stm32f10x_it.c
|
||
* @author MCD Application Team
|
||
* @version V3.5.0
|
||
* @date 08-April-2011
|
||
* @brief Main Interrupt Service Routines.
|
||
* This file provides template for all exceptions handler and peripherals
|
||
* interrupt service routine.
|
||
******************************************************************************
|
||
* @attention
|
||
*
|
||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||
*
|
||
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||
******************************************************************************
|
||
*/
|
||
|
||
/* Includes ------------------------------------------------------------------*/
|
||
#include "stm32f10x_it.h"
|
||
|
||
|
||
|
||
void NMI_Handler(void)
|
||
{
|
||
}
|
||
|
||
void HardFault_Handler(void)
|
||
{
|
||
/* Go to infinite loop when Hard Fault exception occurs */
|
||
while (1)
|
||
{
|
||
}
|
||
}
|
||
|
||
void MemManage_Handler(void)
|
||
{
|
||
/* Go to infinite loop when Memory Manage exception occurs */
|
||
while (1)
|
||
{
|
||
}
|
||
}
|
||
|
||
|
||
void BusFault_Handler(void)
|
||
{
|
||
/* Go to infinite loop when Bus Fault exception occurs */
|
||
while (1)
|
||
{
|
||
}
|
||
}
|
||
|
||
void UsageFault_Handler(void)
|
||
{
|
||
/* Go to infinite loop when Usage Fault exception occurs */
|
||
while (1)
|
||
{
|
||
}
|
||
}
|
||
|
||
void SVC_Handler(void)
|
||
{
|
||
}
|
||
|
||
void DebugMon_Handler(void)
|
||
{
|
||
}
|
||
|
||
void PendSV_Handler(void)
|
||
{
|
||
}
|
||
|
||
void SysTick_Handler(void)
|
||
{
|
||
}
|
||
|
||
/******************************************************************************/
|
||
/* STM32F10x Peripherals Interrupt Handlers */
|
||
/* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
|
||
/* available peripheral interrupt handler's name please refer to the startup */
|
||
/* file (startup_stm32f10x_xx.s). */
|
||
/******************************************************************************/
|