90 lines
2.7 KiB
C
90 lines
2.7 KiB
C
/* USER CODE BEGIN Header */
|
|
/**
|
|
******************************************************************************
|
|
* @file : main.h
|
|
* @brief : Header for main.c file.
|
|
* This file contains the common defines of the application.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2025 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 */
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f4xx_hal.h"
|
|
|
|
/* Private includes ----------------------------------------------------------*/
|
|
/* USER CODE BEGIN Includes */
|
|
|
|
/* USER CODE END Includes */
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN ET */
|
|
|
|
/* USER CODE END ET */
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
/* USER CODE BEGIN EC */
|
|
|
|
/* USER CODE END EC */
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* USER CODE BEGIN EM */
|
|
|
|
/* USER CODE END EM */
|
|
|
|
/* Exported functions prototypes ---------------------------------------------*/
|
|
void Error_Handler(void);
|
|
|
|
/* USER CODE BEGIN EFP */
|
|
|
|
/* USER CODE END EFP */
|
|
|
|
/* Private defines -----------------------------------------------------------*/
|
|
|
|
/* USER CODE BEGIN Private defines */
|
|
|
|
|
|
|
|
|
|
#define PC_Go (Remote_RxData.Remote_Key_W)//?
|
|
#define PC_Back (Remote_RxData.Remote_Key_S)//?
|
|
#define PC_Left (Remote_RxData.Remote_Key_A)//?
|
|
#define PC_Right (Remote_RxData.Remote_Key_D)//?
|
|
|
|
#define PC_Spin (Remote_RxData.Remote_Mouse_RL)//??????
|
|
#define PC_Pitch (Remote_RxData.Remote_Mouse_DU)//??????
|
|
#define PC_Mouse_RLSensitivity 3.0f//???????
|
|
#define PC_Mouse_DUSensitivity 8.0f//???????
|
|
|
|
#define PC_FrictionWheel (Remote_RxData.Remote_KeyPush_Q)//???
|
|
#define PC_Fire (Remote_RxData.Remote_Mouse_KeyL)//??
|
|
#define PC_Ejection (Remote_RxData.Remote_Key_E)//??
|
|
|
|
#define PC_GyroScope (Remote_RxData.Remote_KeyPush_Ctrl)//???
|
|
#define PC_SpeedUp (Remote_RxData.Remote_Key_Shift)//??
|
|
|
|
/* USER CODE END Private defines */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|