DevI2C wrappers for Javascript.

Dependents:   ST_SENSOR_JS MQTT_JS

Revision:
0:948fd0e96aaa
Child:
1:9004b187e772
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DevI2C-js.h	Wed Oct 25 13:45:51 2017 +0200
@@ -0,0 +1,29 @@
+/* Copyright JS Foundation and other contributors, http://js.foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef _DEVI2C_JS_H
+#define _DEVI2C_JS_H
+
+#include "jerryscript-mbed-library-registry/wrap_tools.h"
+
+DECLARE_CLASS_CONSTRUCTOR(DevI2C);
+
+// Define a wrapper, we can load the wrapper in `main.cpp`.
+// This makes it possible to load libraries optionally.
+DECLARE_JS_WRAPPER_REGISTRATION (DevI2C_JS_library) {
+    REGISTER_CLASS_CONSTRUCTOR(DevI2C);
+}
+
+
+#endif  // _DEVI2C_H