summaryrefslogtreecommitdiff
path: root/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
diff options
context:
space:
mode:
authorJorawar Singh2017-06-30 11:28:58 +0530
committerJorawar Singh2017-06-30 11:28:58 +0530
commitaef4e8398f2b1848b0e4cdd9580dbbe93e4006f9 (patch)
treebe1db2f0453859eca8b4ae6e18c90baae68cc2bc /src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
parentb33afdb2311fbe8aad4c5c614c6098585fe2d279 (diff)
downloadScilab2C_fossee_old-aef4e8398f2b1848b0e4cdd9580dbbe93e4006f9.tar.gz
Scilab2C_fossee_old-aef4e8398f2b1848b0e4cdd9580dbbe93e4006f9.tar.bz2
Scilab2C_fossee_old-aef4e8398f2b1848b0e4cdd9580dbbe93e4006f9.zip
Help files, modified Raspberry Pi code conversion
Diffstat (limited to 'src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h')
-rw-r--r--src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
index 1a70465..5c4e618 100644
--- a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
+++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralTiming.h
@@ -5,12 +5,11 @@
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
+ Author: Jorawar Singh, Siddhesh Wani
Organization: FOSSEE, IIT Bombay
Email: toolbox@scilab.in
*/
-
#ifndef __INT_RPIPERIPHERALTIMING_H__
#define __INT_RPIPERIPHERALTIMING_H__
@@ -21,14 +20,13 @@
extern "C" {
#endif
-#define RPI_DelayMicro(in1) u16RPIDelayMicros((uint16) in1)
-#define RPI_DelayMilli(in1) u16RPIDelayMillis((uint16) in1)
-#define RPI_GetMicro() u32RPIGetMicros()
-#define RPI_GetMillis() u32RPIGetMillis()
-
+#define u320RPI_delay(time) u32RPI_delays(time);
+#define u320RPI_delayMicro(time) u32RPI_delayMicros(time);
+#define RPI_millisu320() RPI_millis();
+#define RPI_microsu320() RPI_micros();
#ifdef __cplusplus
} /* extern "C" */
#endif
-#endif /* !__RPIPERIPHERALTIMING_H__ */
+#endif /* !__INT_RPIPERIPHERALTIMING_H__ */