You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
907 B
35 lines
907 B
#ifndef _pwm_module_H_
|
|
#define _pwm_module_H_
|
|
|
|
#include "lib_config.h"
|
|
#include "light.h"
|
|
#include "ozone_work.h"
|
|
#include "port.h"
|
|
#include "system_ES8P5066.h"
|
|
|
|
void HOOK_pwm_module_set_pwm_duty(uint32_t frequency, uint32_t duty);
|
|
void HOOK_pwm_stop(void);
|
|
bool HOOK_pwm_is_enable(void);
|
|
void pwm_module_set_pwm_output_1(uint32_t large_period, uint32_t large_duty);
|
|
void pwm_module_set_pwm_output_2(uint32_t hardware_period,
|
|
uint32_t hardware_duty, uint32_t large_period,
|
|
uint32_t large_duty);
|
|
|
|
void ozone_pwm_control_set_pwm_duty(uint32_t frequency, uint32_t duty);
|
|
void pwm_module_stop_pwm(void);
|
|
void update_large_period(void);
|
|
void pwm_module_loop(void);
|
|
#endif
|
|
|
|
// 2Сʱ
|
|
// 50
|
|
|
|
// 80
|
|
// 3Сʱ
|
|
|
|
// 1Сʱ
|
|
// if(haspassed(beigin)/Сʱ%2<=1){
|
|
// ¹Ø
|
|
// }else{
|
|
|
|
// }
|