summaryrefslogtreecommitdiff
path: root/src/c/hardware/rasberrypi/Misc
diff options
context:
space:
mode:
authorBrijeshcr2017-07-06 15:48:47 +0530
committerGitHub2017-07-06 15:48:47 +0530
commitea958d3c401761dcc24865d9639b2fab31038db8 (patch)
tree8cea93113a46d7015d1a10638778f92275a0ca94 /src/c/hardware/rasberrypi/Misc
parentcb1d99232e521c34e9f0c271a6c4176cc7b9cbe4 (diff)
downloadScilab2C_fossee_old-ea958d3c401761dcc24865d9639b2fab31038db8.tar.gz
Scilab2C_fossee_old-ea958d3c401761dcc24865d9639b2fab31038db8.tar.bz2
Scilab2C_fossee_old-ea958d3c401761dcc24865d9639b2fab31038db8.zip
Revert "LinearAlgebra Function Added"
Diffstat (limited to 'src/c/hardware/rasberrypi/Misc')
-rw-r--r--src/c/hardware/rasberrypi/Misc/RPI_boardRev.c19
-rw-r--r--src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c19
-rw-r--r--src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c17
3 files changed, 55 insertions, 0 deletions
diff --git a/src/c/hardware/rasberrypi/Misc/RPI_boardRev.c b/src/c/hardware/rasberrypi/Misc/RPI_boardRev.c
new file mode 100644
index 0000000..c8ecf70
--- /dev/null
+++ b/src/c/hardware/rasberrypi/Misc/RPI_boardRev.c
@@ -0,0 +1,19 @@
+/* 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: Jorawar Singh, Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#include "RPIPeripheralMisc.h"
+
+uint8 RPI_boardRev(){
+ uint8 out;
+ out=piBoardRev();
+ return out;
+}
diff --git a/src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c b/src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c
new file mode 100644
index 0000000..ab22990
--- /dev/null
+++ b/src/c/hardware/rasberrypi/Misc/u16RPI_sn3218Setups.c
@@ -0,0 +1,19 @@
+/* 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: Jorawar Singh, Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#include "RPIPeripheralMisc.h"
+
+int8 u16RPI_sn3218Setups(uint16 pinBase){
+ int8 out;
+ out=sn3218Setup(pinBase);
+ return (out);
+}
diff --git a/src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c b/src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c
new file mode 100644
index 0000000..ce13e08
--- /dev/null
+++ b/src/c/hardware/rasberrypi/Misc/u8RPI_padDrives.c
@@ -0,0 +1,17 @@
+/* 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: Jorawar Singh, Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#include "RPIPeripheralMisc.h"
+
+void u8RPI_padDrives(uint8 group,uint8 strength){
+ setPadDrive(group,strength);
+}