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:
- 8:88d4fba4ccd5
- Parent:
- 7:71a6f45bc563
diff -r 71a6f45bc563 -r 88d4fba4ccd5 platform/mbed/main_nat.cpp
--- a/platform/mbed/main_nat.cpp Sat Jun 14 12:14:55 2014 +0000
+++ b/platform/mbed/main_nat.cpp Sat Jun 21 01:08:08 2014 +0000
@@ -22,13 +22,13 @@
#include "TSISensor.h"
#endif
-#if defined(TARGET_NUCLEO_F401RE)
+#if DEVICE_ANALOGOUT==0
class AnalogOut {
public:
AnalogOut(PinName pin){}
void write(float value){}
void write_u16(unsigned short value){}
-float read(){}
+float read(){ return 0.0; }
};
#endif