HW_GPIO_ATY.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * @file HW_GPIO_ATY.c
  3. *
  4. * @param Project DEVICE_GENERAL_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2023 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief Familiar definition of GPIO for users
  20. *
  21. * @version
  22. * - 1_01_220602 > ATY
  23. * -# Preliminary version, first Release
  24. * - Undone
  25. ********************************************************************************
  26. */
  27. #ifndef __HW_GPIO_ATY_C
  28. #define __HW_GPIO_ATY_C
  29. #include "HW_GPIO_ATY.h"
  30. /******************************* For user *************************************/
  31. #if defined(__STC51_ATY)
  32. #elif defined(__STM32_HAL_ATY)
  33. // void GPIO_SetOut(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
  34. // {
  35. // GPIO_InitTypeDef GPIO_InitStruct;
  36. // __HAL_RCC_GPIOB_CLK_ENABLE();
  37. // GPIO_InitStruct.Pin = GPIO_Pin;
  38. // GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  39. // GPIO_InitStruct.Pull = GPIO_NOPULL;
  40. // GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  41. // HAL_GPIO_Init(GPIOx, &GPIO_InitStruct);
  42. // }
  43. // void GPIO_SetIn(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
  44. // {
  45. // GPIO_InitTypeDef GPIO_InitStruct;
  46. // __HAL_RCC_GPIOB_CLK_ENABLE();
  47. // GPIO_InitStruct.Pin = GPIO_Pin;
  48. // GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  49. // GPIO_InitStruct.Pull = GPIO_NOPULL;
  50. // GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  51. // HAL_GPIO_Init(GPIOx, &GPIO_InitStruct);
  52. // }
  53. #endif /* PLATFORM */
  54. /******************************************************************************/
  55. #endif /* __HW_GPIO_ATY_C */
  56. /******************************** End Of File *********************************/