diff options
author | Pragya28 | 2018-06-18 20:34:00 +0530 |
---|---|---|
committer | Pragya28 | 2018-06-18 20:34:00 +0530 |
commit | f6a84e772d0e4dd4da1850ffe8e77428d69a3ef1 (patch) | |
tree | e786486ea64ea7449807ce05dec91b362c91d3c0 /OpenModelicaArduino/Resources/Include | |
parent | 44ad9efa7e729739cde3103d8fc1e475efa2a923 (diff) | |
download | OpenModelicaEmbedded-1-f6a84e772d0e4dd4da1850ffe8e77428d69a3ef1.tar.gz OpenModelicaEmbedded-1-f6a84e772d0e4dd4da1850ffe8e77428d69a3ef1.tar.bz2 OpenModelicaEmbedded-1-f6a84e772d0e4dd4da1850ffe8e77428d69a3ef1.zip |
Tiva C examples added, package renamed
Diffstat (limited to 'OpenModelicaArduino/Resources/Include')
-rwxr-xr-x | OpenModelicaArduino/Resources/Include/modelPlugFirmata.h | 33 | ||||
-rwxr-xr-x | OpenModelicaArduino/Resources/Include/modelPlugFirmata.h~ | 33 |
2 files changed, 0 insertions, 66 deletions
diff --git a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h deleted file mode 100755 index 8fd513b..0000000 --- a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef MODELPLUG_H -#define MODELPLUG_H - -typedef unsigned char bool; - -#if defined(_MSC_VER) - // Microsoft VC++ - #define EXPORT __declspec(dllexport) -#else - // GCC - #define EXPORT __attribute__((visibility("default"))) -#endif - -#ifdef _cplusplus -extern "C" { -#endif - -EXPORT void* boardConstructor(char* port,bool showCapabilitites,int samplingMs,int baudRate,bool dtr); -EXPORT void boardDestructor(void* object); - -EXPORT void updateBoard(int id); -EXPORT int getBoardId(void* object); - - -EXPORT double readAnalogPin (int pin, double min, double max, double init, int id, int adcResolution); -EXPORT int readDigitalPin (int pin, int init, int id); -EXPORT void writeAnalogPin (int pin, int id,double value); -EXPORT void writeDigitalPin(int pin, int id,int value); -EXPORT void writeServoPin (int pin, int id,double value, int min, int max); -#ifdef _cplusplus -} -#endif -#endif diff --git a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h~ b/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h~ deleted file mode 100755 index 8fd513b..0000000 --- a/OpenModelicaArduino/Resources/Include/modelPlugFirmata.h~ +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef MODELPLUG_H -#define MODELPLUG_H - -typedef unsigned char bool; - -#if defined(_MSC_VER) - // Microsoft VC++ - #define EXPORT __declspec(dllexport) -#else - // GCC - #define EXPORT __attribute__((visibility("default"))) -#endif - -#ifdef _cplusplus -extern "C" { -#endif - -EXPORT void* boardConstructor(char* port,bool showCapabilitites,int samplingMs,int baudRate,bool dtr); -EXPORT void boardDestructor(void* object); - -EXPORT void updateBoard(int id); -EXPORT int getBoardId(void* object); - - -EXPORT double readAnalogPin (int pin, double min, double max, double init, int id, int adcResolution); -EXPORT int readDigitalPin (int pin, int init, int id); -EXPORT void writeAnalogPin (int pin, int id,double value); -EXPORT void writeDigitalPin(int pin, int id,int value); -EXPORT void writeServoPin (int pin, int id,double value, int min, int max); -#ifdef _cplusplus -} -#endif -#endif |