Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: platform/mbed/main_nat.cpp
- Revision:
- 4:23becb24acb8
- Parent:
- 3:559c4bd38111
- Child:
- 5:19bd98307341
--- a/platform/mbed/main_nat.cpp Wed Mar 13 10:05:34 2013 +0000
+++ b/platform/mbed/main_nat.cpp Sat Mar 16 13:29:02 2013 +0000
@@ -4,7 +4,7 @@
* PyMite usr native function file
*
* automatically created by pmImgCreator.py
- * on Wed Mar 13 10:57:50 2013
+ * on Fri Mar 15 14:38:03 2013
*
* DO NOT EDIT THIS FILE.
* ANY CHANGES WILL BE LOST.
@@ -18,6 +18,9 @@
/* From: mbed.py */
#include "mbed.h"
#include "NativeClassInterface.h"
+#if defined(TARGET_KL25Z)
+#include "TSISensor.h"
+#endif
PmReturn_t
nat_placeholder_func(pPmFrame_t *ppframe)
@@ -480,6 +483,39 @@
}
+PmReturn_t
+nat_49_mbed___init__(pPmFrame_t *ppframe)
+{
+
+#if defined(TARGET_KL25Z)
+ NativeClassInterface nci;
+ return nci.init<TSISensor>();
+#endif
+
+}
+
+PmReturn_t
+nat_50_mbed_readPercentage(pPmFrame_t *ppframe)
+{
+
+#if defined(TARGET_KL25Z)
+ NativeClassInterface nci;
+ return nci.method<float,TSISensor,&TSISensor::readPercentage>(OBJ_TYPE_FLT);
+#endif
+
+}
+
+PmReturn_t
+nat_51_mbed_readDistance(pPmFrame_t *ppframe)
+{
+
+#if defined(TARGET_KL25Z)
+ NativeClassInterface nci;
+ return nci.method<uint8_t,TSISensor,&TSISensor::readDistance>(OBJ_TYPE_INT);
+#endif
+
+}
+
/* Native function lookup table */
pPmNativeFxn_t const usr_nat_fxn_table[] =
{
@@ -532,4 +568,7 @@
nat_46_mbed_read,
nat_47_mbed_read_ms,
nat_48_mbed_read_us,
+ nat_49_mbed___init__,
+ nat_50_mbed_readPercentage,
+ nat_51_mbed_readDistance,
};