/************************************************* Copyright File name: pwm.h Author: Version: V0.1 Date: 2024/4/27 *************************************************/ #ifndef __PWM_H #define __PWM_H #include "ch32l103.h" #define Prescaler 0 /* Êä³öƵÂÊΪ240M */ #define Period 200 - 1 //#define Period 2000 - 1 void PWM_TIM_Configuration(void); void Set_duty_ratio(float duty_ratio); #endif