20260106:移植了野火的ESP-01s驱动代码,初步实现功能。

This commit is contained in:
2026-01-06 01:22:02 +08:00
parent bd85b7395e
commit 2e6795f988
26 changed files with 1770 additions and 605 deletions

View File

@@ -1,5 +1,11 @@
#include "Relay.h"
/**
* @brief PA0????????
* @note ???PA0???????????????????????
* @param None
* @retval None
*/
void vPa0RelayInit(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
@@ -13,11 +19,23 @@ void vPa0RelayInit(void)
vPa0RelayOff();
}
/**
* @brief PA0???????
* @note ?PA0???????????????
* @param None
* @retval None
*/
void vPa0RelayOn(void)
{
GPIO_SetBits(PA0_RELAY_GPIO_PORT,PA0_RELAY_GPIO_PIN);
}
/**
* @brief PA0???????
* @note ?PA0???????????????
* @param None
* @retval None
*/
void vPa0RelayOff()
{
GPIO_ResetBits(PA0_RELAY_GPIO_PORT,PA0_RELAY_GPIO_PIN);