Mercurial > hg > beaglert
comparison examples/d-box/main.cpp @ 303:421a69d42943 prerelease
Changed BeagleRT -> Bela in defines and thread names; some preliminary mux capelet stuff
author | andrewm |
---|---|
date | Fri, 27 May 2016 17:40:44 +0100 |
parents | e4392164b458 |
children | 24c3a0663d54 |
comparison
equal
deleted
inserted
replaced
302:b26e7c61e3b6 | 303:421a69d42943 |
---|---|
415 | 415 |
416 if(forceSensors && !useAudioTest) { | 416 if(forceSensors && !useAudioTest) { |
417 if(gVerbose==1) | 417 if(gVerbose==1) |
418 cout << "main() : creating control thread" << endl; | 418 cout << "main() : creating control thread" << endl; |
419 | 419 |
420 if(rt_task_create(&rtSensorThread, rtSensorThreadName, 0, BEAGLERT_AUDIO_PRIORITY - 5, T_JOINABLE | T_FPU)) { | 420 if(rt_task_create(&rtSensorThread, rtSensorThreadName, 0, BELA_AUDIO_PRIORITY - 5, T_JOINABLE | T_FPU)) { |
421 cout << "Error:unable to create Xenomai control thread" << endl; | 421 cout << "Error:unable to create Xenomai control thread" << endl; |
422 return -1; | 422 return -1; |
423 } | 423 } |
424 if(rt_task_start(&rtSensorThread, &sensorLoop, 0)) { | 424 if(rt_task_start(&rtSensorThread, &sensorLoop, 0)) { |
425 cout << "Error:unable to start Xenomai control thread" << endl; | 425 cout << "Error:unable to start Xenomai control thread" << endl; |