newPtz/drivers/photoelectric.c

20 lines
580 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// #include "photoelectric.h"
// /// 初始化所有光电开关
// /// @param 无
// /// @return 无
// /// @par 修改日志
// /// 杨鹏程于2017-09-14创建
// /// LH修改于2022-05-31
// void ps_init()
// {
// //配置引脚时钟
// rcu_periph_clock_enable(RCU_GPIOE);
// //设置引脚为输入模式:PE7-J3PE8-J4PE9-J5
// gpio_mode_set(GPIOE, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_7);
// gpio_mode_set(GPIOE, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_8);
// gpio_mode_set(GPIOE, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_9);
// }