arduino: add C++ protection

This commit is contained in:
Matthias Ringwald 2016-01-27 15:36:32 +01:00
parent 1aba866f2c
commit 7d00c19e81

View File

@ -1,7 +1,12 @@
/**
* Arduino Wrapper for BTstack
*/
#pragma once
#ifndef __ARDUINO_BTSTACK_H
#define __ARDUINO_BTSTACK_H
#if defined __cplusplus
extern "C" {
#endif
#include "att.h"
#include <btstack/utils.h>
@ -187,4 +192,10 @@ public:
uint16_t addGATTCharacteristicDynamic(UUID * uuid, uint16_t flags, uint16_t characteristic_id);
};
extern BTstackManager BTstack;
extern BTstackManager BTstack;
#if defined __cplusplus
}
#endif
#endif // __ARDUINO_BTSTACK_H