Files
CH32V208WBU6/BSP/Global.h
T

38 lines
553 B
C
Raw Normal View History

2023-06-11 18:46:26 +08:00
/*
* 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_ */