comparison include/BeagleRT.h @ 259:abd3657016ea prerelease

merged new aux tasks
author Liam Donovan <l.b.donovan@qmul.ac.uk>
date Mon, 16 May 2016 12:16:59 +0100
parents 88cf310417cd
children c55c6f6c233c
comparison
equal deleted inserted replaced
253:33e0e4831763 259:abd3657016ea
577 * 577 *
578 * \param functionToCall Function which will run each time the auxiliary task is scheduled. 578 * \param functionToCall Function which will run each time the auxiliary task is scheduled.
579 * \param priority Xenomai priority level at which the task should run. 579 * \param priority Xenomai priority level at which the task should run.
580 * \param name Name for this task, which should be unique system-wide (no other running program should use this name). 580 * \param name Name for this task, which should be unique system-wide (no other running program should use this name).
581 */ 581 */
582 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name); 582 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void*), int priority, const char *name, void* args, bool autoSchedule = false);
583 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name, bool autoSchedule = false);
583 584
584 /** 585 /**
585 * \brief Start an auxiliary task so that it can be run. 586 * \brief Start an auxiliary task so that it can be run.
586 * 587 *
587 * This function will start an auxiliary task but will NOT schedule it. 588 * This function will start an auxiliary task but will NOT schedule it.
606 * will not run immediately, but only once any active higher priority tasks have finished. 607 * will not run immediately, but only once any active higher priority tasks have finished.
607 * 608 *
608 * \param task Task to schedule for running. 609 * \param task Task to schedule for running.
609 */ 610 */
610 void BeagleRT_scheduleAuxiliaryTask(AuxiliaryTask task); 611 void BeagleRT_scheduleAuxiliaryTask(AuxiliaryTask task);
612 void BeagleRT_autoScheduleAuxiliaryTasks();
611 613
612 /** @} */ 614 /** @} */
613 #include <Utilities.h> 615 #include <Utilities.h>
614 616
615 #endif /* BEAGLERT_H_ */ 617 #endif /* BEAGLERT_H_ */