|
|
@ -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(); |
|
|
|
|
|
|
|
|
|
|
|