Charles,
As far as I can tell the problem is limited to rtapi_app_main and pru_init. In looking at the code, in pru_init, it almost looks like you intended to take the rtapi_print calls out after it was working, as they are not indented like the rest of the code.
If I were to fix them, I would just find “rtapi_print(" and
replace with "rtapi_print_msg(RTAPI_MSG_ERR, “ as below (just not preserving the commented lines):
// rtapi_print("num_pwmgens : %d\n",num_pwmgens);
rtapi_print_msg(RTAPI_MSG_ERR, "num_pwmgens : %d\n",num_pwmgens);
// rtapi_print("num_stepgens: %d\n",num_stepgens);
rtapi_print_msg(RTAPI_MSG_ERR, "num_stepgens: %d\n",num_stepgens);
// rtapi_print("num_encoders: %d\n",num_encoders);
rtapi_print_msg(RTAPI_MSG_ERR, "num_encoders: %d\n",num_encoders);
// rtapi_print("Init pwm\n");
rtapi_print_msg(RTAPI_MSG_ERR, "Init pwm\n");
If that is acceptable let me know and I will do it and submit a pull request.
Alan