Skip to content

Commit 89a3de8

Browse files
committed
change adacallback from cpp to c
1 parent c53d337 commit 89a3de8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
File renamed without changes.

cores/nRF5/utility/AdaCallback.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
#define CFG_CALLBACK_TASK_STACKSIZE (512*2)
4343
#define CFG_CALLBACK_QUEUE_LENGTH 20
4444

45+
#ifdef __cplusplus
46+
extern "C"{
47+
#endif
48+
4549
typedef struct
4650
{
4751
void* malloced_data;
@@ -99,5 +103,8 @@ typedef void (*adacb_5arg_t) (uint32_t, uint32_t, uint32_t, uint32_t, uint32_t);
99103
void ada_callback_init(void);
100104
void ada_callback_queue(ada_callback_t* cb_data);
101105

106+
#ifdef __cplusplus
107+
}
108+
#endif
102109

103110
#endif /* ADACALLBACK_H_ */

0 commit comments

Comments
 (0)