configsmpspwm3.c

来自「Mplab C30编译器」· C语言 代码 · 共 31 行

C
31
字号
#if defined(__dsPIC30F__) 
#include <p30fxxxx.h>
#elif defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#endif

#include "smpspwm.h"
#ifdef _PWM3IF 

/*************************************************************************
* Function Name     : ConfigSmpsPWM3
* Description       : TThis function configures the PWM3 Pair by writing to PWMCON3, 
*                     IOCON3, PHASE3 and TRGCON3 registers.                       
* Parameters        : unsigned int config1,unsigned int config2,unsigned int config3,
*                     unsigned int config4
* Return Value      : None 
**************************************************************************/

void ConfigSmpsPWM3(unsigned int config1,unsigned int config2,unsigned int config3,
                    unsigned int config4)
{
    PWMCON3 = config1 ; 
	IOCON3  = config2 ; 
    PHASE3  = config3 ; 
    TRGCON3 = config4 ; 
}
#else
#warning "Does not build on this target"
#endif
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?