/**
 * @file GpioMiddle.c
 * @brief 中间层封装通用GPIO代码
 * @author Landworld0321 (Landworld@landworld.com)
 * @version V1.0
 * @date 2025-04-22
 * @copyright Copyright (c) 2025 by Landworld.Co.Ltd. All rights reserved
 * 版本号    修改日期        修改人        修改内容
 * ---------------------------------------------------------------------------
 * v1.0    2025-04-22     WuHongHui     整理初版程序
 */

/*INCLUDE HEAD*********************************************************/
#include "GpioMiddle.h"

/**
 * @brief 初始化全部GPIO引脚配置
 * 
 */
void GpioMiddle_Init(void)
{
	PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_Gpio_Config_InitConfigArr);
}

/**
 * @brief 选择GPIO引脚进行电平设置
 * 
 * @param portGroup 选择配置的GPIO组:GROUP_A/GROUP_B/GROUP_C/GROUP_D/GROUP_E
 * @param portNumber 选择配置的GPIO引脚:0-32
 * @param portState 选择配置的GPIO电平状态:0:引脚拉低 1:引脚拉高
 */
void GpioMiddle_SetPin(GPIO_Type *portGroup, UINT16 portNumber, UINT8 portState)
{
	PINS_DRV_WritePin(portGroup, portNumber, portState);
}

