📄 main.c
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -