MW22-02A/APP/Device/device_Other/device_relay.h

16 lines
379 B
C
Raw Normal View History

2025-05-21 01:55:40 +00:00
#ifndef __DEVICE_RELAY_H_
#define __DEVICE_RELAY_H_
#include "gd32f4xx_gpio.h"
#define PTZ_MOTOR_RELAY_ON gpio_bit_set(GPIOB,GPIO_PIN_9)
#define PTZ_MOTOR_RELAY_OFF gpio_bit_reset(GPIOB,GPIO_PIN_9)
#define PTZ_RELAY_ON 1 //<2F>̵<EFBFBD><CCB5><EFBFBD><EFBFBD><EFBFBD>
#define PTZ_RELAY_OFF 0 //<2F>̵<EFBFBD><CCB5><EFBFBD><EFBFBD><EFBFBD>
void init_relay_module();
void ptz_motor_relay_off();
void ptz_motor_relay_on();
#endif