diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-22 15:35:25 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-22 15:35:25 +0100 |
commit | da188548a3c6f3591df597d4b5bc2b21b13256f2 (patch) | |
tree | 4086c84c6c96d49c4042e6fd6d0a631326775a5b /src/modules/px4iofirmware | |
parent | 604c09dfb063f97f74d876c8827159109725e433 (diff) | |
download | px4-firmware-da188548a3c6f3591df597d4b5bc2b21b13256f2.tar.gz px4-firmware-da188548a3c6f3591df597d4b5bc2b21b13256f2.tar.bz2 px4-firmware-da188548a3c6f3591df597d4b5bc2b21b13256f2.zip |
Allow to enable safelink via features register
Diffstat (limited to 'src/modules/px4iofirmware')
-rw-r--r-- | src/modules/px4iofirmware/registers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/registers.c b/src/modules/px4iofirmware/registers.c index 6c183bbf9..19fae3dc2 100644 --- a/src/modules/px4iofirmware/registers.c +++ b/src/modules/px4iofirmware/registers.c @@ -185,7 +185,9 @@ volatile uint16_t r_page_setup[] = #define PX4IO_P_SETUP_FEATURES_VALID (PX4IO_P_SETUP_FEATURES_SBUS1_OUT | \ PX4IO_P_SETUP_FEATURES_SBUS2_OUT | \ PX4IO_P_SETUP_FEATURES_ADC_RSSI | \ - PX4IO_P_SETUP_FEATURES_PWM_RSSI) + PX4IO_P_SETUP_FEATURES_PWM_RSSI | \ + PX4IO_P_SETUP_FEATURES_SAFELINK_IN | \ + PX4IO_P_SETUP_FEATURES_SAFELINK_OUT) #else #define PX4IO_P_SETUP_FEATURES_VALID 0 #endif @@ -492,6 +494,8 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value) PX4IO_P_SETUP_FEATURES_SBUS2_OUT); } + // XXX handle safelink enabling / disabling here. + /* apply changes */ r_setup_features = value; |