17 lines
346 B
C
17 lines
346 B
C
#ifndef __IP_H__
|
||
#define __IP_H__
|
||
#include "lib.h"
|
||
|
||
#define IP_PWM_SYS_FREQUENCY (32 * 1000) // 主频,KHZ
|
||
|
||
typedef enum
|
||
{
|
||
IP_OUT_DAC = 1,
|
||
IP_OUT_PWM = 2,
|
||
} ip_out_mode_e;
|
||
|
||
void ip_set_init(ip_out_mode_e mode, uint8_t pwm_frequency);
|
||
void ip_set_out(uint16_t out);
|
||
uint16_t ip_pwm_duty_convert_ccr(float32 pwm_duty);
|
||
#endif // __IP_H__
|