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

Loading…
Cancel
Save