diff options
author | Jorawar Singh | 2017-07-04 15:14:46 +0530 |
---|---|---|
committer | Jorawar Singh | 2017-07-04 15:14:46 +0530 |
commit | 8889f4a5edad040f47c3fcb717053352ab0d05b8 (patch) | |
tree | 749b476d7653774c918af42ebd952d4050ed49b6 /2.3-1/src/c/hardware/rasberrypi/includes | |
parent | c66867c874436fb37ef54c67b048885ce094e894 (diff) | |
download | Scilab2C-8889f4a5edad040f47c3fcb717053352ab0d05b8.tar.gz Scilab2C-8889f4a5edad040f47c3fcb717053352ab0d05b8.tar.bz2 Scilab2C-8889f4a5edad040f47c3fcb717053352ab0d05b8.zip |
Fixed standalone conversion errors with RPi files
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/includes')
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h | 4 | ||||
-rw-r--r-- | 2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h | 43 |
2 files changed, 44 insertions, 3 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 842fd73b..22d470a2 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) 2016 - IIT Bombay - FOSSEE +/* Copyright (C) 2017 - 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 @@ -21,8 +21,6 @@ extern "C" { #include "types.h" -extern int phy_pin[]; //Not needed??? - uint8 u8RPI_digitalReads(uint8 pin); uint8 RPI_digitalReadByte(); void u8RPI_digitalWrites(uint8 pin, uint8 state); diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h new file mode 100644 index 00000000..d541c9fd --- /dev/null +++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralLCD128x64.h @@ -0,0 +1,43 @@ + /* 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__*/ |