Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 09:26:44 09:26


Login with username, password and session length


Pages: [1]
Print
Author Topic: QuarkTS Non-Preemptive Task Scheduler  (Read 7509 times)
0 Members and 1 Guest are viewing this topic.
kmilo17pet
Newbie
*
Offline Offline

Posts: 22

Thank You
-Given: 3
-Receive: 53


« on: October 27, 2016, 07:11:22 19:11 »

https://github.com/kmilo17pet/QuarkTS/wiki/QuarkTS
Logged

Pour le cialis Г  utiliser une fois par jour chez les hommes atteints d'HBP, les patients atteints de dysfonction Г©rectile ainsi que des effets secondaires similaires.
bigtoy
Active Member
***
Offline Offline

Posts: 238

Thank You
-Given: 337
-Receive: 297


« Reply #1 on: October 29, 2016, 04:40:38 04:40 »

I have a question. On your webpage you show the following example code:

Quote
#include "QuarkTS.h"
#include "MyAppTasks.h"

void interrupt OnTimerInterrupt(){ //hardware specific code
    qISRHandler(); //
}

void main(void){
    HardwareSetup();  //hardware specific code
    Configure_Periodic_Timer_Interrupt_10ms(); // hardware specific code
    qSetup(0.01, IdleTask_Callback, 10);
    qCreateTask(HardwareCheckTask, HardwareCheckTask_Callback, 120, 0.25, PERIODIC, ENABLE, NULL);
    qCreateTask(SignalAnalisysTask, SignalAnalisysTask_Callback, HIGH_Priority, 0.1, 200, ENABLE, NULL);
    qCreateEventTask(CheckUserEventsTask, CheckUserEventsTask_Callback, MEDIUM_Priority, NULL);
    qCreateTask(CommunicationTask, CommunicationTask_Callback, HIGH_Priority, TIME_INMEDIATE, PERIODIC, ENABLE, NULL);
    qSchedule();
    for(; ; ){}
}

Shouldn't the qSchedule() call be inside the for() loop at the end?
Logged
kmilo17pet
Newbie
*
Offline Offline

Posts: 22

Thank You
-Given: 3
-Receive: 53


« Reply #2 on: October 31, 2016, 05:28:01 17:28 »

Is not required, the subroutine is responsible for maintaining the task scheduleling with an infinite loop.
if you require to run code without any control indefinitly, you can use the "IDLE" task.
Let me know if need more help.
Logged

Pour le cialis Г  utiliser une fois par jour chez les hommes atteints d'HBP, les patients atteints de dysfonction Г©rectile ainsi que des effets secondaires similaires.
kmilo17pet
Newbie
*
Offline Offline

Posts: 22

Thank You
-Given: 3
-Receive: 53


« Reply #3 on: April 29, 2023, 08:24:01 20:24 »

Port for C++
https://github.com/kmilo17pet/QuarkTS-cpp
Logged

Pour le cialis Г  utiliser une fois par jour chez les hommes atteints d'HBP, les patients atteints de dysfonction Г©rectile ainsi que des effets secondaires similaires.
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC