/** * @file HW_GPIO_ATY.c * * @param Project DEVICE_GENERAL_ATY_LIB * * @author ATY * * @copyright * - Copyright 2017 - 2023 MZ-ATY * - This code follows: * - MZ-ATY Various Contents Joint Statement - * * https://mengze.top/MZ-ATY_VCJS * - CC 4.0 BY-NC-SA - * * https://creativecommons.org/licenses/by-nc-sa/4.0/ * - Your use will be deemed to have accepted the terms of this statement. * * @brief Familiar definition of GPIO for users * * @version * - 1_01_220602 > ATY * -# Preliminary version, first Release * - Undone ******************************************************************************** */ #ifndef __HW_GPIO_ATY_C #define __HW_GPIO_ATY_C #include "HW_GPIO_ATY.h" /******************************* For user *************************************/ #if defined(__STC51_ATY) #elif defined(__STM32_HAL_ATY) // void GPIO_SetOut(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) // { // GPIO_InitTypeDef GPIO_InitStruct; // __HAL_RCC_GPIOB_CLK_ENABLE(); // GPIO_InitStruct.Pin = GPIO_Pin; // GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; // GPIO_InitStruct.Pull = GPIO_NOPULL; // GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; // HAL_GPIO_Init(GPIOx, &GPIO_InitStruct); // } // void GPIO_SetIn(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) // { // GPIO_InitTypeDef GPIO_InitStruct; // __HAL_RCC_GPIOB_CLK_ENABLE(); // GPIO_InitStruct.Pin = GPIO_Pin; // GPIO_InitStruct.Mode = GPIO_MODE_INPUT; // GPIO_InitStruct.Pull = GPIO_NOPULL; // GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; // HAL_GPIO_Init(GPIOx, &GPIO_InitStruct); // } #endif /* PLATFORM */ /******************************************************************************/ #endif /* __HW_GPIO_ATY_C */ /******************************** End Of File *********************************/