/**
  ******************************************************************************
  * @file    TIMER_CFG.h
  * @author  SINOMCU-AE
  * @brief   Header file of TIMER_CFG.c file.
  *     
  *          This file describes the Timer macro definitions used:
  *    how many cycles to adjust duty,duty minimum and maximum
  * 
  ******************************************************************************
  * @attention 
  *                           DISCLAIMER
  * The present firmware which is for guidance only aims at providing customers
  * with coding information regarding their products in order for them to save
  * time. As a result, SinoMCU shall not be held liable for any direct,indirect
  * or consequential damages with respect to any claims arising from the content 
  * of such firmware and/or the use made by customers of the coding information 
  * contained herein in connection with their products.
  *
  * <h2><center>&copy; Copyright (c) 2021 sinomcu All rights reserved.</center></h2>
  *
  ******************************************************************************
  */

#ifndef __TIMER_CFG_H
#define __TIMER_CFG_H

#include "ms32f0xx.h"

#define TIMER1_DUTY_ADJ_10MS_NUM 9     // how many cycles to adjust duty
#define TIMER1_PWM_DUTY_PER_MIN  5     // duty minimum
#define TIMER1_PWM_DUTY_PER_MAX  99    // duty maximum

#define DUTY_DIR_INC             1     // duty cycle increment
#define DUTY_DIR_DEC             0     // duty cycle decrement

void Timer1_PWMwN_Init(void);

#endif /* __TIMER_CFG_H */ 

/******************************** END OF FILE *********************************/
