summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/rasberrypi/includes
diff options
context:
space:
mode:
authorsiddhu89902016-08-18 15:47:18 +0530
committersiddhu89902016-08-18 15:47:18 +0530
commit1552675d4ac3be8d265bcf089fbc1ac5be1547f9 (patch)
tree4162a70fa63681584c6d5485b08b516e64015569 /2.3-1/src/c/hardware/rasberrypi/includes
parent21ab4886b202a52189b398bd9d3137e2a567d62a (diff)
downloadScilab2C-1552675d4ac3be8d265bcf089fbc1ac5be1547f9.tar.gz
Scilab2C-1552675d4ac3be8d265bcf089fbc1ac5be1547f9.tar.bz2
Scilab2C-1552675d4ac3be8d265bcf089fbc1ac5be1547f9.zip
RPi-PWM and basic imaage processing
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/includes')
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h31
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h2
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h2
3 files changed, 33 insertions, 2 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
new file mode 100644
index 00000000..47634d05
--- /dev/null
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h
@@ -0,0 +1,31 @@
+ /* 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
+ */
+#ifndef __RPIPERIPHERALPWM_H__
+#define __RPIPERIPHERALPWM_H__
+
+#include "types.h"
+#include "wiringPi.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+uint8 u8RPIHardPWMWrites(uint8 pin, uint16 value);
+uint8 u8RPIHardPWMSetRanges(uint16 value);
+uint8 u8RPIHardPWMSetModes(uint8 mode);
+uint8 u8RPIHardPWMSetClocks(uint16 clk_divisor);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__RPIPERIPHERALPWM_H__*/
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h
index de05f908..fc5a8d04 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h
@@ -17,7 +17,7 @@
extern "C" {
#endif
-int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction));
+int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction)(void));
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h
index 4c5d3a55..23045677 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h
@@ -19,7 +19,7 @@
extern "C" {
#endif
-uint16 RPIThreadCreate(void (*threadFunction));
+uint16 RPIThreadCreate(void *(*threadFunction)(void));
#ifdef __cplusplus
} /* extern "C" */