diff options
author | siddhu8990 | 2016-02-01 11:05:35 +0530 |
---|---|---|
committer | siddhu8990 | 2016-02-01 11:05:35 +0530 |
commit | 5df6d1cb2868abdc8df66755f76c997ee36c0b49 (patch) | |
tree | 8f6eef9f83437133b0b8d7f16f3b5dd470872aee /src/c/hardware/rasberrypi/interfaces | |
parent | 1ff7f5293444b22b46ff7bd51d52a845dc20525c (diff) | |
download | Scilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.gz Scilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.tar.bz2 Scilab2C_fossee_old-5df6d1cb2868abdc8df66755f76c997ee36c0b49.zip |
Support for RPi gpios added
Diffstat (limited to 'src/c/hardware/rasberrypi/interfaces')
-rw-r--r-- | src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h | 27 | ||||
-rw-r--r-- | src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h | 23 |
2 files changed, 50 insertions, 0 deletions
diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h new file mode 100644 index 0000000..022bed5 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h @@ -0,0 +1,27 @@ +//This file defines constants corresponding to gpios. +// +// Authors +// Siddhesh Wani +// + +#ifndef __INT_RPIPERIPHERALGPIO_H__ +#define __INT_RPIPERIPHERALGPIO_H__ + +#include "types.h" +#include "RPIPeripheralDigital.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define RPI_DigitalSetup(in1,in2) u8RPIDigitalSetups((uint8) in1, (uint8) in2); + +#define RPI_DigitalIn(in1,in2) u8RPIDigitalIns((uint8) in1); + +#define RPI_DigitalOut(in1,in2) u8RPIDigitalOuts((uint8) in1, (uint8) in2); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__RPIPERIPHERALGPIO_H__ */ diff --git a/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h new file mode 100644 index 0000000..92020f9 --- /dev/null +++ b/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h @@ -0,0 +1,23 @@ +// +// Authors +// Siddhesh Wani +// + +#ifndef __INT_RPIPERIPHERALUTIL_H__ +#define __INT_RPIPERIPHERALUTIL_H__ + +#include "types.h" +#include "RPIPeripheralUtil.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define RPI_DelayMicro(in1) u16RPIDelayMicros((uint16) in1); +#define RPI_DelayMilli(in1) u16RPIDelayMillis((uint16) in1); + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !__RPIPERIPHERALUTIL_H__ */ |