| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * @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 -
- * <a href="https://mengze.top/MZ-ATY_VCJS">
- * https://mengze.top/MZ-ATY_VCJS</a>
- * - CC 4.0 BY-NC-SA -
- * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
- * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
- * - 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 *********************************/
|