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:
parent
c5ed9d5669
commit
9556d1c84d
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue