Time problem

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderator: tfAteba

utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Has thanked: 1 time
Been thanked: 20 times

Re: Time problem

Post by utzig »

General RTOS questions not related directly to ChibiOS can be easily found online. A good answer to your question can be found here:

http://stackoverflow.com/questions/2410 ... use-of-thi

Regarding the question about function declaration, I think both will do the same for ChibiOS but the second one (static THD_FUNCTION(Thread1, arg)) is prefered now because it's compatible with NIL. At least that's what I remember from head...
RTOSman
Posts: 29
Joined: Mon Feb 01, 2016 6:11 pm

Re: Time problem

Post by RTOSman »

Ok, haha i have a lot of questions

i have other question
1 thread fun() {
while(true){
2 my_function()
3
4 chThdSleepMilliseconds(10);
5}
}

i want to know how to determine the exectution time of my_function. it hase a relation with system tick ? or the speed of Micro controler ??. and the global time is it equal of time of my_function()+ 10 MS ??
Me i want a deadline of 10Ms even there is a big function in my thread or not. i want the interval of my friend works at 10 MS.
how do i do that please
Post Reply