7aeffa6b70
feat: 1. updated uvw duty cycle every 41.6us (24KHz) 2. EPWM->CCMRn_OUTPUT_b.OCnPE=1
24 lines
422 B
C
24 lines
422 B
C
/**
|
|
* Copyright (c) 2026 Wisetop. All Rights Reserved.
|
|
*/
|
|
/** @file init.h
|
|
*
|
|
* @author Roy Luo
|
|
* @version 0.1
|
|
* @date 2026/03/20
|
|
* @license
|
|
* @description
|
|
*/
|
|
|
|
#ifndef INC_INIT_H_
|
|
#define INC_INIT_H_
|
|
|
|
void SYS_Config();
|
|
void gpio_config();
|
|
void pwm_config();
|
|
void pwm_set_duty(uint16_t ch1_val, uint16_t ch2_val, uint16_t ch3_val);
|
|
void pwm_enable();
|
|
void pwm_disable();
|
|
void pwm_brake();
|
|
#endif /* INC_INIT_H_ */
|