24 lines
401 B
C
24 lines
401 B
C
/*************************************************
|
|
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 200 - 1
|
|
|
|
void PWM_TIM_Configuration(void);
|
|
void Set_duty_ratio(float duty_ratio);
|
|
|
|
#endif
|