main.c

来自「无刷直流电机的控制程序」· C语言 代码 · 共 27 行

C
27
字号

/****************************************************************************
* file name: main.c
*****************************************************************************/

#include "config.h"

#include "mc_lib.h"
#include "mc_control.h"
#include "mc_drv.h"
#include "serial.h"

#include "adc_drv.h"
#include <stdio.h>
#include "mc_test_procedure.h"

U16 g_regulation_period = 0;  //!< Define the sampling period
U16 motor_speed = 0;          //!< User Speed Order
extern Bool g_tic;            //see mc_drv.c Use for sampling time


//! Main user routine.
//!
//! The main user routine provides an UART control for the motor.
//! The mc_regulation_loop() function is launched every 80ms.
//! '0,1,2,3' are used to set the speed of the motor.
//! '&,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?