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

#include "ms32f0xx.h"

#define KEY_JITTER_NUM         3       // Timer base 10ms
#define KEY_PRESS_DOWN         0       // Key pin voltage low
#define KEY_RELEASE_UP         1       // Key pin voltage high
#define KEY_EFFECTIVE          0x00    // Key jetter pass
#define KEY_NULL               0xFF    // no key pressed

uint8_t Scan_Key(void);

#endif /* __KEY_SCAN_H */ 

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