pwm ok
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Global.h
|
||||
*
|
||||
* Created on: Jun 10, 2023
|
||||
* Author: gxms0
|
||||
*/
|
||||
|
||||
#ifndef BSP_GLOBAL_H_
|
||||
#define BSP_GLOBAL_H_
|
||||
|
||||
#include "ch32v20x.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//define timer pwm frequency
|
||||
#define TIM2_FRQ 50
|
||||
#define TIM3_FRQ 1000
|
||||
#define TIM4_FRQ 50
|
||||
|
||||
//define pwm initialize value
|
||||
#define PWM_CH1 1000
|
||||
#define PWM_CH2 1000
|
||||
#define PWM_CH3 1000
|
||||
#define PWM_CH4 1000
|
||||
#define PWM_CH5 1000
|
||||
#define PWM_CH6 1000
|
||||
|
||||
#define MOT_CH1 100
|
||||
#define MOT_CH2 100
|
||||
#define MOT_CH3 100
|
||||
#define MOT_CH4 100
|
||||
|
||||
|
||||
|
||||
#endif /* BSP_GLOBAL_H_ */
|
||||
Reference in New Issue
Block a user