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.
28 lines
1.1 KiB
28 lines
1.1 KiB
/** \file gpio_sensor.h */
|
|
#if !defined(GPIO_SENSOR_H__8553E44F_09AC_401C_9FD1_67C4131DD471__INCLUDED_)
|
|
#define GPIO_SENSOR_H__8553E44F_09AC_401C_9FD1_67C4131DD471__INCLUDED_
|
|
|
|
#include "define.h"
|
|
#include "board_config.h"
|
|
|
|
#define GPIO_SENSOR_PWR_PORT (Pn_Type*)PD
|
|
#define GPIO_SENSOR_PWR_PIN_NUM 6
|
|
#define GPIO_SENSOR_PWR_ON HAL_GPIO_SetPin(GPIO_SENSOR_PWR_PORT, _BIT(GPIO_SENSOR_PWR_PIN_NUM))
|
|
#define GPIO_SENSOR_PWR_OFF HAL_GPIO_ClearPin(GPIO_SENSOR_PWR_PORT, _BIT(GPIO_SENSOR_PWR_PIN_NUM))
|
|
#define GPIO_SENSOR_PWR_T HAL_GPIO_TogglePin(GPIO_SENSOR_PWR_PORT, _BIT(GPIO_SENSOR_PWR_PIN_NUM))
|
|
|
|
|
|
|
|
#define GPIO_RELAY_PORT (Pn_Type*)PD
|
|
#define GPIO_RELAY_PIN_NUM 5
|
|
#define GPIO_RELAY_ON HAL_GPIO_SetPin(GPIO_RELAY_PORT, _BIT(GPIO_RELAY_PIN_NUM))
|
|
#define GPIO_RELAY_OFF HAL_GPIO_ClearPin(GPIO_RELAY_PORT, _BIT(GPIO_RELAY_PIN_NUM))
|
|
#define GPIO_RELAY_T HAL_GPIO_TogglePin(GPIO_RELAY_PORT, _BIT(GPIO_RELAY_PIN_NUM))
|
|
|
|
|
|
void Gpio_Sensor_PWR_Initialization(void);
|
|
void Gpio_Relay_Initialization(void);
|
|
|
|
|
|
#endif
|