IO: Initialize PWM pins first

This commit is contained in:
Lorenz Meier
2016-02-17 14:27:02 +01:00
parent 9c08872b61
commit c26b18c153

View File

@@ -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[])
/* 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();