1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Added CAMERA_CONTROL_PIN for target-specific configuration

This commit is contained in:
Andrey Mironov 2017-07-27 16:42:25 +03:00
parent c5ed9d5669
commit 9556d1c84d

View file

@ -52,6 +52,10 @@
#define CAMERA_CONTROL_HARDWARE_PWM_AVAILABLE
#include "timer.h"
#ifndef CAMERA_CONTROL_PIN
#define CAMERA_CONTROL_PIN NONE
#endif
PG_REGISTER_WITH_RESET_TEMPLATE(cameraControlConfig_t, cameraControlConfig, PG_CAMERA_CONTROL_CONFIG, 0);
@ -59,7 +63,7 @@ PG_RESET_TEMPLATE(cameraControlConfig_t, cameraControlConfig,
.mode = CAMERA_CONTROL_MODE_HARDWARE_PWM,
.refVoltage = 330,
.keyDelayMs = 150,
.ioTag = IO_TAG_NONE
.ioTag = IO_TAG(CAMERA_CONTROL_PIN)
);
static struct {