diff options
author | Brijeshcr | 2017-07-06 15:24:41 +0530 |
---|---|---|
committer | GitHub | 2017-07-06 15:24:41 +0530 |
commit | a7eeecce4c7c39ea52a2d434815c574a2c42730d (patch) | |
tree | 9968264546fd54f9eaa6ad80ee7db47e366f8601 /2.3-1/src/c/hardware/rasberrypi/includes | |
parent | 3308ea7a973e2c1e1c8bea99ac7cc783ce8e8b06 (diff) | |
parent | 115efeb443a7e6da44f628537811b69a01553ab2 (diff) | |
download | Scilab2C-a7eeecce4c7c39ea52a2d434815c574a2c42730d.tar.gz Scilab2C-a7eeecce4c7c39ea52a2d434815c574a2c42730d.tar.bz2 Scilab2C-a7eeecce4c7c39ea52a2d434815c574a2c42730d.zip |
Merge pull request #3 from sandeepgupta007/master
LinearAlgebra Function Added
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/includes')
17 files changed, 60 insertions, 426 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h index 22d470a2..2f40ffb2 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2017 - IIT Bombay - FOSSEE +/* 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 @@ -19,12 +19,15 @@ extern "C" { #endif + #include "types.h" +#include "wiringPi.h" + +extern int phy_pin[]; -uint8 u8RPI_digitalReads(uint8 pin); -uint8 RPI_digitalReadByte(); -void u8RPI_digitalWrites(uint8 pin, uint8 state); -void u8RPI_digitalWriteBytes(uint8 value); +void u8RPIDigitalSetups(uint8 pin, uint8 direction); +void u8RPIDigitalOuts(uint8 pin, uint8 state); +uint8 u8RPIDigitalIns(uint8 pin); #ifdef __cplusplus } /* extern "C" */ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h deleted file mode 100644 index 3594d0a1..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralGertboard.h +++ /dev/null @@ -1,32 +0,0 @@ -/* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#ifndef __RPIPERIPHERALGERTBOARD_H__ -#define __RPIPERIPHERALGERTBOARD_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "gertboard.h" - -int8 RPI_gertboardSPISetup(); -uint16 u16RPI_gertboardAnalogReads(uint16 pin); -int8 u16RPI_gertboardAnalogSetups(uint16 pinBase); -void u16RPI_gertboardAnalogWrites(uint16 pin,uint16 value); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALGERTBOARD_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h deleted file mode 100644 index 6c8dfe14..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralI2C.h +++ /dev/null @@ -1,37 +0,0 @@ -/* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* This file declares functions and constants related to rasberrypi*/ - -#ifndef __RPIPERIPHERALI2C_H__ -#define __RPIPERIPHERALI2C_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "wiringPiI2C.h" - -int8 u16RPI_I2CSetups(uint8 arrd); -int8 u16RPI_I2CReads(uint16 fd); -int8 u16RPI_I2CReadReg8s(uint16 fd,uint16 reg); -int8 u16RPI_I2CReadReg16s(uint16 fd,uint16 reg); -int8 u16RPI_I2CWrites(uint16 fd,uint16 data); -int8 u16RPI_I2CWriteReg8s(uint16 fd,uint16 reg,uint16 data); -int8 u16RPI_I2CWriteReg16s(uint16 fd,uint16 reg,uint16 data); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALI2C_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h deleted file mode 100644 index 654a31a3..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD.h +++ /dev/null @@ -1,39 +0,0 @@ - /* 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 - */ -#ifndef __RPIPERIPHERALLCD_H__ -#define __RPIPERIPHERALLCD_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "lcd.h" - -void u8RPI_lcdCharDefs(uint8 fd,uint8 index,uint8 d0,uint8 d1,uint8 d2,uint8 d3, uint8 d4,uint8 d5,uint8 d6,uint8 d7); -void u8RPI_lcdClears(uint8 fd); -void u8RPI_lcdCursorBlinks(uint8 fd,uint8 state); -void u8RPI_lcdCursors(uint8 fd,uint8 state); -void u8RPI_lcdDisplays(uint8 fd,uint8 state); -void u8RPI_lcdHomes(uint8 fd); -int8 u8RPI_lcdInits(uint8 rows,uint8 cols,uint8 bits,uint8 rs,uint8 strb,uint8 d0,uint8 d1,uint8 d2,uint8 d3,uint8 d4,uint8 d5,uint8 d6,uint8 d7); -void u8RPI_lcdPositions(uint8 fd,uint8 row,uint8 col); -void u8RPI_lcdPutchars(uint8 fd,uint8 character); -void u8RPI_lcdSendCommands(uint8 fd,uint8 cmd); -void u8RPI_lcdPutss(uint8 fd,char* msg,int size); -void u8RPI_lcdPrintfs(uint8 fd,char* data,int size); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALLCD_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h deleted file mode 100644 index d541c9fd..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h +++ /dev/null @@ -1,43 +0,0 @@ - /* 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 - */ -#ifndef __RPIPERIPHERALLCD128x64_H__ -#define __RPIPERIPHERALLCD128x64_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "lcd128x64.h" - -int8 RPI_lcd128x64setup(void); -void u8RPI_lcd128x64clears(uint8 colour); -void u8RPI_lcd128x64Orientations(uint8 orientation); -void u8RPI_lcd128x64setOrigins(uint8 x, uint8 y); -void u8RPI_lcd128x64points(uint8 x, uint8 y, uint8 colour); -void u8RPI_lcd128x64lineTos(uint8 x, uint8 y, uint8 colour); -void u8RPI_lcd128x64lines(uint8 x0, uint8 y0, uint8 x1, uint8 y1, uint8 colour); -void u8RPI_lcd128x64circles(uint8 x, uint8 y, uint8 r, uint8 colour, uint8 filled); -void u8RPI_lcd128x64putchars(uint8 x, uint8 y, uint8 c, uint8 bgCol, uint8 fgCol); -void u8RPI_lcd128x64putss(uint8 x, uint8 y, char *str,int size, uint8 bgCol, uint8 fgCol); -void u8RPI_lcd128x64rectangles(uint8 x1, uint8 y1, uint8 x2, uint8 y2, uint8 colour, uint8 filled); -void u8RPI_lcd128x64ellipses(uint8 cx, uint8 cy, uint8 xRadius, uint8 yRadius, uint8 colour, uint8 filled); - -//void u8RPI_lcd128x64orientCoordinatess(uint8 *x, uint8 *y); -//void u8RPI_lcd128x64getScreenSizes(uint8 *x, uint8 *y); -//void RPI_lcd128x64update(void); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALLCD128x64_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h deleted file mode 100644 index 5304f14b..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMcp.h +++ /dev/null @@ -1,36 +0,0 @@ - /* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALMCP_H__ -#define __RPIPERIPHERALMCP_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "mcp23016.h" -#include "mcp23017.h" -#include "mcp23008.h" -#include "mcp23s17.h" -#include "mcp23s08.h" - -uint8 u16RPI_mcp23008Setups(uint16 pinBase,uint8 addr); -uint8 u16RPI_mcp23016Setups(uint16 pinBase,uint8 addr); -uint8 u16RPI_mcp23017Setups(uint16 pinBase,uint8 addr); -uint8 u16RPI_mcp23s08Setups(uint16 pinBase,uint8 spiport,uint8 devId); -uint8 u16RPI_mcp23s17Setups(uint16 pinBase,uint8 spiport,uint8 devId); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALMCP_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h deleted file mode 100644 index 0ef5acc1..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralMisc.h +++ /dev/null @@ -1,31 +0,0 @@ -/* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#ifndef __RPIPERIPHERALMISC_H__ -#define __RPIPERIPHERALMISC_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "sn3218.h" - -uint8 RPI_boardRev(); -void u8RPI_padDrives(uint8 group,uint8 strength); -int8 u16RPI_sn3218Setups(uint16 pinBase); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALMISC_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h index f1d3024e..d463d9c9 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPWM.h @@ -5,24 +5,24 @@ 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, Jorawar Singh + 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 -#include "types.h" - -void u8RPI_pwmWrites(uint8 pin,uint16 value); -void u32RPI_pwmRanges(uint32 value); -void gRPI_pwmModea(char* mode,int size); -void u16RPI_pwmClocks(uint16 divisor); -void u8RPI_pwmToneWrites(uint8 pin,uint16 value); +void u8RPIHardPWMWrites(uint8 pin, uint16 value); +void u8RPIHardPWMSetRanges(uint16 value); +void u8RPIHardPWMSetModes(uint8 mode); +void u8RPIHardPWMSetClocks(uint16 clk_divisor); #ifdef __cplusplus } /* extern "C" */ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h deleted file mode 100644 index 55459332..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPcf.h +++ /dev/null @@ -1,30 +0,0 @@ - /* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALPCF_H__ -#define __RPIPERIPHERALPCF_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "pcf8574.h" -#include "pcf8591.h" - -uint8 u16RPI_pcf8574Setups(uint16 pinBase,uint8 addr); -uint8 u16RPI_pcf8591Setups(uint16 pinBase,uint8 addr); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALPCF_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h deleted file mode 100644 index d2dcd13c..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPiGlow.h +++ /dev/null @@ -1,31 +0,0 @@ - /* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALPIGLOW_H__ -#define __RPIPERIPHERALPIGLOW_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "piGlow.h" - -void u8RPI_piGlowSetups(uint8 clear); -void u8RPI_piGlow1s(uint8 leg,uint8 ring,uint8 intensity); -void u8RPI_piGlowLegs(uint8 leg,uint8 intensity); -void u8RPI_piGlowRings(uint8 ring,uint8 intensity); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALPIGLOW_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h index d9fc30f3..fc5a8d04 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralInterrupt.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinISR.h @@ -5,23 +5,22 @@ 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, Jorawar Singh + Author: Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ -#ifndef __RPIPERIPHERALINTERRUPT_H__ -#define __RPIPERIPHERALINTERRUPT_H__ +#ifndef __RPIPERIPHERALPINISR_H__ +#define __RPIPERIPHERALPINISR_H__ + #ifdef __cplusplus extern "C" { #endif -#include "types.h" - -int8 u8RPI_waitForInterrupts(uint8 pin,int16 time); +int16 i16RPIPinISRs(uint8 pin, uint8 edgetype, void (*ISRFunction)(void)); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /*__RPIPERIPHERALINTERRUPT_H__*/ +#endif /*__RPIPERIPHERALPINISR_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h index 67284bd0..14df95b4 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h @@ -5,28 +5,42 @@ 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, Jorawar Singh + Author: Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ #ifndef __RPIPERIPHERALSERIAL_H__ #define __RPIPERIPHERALSERIAL_H__ +#include "types.h" +#include "wiringSerial.h" + #ifdef __cplusplus extern "C" { #endif -#include "types.h" -#include "wiringSerial.h" +int u8RPISerialSetups(char* port, int baudrate); +void u8RPISerialCloses(int fd); + +void u8RPISerialSendChars(int fd, uint8 data); +void u8RPISerialSendDatas(int fd, uint8 data); +void i8RPISerialSendDatas(int fd, int8 data); +void u16RPISerialSendDatas(int fd, uint16 data); +void i16RPISerialSendDatas(int fd, int16 data); +void sRPISerialSendDatas(int fd, float data); +void dRPISerialSendDatas(int fd, double data); +void u8RPISerialSendDataa(int fd, uint8* data, int size); +void i8RPISerialSendDataa(int fd, int8* data, int size); +void u16RPISerialSendDataa(int fd, uint16* data, int size); +void i16RPISerialSendDataa(int fd, int16* data, int size); +void sRPISerialSendDataa(int fd, float* data, int size); +void dRPISerialSendDataa(int fd, double* data, int size); +void gRPISerialSendDatas(int fd, uint8* data, int size); + +int16 i16RPISerialDataAvails(int fd); +int16 i16RPISerialGetChars(int fd); -int8 gRPI_serialOpena(char* device,int size,uint32 baud); -void u8RPI_serialCloses(uint8 fd); -uint8 u8RPI_serialDataAvails(uint8 fd); -void u8RPI_serialFlushs(uint8 fd); -void u8RPI_serialGetchars(uint8 fd,char* out); -void u8RPI_serialPrintfs(uint8 fd,char* msg,int size); -void u8RPI_serialPutchars(uint8 fd,uint8 character); -void u8RPI_serialPutss(uint8 fd,char* character,int size); +void u8RPISerialFlushs(int fd); #ifdef __cplusplus } /* extern "C" */ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h deleted file mode 100644 index 373f0648..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSetup.h +++ /dev/null @@ -1,35 +0,0 @@ -/* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* This file declares functions and constants related to Setup*/ - -#ifndef __RPIPERIPHERALSETUP_H__ -#define __RPIPERIPHERALSETUP_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "wiringPi.h" - -int8 gRPI_pinNumberinga(char* seq,int size); -uint8 u8RPI_getAlts(uint8 pin); -void u8RPI_pinModeAlts(uint8 pin,uint8 mode); -void u8RPI_pinModes(uint8 pin,char* mode,int size); -void u8RPI_pullControls(uint8 pin,char* mode,int size); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALSETUP_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h deleted file mode 100644 index 4c58bb77..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralShift.h +++ /dev/null @@ -1,31 +0,0 @@ - /* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __RPIPERIPHERALSHIFT_H__ -#define __RPIPERIPHERALSHIFT_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "wiringShift.h" -#include "sr595.h" - -uint8 u8RPI_shiftIns(uint8 dpin,uint8 cpin,uint8 order); -void u8RPI_shiftOuts(uint8 dpin,uint8 cpin,uint8 order,uint8 val); -int8 u16RPI_sr595Setups(uint16 pinBase,uint8 nPins,uint8 dP,uint8 cP,uint8 lP); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALSHIFT_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h deleted file mode 100644 index 9494506e..00000000 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralSoft.h +++ /dev/null @@ -1,37 +0,0 @@ -/* 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* This file declares functions and constants related to Setup*/ - -#ifndef __RPIPERIPHERALSOFT_H__ -#define __RPIPERIPHERALSOFT_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include "types.h" -#include "softPwm.h" -#include "softTone.h" - -uint8 u8RPI_softPwmCreates(uint8 pin,uint16 ival,uint16 range); -void u8RPI_softPwmStops(uint8 pin); -void u8RPI_softPwmWrites(uint8 pin,uint16 value); -uint8 u8RPI_softToneCreates(uint8 pin); -void u8RPI_softToneStops(uint8 pin); -void u8RPI_softToneWrites(uint8 pin,uint32 value); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__RPIPERIPHERALSOFT_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h index 39c2379d..a7b2adb4 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralPinMap.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralThreading.h @@ -5,24 +5,24 @@ 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, Jorawar Singh + Author: Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ -#ifndef __RPIPERIPHERALPINMAP_H__ -#define __RPIPERIPHERALPINMAP_H__ +#ifndef __RPIPERIPHERALTHREADING_H__ +#define __RPIPERIPHERALTHREADING_H__ + +#include "types.h" +#include "wiringPi.h" #ifdef __cplusplus extern "C" { #endif -#include "types.h" - -int8 u8RPI_physToGpios(uint8 pin); -int8 u8RPI_wpiToGpios(uint8 pin); +uint16 RPIThreadCreate(void *(*threadFunction)(void*)); #ifdef __cplusplus } /* extern "C" */ #endif -#endif /*__RPIPERIPHERALPINMAP_H__*/ +#endif /*__RPIPERIPHERALTHREADING_H__*/ diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h index e75a5394..854073f3 100644 --- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralTiming.h @@ -5,7 +5,7 @@ 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, Jorawar Singh + Author: Siddhesh Wani Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ @@ -22,10 +22,10 @@ extern "C" { #include "types.h" #include "wiringPi.h" -void u32RPI_delays(uint32 time); -void u32RPI_delayMicros(uint32 time); -uint32 RPI_millis(); -uint32 RPI_micros(); +void u16RPIDelayMillis(uint16 time); +void u16RPIDelayMicros(uint16 time); +uint32 u32RPIGetMillis(); +uint32 u32RPIGetMicros(); #ifdef __cplusplus } /* extern "C" */ |