#ifndef __EPWM_B_H__
#define __EPWM_B_H__
#include "msystem.h"

typedef struct epwm
{
    const char* name;
    FILE*  fp_period_a;
    FILE*  fp_period_b;
    FILE*  fp_duty_cycle_a;
    FILE*  fp_duty_cycle_b;
    int ratioA;
    int ratioB;
}epwm_t;


int bsp_epwm_init(epwm_t* dev, const char* name);

void bsp_epwm_exit(epwm_t* dev);

void bsp_epwm_configA(epwm_t* dev, int Hz, int ratio);

void bsp_epwm_configB(epwm_t* dev, int Hz, int ratio);

#endif//__EPWM_B_H__
