From 89a3de8a05c98d0bf6c176112c801c349378791c Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 15 Sep 2017 16:32:44 +0700 Subject: [PATCH] change adacallback from cpp to c --- cores/nRF5/utility/{AdaCallback.cpp => AdaCallback.c} | 0 cores/nRF5/utility/AdaCallback.h | 7 +++++++ 2 files changed, 7 insertions(+) rename cores/nRF5/utility/{AdaCallback.cpp => AdaCallback.c} (100%) diff --git a/cores/nRF5/utility/AdaCallback.cpp b/cores/nRF5/utility/AdaCallback.c similarity index 100% rename from cores/nRF5/utility/AdaCallback.cpp rename to cores/nRF5/utility/AdaCallback.c diff --git a/cores/nRF5/utility/AdaCallback.h b/cores/nRF5/utility/AdaCallback.h index 47c4bf8f..e5f329a9 100644 --- a/cores/nRF5/utility/AdaCallback.h +++ b/cores/nRF5/utility/AdaCallback.h @@ -42,6 +42,10 @@ #define CFG_CALLBACK_TASK_STACKSIZE (512*2) #define CFG_CALLBACK_QUEUE_LENGTH 20 +#ifdef __cplusplus +extern "C"{ +#endif + typedef struct { void* malloced_data; @@ -99,5 +103,8 @@ typedef void (*adacb_5arg_t) (uint32_t, uint32_t, uint32_t, uint32_t, uint32_t); void ada_callback_init(void); void ada_callback_queue(ada_callback_t* cb_data); +#ifdef __cplusplus +} +#endif #endif /* ADACALLBACK_H_ */