/**
  ******************************************************************************
  * @file    GPIO_CFG.h
  * @author  SINOMCU-AE
  * @brief   Header file of GPIO_CFG.c file.
  *    
  *          This file describes the GPIO macro definitions used:
  *             PB6  --> LED1
  *             PB4  <-- KEY2
  *         
  ******************************************************************************
  * @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 __GPIO_CFG_H
#define __GPIO_CFG_H

#include "ms32f0xx.h"

#define LED_Port               GPIOB
#define LED1_Pin               MS32_GPIO_PIN_6
#define LED1_AHB_PERIPH_Port   MS32_AHB1_GRP1_PERIPH_GPIOB

#define KEY2_Port              GPIOB
#define KEY2_Pin               MS32_GPIO_PIN_4
#define KEY2_AHB_PERIPH_Port   MS32_AHB1_GRP1_PERIPH_GPIOB

void LED1_ON(void); 
void LED1_OFF(void);
void LED1_TOGGLE(void);
uint32_t Read_Key_pin(void);

void GPIO_Init(void);

#endif /* __GPIO_CFG_H */ 

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