1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Spectrum bind code to be more geenic

Actualy only activated for the NAZE taget for USART2

#define SPEKTRUM_BIND
#define BIND_PORT  GPIOA
#define BIND_PIN   Pin_3

This is to activate the Hardware bind pug feature
#define HARDWARE_BIND_PLUG
#define BINDPLUG_PORT  GPIOB
#define BINDPLUG_PIN   Pin_5

can now be easyly added and configured for other tagets after testing.
This commit is contained in:
Michael Jakob 2014-12-01 14:10:28 +01:00 committed by Dominic Clifton
parent 3aaaa3f9f5
commit 1766857da6
3 changed files with 14 additions and 7 deletions

View file

@ -150,6 +150,7 @@ void init(void)
systemInit();
#ifdef SPEKTRUM_BIND
// Spektrum sattelite bind - ported from Baseflight
if (feature(FEATURE_RX_SERIAL)) {
switch (masterConfig.rxConfig.serialrx_provider) {
@ -162,6 +163,7 @@ void init(void)
break;
}
}
#endif
delay(100);