Page 367 - MDP2022-2
P. 367
* Copyright (c) 2022 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "math.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
#define dir1 GPIO_PIN_13
#define dir2 GPIO_PIN_12
#define dir3 GPIO_PIN_11
#define step1 GPIO_PIN_12
#define step2 GPIO_PIN_14
#define step3 GPIO_PIN_15
#define up GPIO_PIN_3
#define down GPIO_PIN_15
#define left GPIO_PIN_11
#define right GPIO_PIN_0
#define drop GPIO_PIN_10
#define fix_dir GPIO_PIN_5
#define fix_step GPIO_PIN_6