Browse Source

IO: Initialize PWM pins first

sbg
Lorenz Meier 9 years ago
parent
commit
c26b18c153
  1. 6
      src/modules/px4iofirmware/px4io.c

6
src/modules/px4iofirmware/px4io.c

@ -232,6 +232,9 @@ calculate_fw_crc(void) @@ -232,6 +232,9 @@ calculate_fw_crc(void)
int
user_start(int argc, char *argv[])
{
/* configure the first 8 PWM outputs (i.e. all of them) */
up_pwm_servo_init(0xff);
/* run C++ ctors before we go any further */
up_cxxinitialize();
@ -276,9 +279,6 @@ user_start(int argc, char *argv[]) @@ -276,9 +279,6 @@ user_start(int argc, char *argv[])
/* start the safety switch handler */
safety_init();
/* configure the first 8 PWM outputs (i.e. all of them) */
up_pwm_servo_init(0xff);
/* initialise the control inputs */
controls_init();

Loading…
Cancel
Save