main.c

来自「全国智能车大赛电机的PWM调试源代码 可以设置pwm的占空比」· C语言 代码 · 共 17 行

C
17
字号
/*
 * pwm output test project
 */
 
#include <hidef.h>            /* common defines and macros */
#include <mc9s12dg128.h>      /* derivative information */

#include "pwm.h"

#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"

void main(void) {
  helm_motor_pwm_init();				/* 舵机pwm驱动初始化 */
  EnableInterrupts;
  helm_motor_test();            /* 舵机测试 */
}

⌨️ 快捷键说明

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