/**
  ******************************************************************************
  * @file    Lib_ex_CMP2.h
  * @author  SINOMCU-AE
  * @brief   Header file of Lib_ex_CMP2.c file.
  * 
  *          This file describes the CMP2 macro definitions used:
  *   INP options.
  *   
  ******************************************************************************
  * @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 __LIB_EX_CMP22_H
#define __LIB_EX_CMP22_H

#include "ms32f0xx.h"

#define VREF_ANALOG_WAIT                4800               // loop 100 times,MAX sysclk 48MHz
#define MS32_COMP2_POS_CPxP_PIN         (0x00000000U)
#define MS32_COMP2_POS_OP1OUT           (CMP_CPxCR_CPxPSEL_0)
#define MS32_COMP2_POS_OP2OUT           (CMP_CPxCR_CPxPSEL_1)
#define MS32_COMP2_POS_OP3OUT           (CMP_CPxCR_CPxPSEL_1 |CMP_CPxCR_CPxPSEL_0)

void MS32_CMP2_Init(MS32_CMP_InitTypeDef *CmpInitStr);

#endif /* __LIB_EX_CMP22_H */ 

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