/**
  ******************************************************************************
  * @file    PWR_user.h
  * @author  SINOMCU-AE
  * @brief   Header file of PWR_user.c file.
  *    
  ******************************************************************************
  * @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 __PWR_USER_H
#define __PWR_USER_H

#include "ms32f0xx.h"

#define TEST_STOP_CURRENT         0    // 1:before enter stop all GPIO analog,pull no;0:before enter stop no GPIO settings

#if( defined(TEST_STOP_CURRENT) && (TEST_STOP_CURRENT) )
// 5S,for next time connect Debuger or Flash Program 
#define ENTER_STOP_DELAY_BASE_MS  100
#define ENTER_STOP_DELAY_COUNT    50   // ENTER_STOP_DELAY_COUNT * ENTER_STOP_DELAY_BASE_MS
#else
// 5S,enter stop 
#define ENTER_STOP_DELAY_COUNT    10   // ENTER_STOP_DELAY_COUNT * COUNT_PERIOD
#endif

#define DELAY_FOR_UART_SEND       2    // unit ms

void EnterSTOP_LPREGUMode(void);

#endif /* __PWR_USER_H */ 

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