From e26cca760a191844181b065a8320c451010d5e37 Mon Sep 17 00:00:00 2001 From: jwilson Date: Thu, 4 Feb 2016 19:59:59 -0800 Subject: [PATCH] StubSensor template class implemented to allow registration with the DevMgr. --- cmake/configs/qurt_eagle_release.cmake | 1 + src/platforms/qurt/include/qurt_log.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cmake/configs/qurt_eagle_release.cmake b/cmake/configs/qurt_eagle_release.cmake index d617d60fd5..bca8e7f3bf 100644 --- a/cmake/configs/qurt_eagle_release.cmake +++ b/cmake/configs/qurt_eagle_release.cmake @@ -41,6 +41,7 @@ set(config_module_list ${EAGLE_DRIVERS_SRC}/uart_esc ${EAGLE_DRIVERS_SRC}/rc_receiver ${EAGLE_DRIVERS_SRC}/csr_gps + ${EAGLE_DRIVERS_SRC}/utils # # System commands diff --git a/src/platforms/qurt/include/qurt_log.h b/src/platforms/qurt/include/qurt_log.h index 5c8f468877..ad32e8999a 100644 --- a/src/platforms/qurt/include/qurt_log.h +++ b/src/platforms/qurt/include/qurt_log.h @@ -47,6 +47,8 @@ __EXPORT extern uint64_t hrt_absolute_time(void); // declaration to make the compiler happy. This symbol is part of the adsp static image. void HAP_debug(const char *msg, int level, const char *filename, int line); +#ifndef qurt_log_defined +#define qurt_log_defined static __inline void qurt_log(int level, const char *file, int line, const char *format, ...) { @@ -57,5 +59,6 @@ static __inline void qurt_log(int level, const char *file, int line, va_end(args); HAP_debug(buf, level, file, line); } +#endif __END_DECLS