diff options
author | siddhu8990 | 2016-06-06 09:18:33 +0530 |
---|---|---|
committer | siddhu8990 | 2016-06-06 09:18:33 +0530 |
commit | f08e63e652a564b3f805b69c05948e497c7b28f6 (patch) | |
tree | d8f4bcc4dc02c668ec38745eaf867dd365fd9992 /2.3-1/src/c/hardware/rasberrypi/util | |
parent | 49003250e69e4e500742614888e47db789bbe451 (diff) | |
download | Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.gz Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.bz2 Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.zip |
File handling functions added
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/util')
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c | 51 | ||||
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c | 51 |
2 files changed, 60 insertions, 42 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c index e564d882..f29635be 100644 --- a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c +++ b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c @@ -1,24 +1,33 @@ -// Function to insert some delay in code execution. -// -// Calling Sequence -// u16RPIDelayMicros(time) -// -// Parameters -// time: time(microseconds) for which execution is to be delayed -// -// Description -// this function can be used for insertig execution delays. 'time' should be -// specified in microseconds.'time' should be between (1-65536). -// Note: Delay inserted by this function is not accurate, but depedent on -// operating system, other running tasks etc. -// -// Examples -// u16RPIDelayMicros(100) //This will delay the execution of next code by 100 ms. -// -// -// Authors -// Siddhesh Wani -// +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to insert some delay in code execution. + + Calling Sequence + u16RPIDelayMicros(time) + + Parameters + time: time(microseconds) for which execution is to be delayed + + Description + this function can be used for insertig execution delays. 'time' should be + specified in microseconds.'time' should be between (1-65536). + Note: Delay inserted by this function is not accurate, but depedent on + operating system, other running tasks etc. + + Examples + u16RPIDelayMicros(100) //This will delay the execution of next code by 100 ms. +*/ + #include "types.h" #include "RPIPeripheralUtil.h" diff --git a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c index bc2e6dd0..f03e8baa 100644 --- a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c +++ b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c @@ -1,24 +1,33 @@ -// Function to insert some delay in code execution. -// -// Calling Sequence -// u16RPIDelayMillis(time) -// -// Parameters -// time: time(milliseconds) for which execution is to be delayed -// -// Description -// this function can be used for insertig execution delays. 'time' should be -// specified in milliseconds.'time' should be between (1-65536). -// Note: Delay inserted by this function is not accurate, but depedent on -// operating system, other running tasks etc. -// -// Examples -// u16RPIDelayMillis(100) //This will delay the execution of next code by 100 ms. -// -// -// Authors -// Siddhesh Wani -// +/* Copyright (C) 2016 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Siddhesh Wani + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in +*/ + +/* Function to insert some delay in code execution. + + Calling Sequence + u16RPIDelayMillis(time) + + Parameters + time: time(milliseconds) for which execution is to be delayed + + Description + this function can be used for insertig execution delays. 'time' should be + specified in milliseconds.'time' should be between (1-65536). + Note: Delay inserted by this function is not accurate, but depedent on + operating system, other running tasks etc. + + Examples + u16RPIDelayMillis(100) //This will delay the execution of next code by 100 ms. +*/ + #include "types.h" #include "RPIPeripheralUtil.h" |