mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
IO: Initialize PWM pins first
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user