diff options
author | imushir | 2016-02-09 17:00:34 +0530 |
---|---|---|
committer | imushir | 2016-02-09 17:00:34 +0530 |
commit | fad04e78ac69db4ef74c1bd45154fc430c18cccc (patch) | |
tree | 29bb0c8b76e6882adbaaae67bd0e845e3280f73e /src/c/hardware/rasberrypi/interfaces | |
parent | ee5bf4d90f78673d1e4d5a9dd304ee53c503c085 (diff) | |
parent | bbdc94252ee563f0b01d4949868a583e43a2e6a8 (diff) | |
download | scilab2c-fad04e78ac69db4ef74c1bd45154fc430c18cccc.tar.gz scilab2c-fad04e78ac69db4ef74c1bd45154fc430c18cccc.tar.bz2 scilab2c-fad04e78ac69db4ef74c1bd45154fc430c18cccc.zip |
merged RPi & diag
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 00000000..022bed56 --- /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 00000000..92020f9a --- /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__ */ |