You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "gpio_sensor.h"
|
|
|
|
|
|
|
|
|
|
|
|
void Gpio_Sensor_PWR_Initialization(void)
|
|
|
|
{
|
|
|
|
HAL_GPIO_ConfigOutput(GPIO_SENSOR_PWR_PORT, GPIO_SENSOR_PWR_PIN_NUM, PUSH_PULL_OUTPUT);
|
|
|
|
HAL_GPIO_ConfigPullup(GPIO_SENSOR_PWR_PORT, GPIO_SENSOR_PWR_PIN_NUM, PUPDx_EnablePU);
|
|
|
|
GPIO_SENSOR_PWR_OFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Gpio_Relay_Initialization(void)
|
|
|
|
{
|
|
|
|
HAL_GPIO_ConfigOutput(GPIO_RELAY_PORT, GPIO_RELAY_PIN_NUM, PUSH_PULL_OUTPUT);
|
|
|
|
HAL_GPIO_ConfigPullup(GPIO_RELAY_PORT, GPIO_RELAY_PIN_NUM, PUPDx_EnablePU);
|
|
|
|
GPIO_RELAY_OFF;
|
|
|
|
}
|