diff options
author | siddhu8990 | 2017-04-13 10:42:02 +0530 |
---|---|---|
committer | siddhu8990 | 2017-04-13 10:42:02 +0530 |
commit | aceeb1fe05a8ff6c126ea9ba166a19249488dbd1 (patch) | |
tree | 705b22f253408d29d073284477221a8af64dda3a /src/c/hardware/rasberrypi | |
parent | e7dba33a909e158dffc6ddb3361df10d427db631 (diff) | |
download | Scilab2C_fossee_old-aceeb1fe05a8ff6c126ea9ba166a19249488dbd1.tar.gz Scilab2C_fossee_old-aceeb1fe05a8ff6c126ea9ba166a19249488dbd1.tar.bz2 Scilab2C_fossee_old-aceeb1fe05a8ff6c126ea9ba166a19249488dbd1.zip |
Functions added - balance,rcond,obscont
Diffstat (limited to 'src/c/hardware/rasberrypi')
-rw-r--r-- | src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c | 7 | ||||
-rw-r--r-- | src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h | 4 | ||||
-rw-r--r-- | src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c (renamed from src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c) | 0 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c index fa86025..f5fefe0 100644 --- a/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c +++ b/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c @@ -21,9 +21,10 @@ /*This array maps pin numbers on RPi board, with pin numbers corrsponding to WiringPi library*/ -int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/ - 0, 1, 2, 17, 3, 4, 17, 5, 12, 17, /*Pin 11 to 20*/ - 13, 6, 14, 10, 17, 11 }; /*Pin 21 to 26*/ +int phy_pin[] = {17, 17, 8, 17, 9, 17, 7, 15, 17, 16, /*Pin 1 to 10*/ + 0, 1, 2, 17, 3, 4, 17, 5, 12, 17, /*Pin 11 to 20*/ + 13, 6, 14, 10, 17, 11, 30, 31, 21, 17, /*Pin 21 to 30*/ + 22, 26, 23, 17, 24, 27, 25, 28, 17, 29 }; /*Pin 31 to 40*/ /*pin is reduced by one as arrayiindex starts from 0 and pin no starts from 1*/ void u8RPIDigitalSetups(uint8 pin, uint8 direction) diff --git a/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h b/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h index 76a229e..14df95b 100644 --- a/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h +++ b/src/c/hardware/rasberrypi/includes/RPIPeripheralSerial.h @@ -29,13 +29,13 @@ 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, void* data, int size); +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, void* data, int size); +void gRPISerialSendDatas(int fd, uint8* data, int size); int16 i16RPISerialDataAvails(int fd); int16 i16RPISerialGetChars(int fd); diff --git a/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c b/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c index cde4cba..cde4cba 100644 --- a/src/c/hardware/rasberrypi/serial/u8RPISerialSetups.c +++ b/src/c/hardware/rasberrypi/serial/u16RPISerialSetups.c |