summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-06 21:00:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-06 21:00:48 +0000
commitf8523254d0c4584e1a56d835ab0af9e8a8625c4b (patch)
tree765ebc200ed841447879eaeb06f8ad02706c5428 /nuttx/include
parentca6a50135e04d530ddf75b38f7fff1081ced6de4 (diff)
downloadpx4-nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.tar.gz
px4-nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.tar.bz2
px4-nuttx-f8523254d0c4584e1a56d835ab0af9e8a8625c4b.zip
Fix a error the the STM32 I2C timeout logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3940 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/pm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/pm.h b/nuttx/include/nuttx/pm.h
index 898a82b88..520348ca6 100644
--- a/nuttx/include/nuttx/pm.h
+++ b/nuttx/include/nuttx/pm.h
@@ -458,5 +458,22 @@ EXTERN int pm_changestate(enum pm_state_e newstate);
#endif
#endif /* __ASSEMBLY__ */
+
+/****************************************************************************
+ * Stubs
+ ****************************************************************************/
+
+#else /* CONFIG_PM */
+
+/* Stubbed out versions of all of PM interface functions that may be used to
+ * avoid so much conditional compilation in driver code when PM is disabled:
+ */
+
+# define pm_initialize()
+# define pm_register(cb) (0)
+# define pm_activity(prio)
+# define pm_checkstate() (0)
+# define pm_changestate(state)
+
#endif /* CONFIG_PM */
#endif /* __INCLUDE_NUTTX_PM_H */