| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /**
- ******************************************************************************
- * @file Project/STM32F4xx_StdPeriph_Templates/main.h
- * @author MCD Application Team
- * @version V1.8.0
- * @date 04-November-2016
- * @brief Header for main.c module
- ******************************************************************************
- * @attention
- *
- * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2>
- *
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- ******************************************************************************
- */
-
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __MAIN_H
- #define __MAIN_H
- /* Includes ------------------------------------------------------------------*/
- #include "stm32f4xx.h"
- #include <math.h>
- #include "foc_define_parameter.h"
- #include "arm_math.h"
- #include "board_config.h"
- #include "exti.h"
- #include "foc_algorithm.h"
- #include "adc.h"
- #include "hall_sensor.h"
- //#include "communication.h"
- #include "low_task.h"
- #include "speed_pid.h"
- #include "uart_communication.h"
- #include "openloop.h"
- /* Exported types ------------------------------------------------------------*/
- /**
- * @brief 布尔类型定义
- */
- typedef enum
- {
- FALSE = 0, TRUE = !FALSE
- }
- bool;
- /* Exported constants --------------------------------------------------------*/
- /* Exported macro ------------------------------------------------------------*/
- /* Exported functions ------------------------------------------------------- */
- /**
- * @brief 延时计数器递减函数
- * @param 无
- * @retval 无
- * @note 在SysTick中断中调用
- */
- void TimingDelay_Decrement(void);
- /**
- * @brief 延时函数
- * @param nTime: 延时时间(毫秒)
- * @retval 无
- */
- extern void Delay(__IO uint32_t nTime);
- #endif /* __MAIN_H */
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|