/**
  ************************************* Copyright ****************************** 
  *
  *                 Copyright (C), 2012-2016, Radioway Tech. Co., Ltd.
  *                            All Rights Reserved
  *
  *    
  * FileName   : pwm.h
  * Version    : v1.0
  * Author     : Heb
  * Date       : 2024-07-13
  * Description: 
  * Function List: 
  	1. ....
          <version>: 
     <modify staff>: 
             <data>: 
      <description>: 
  	2. ...
  ******************************************************************************
 */

#ifndef __PWM_H_
#define __PWM_H_


#define ALLOW_CHANNEL_NUM     5

#define MODE_C_NUM            1
#define MODE_CW_NUM           2
#define MODE_RGB_NUM          3
#define MODE_RGBC_NUM         4
#define MODE_RGBCW_NUM        5

typedef enum 
{
    PWM_POSITIVE = 0,
    PWM_NEGATIVE,
} pwm_polarity_t;


void pwm_init(uint32_t period, uint8_t channel_num);
void pwm_set_duty(uint8_t channel, uint16_t duty);
#endif


 

