enforce single use of HID submodule

This commit is contained in:
Martino Facchin 2015-06-23 17:28:31 +00:00 committed by Cristian Maglie
parent 89928b4e15
commit 071323196d
3 changed files with 21 additions and 3 deletions

View File

@ -19,7 +19,13 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if 1
#if defined(_USING_HID)
#error "Can only attach one submodule to HID module"
#else
#define _USING_HID
#include "HID.h"

View File

@ -22,7 +22,13 @@
#ifndef MOUSE_h
#define MOUSE_h
#if 1 //defined(USBCON)
#if defined(_USING_HID)
#error "Can only attach one submodule to HID module"
#else
#define _USING_HID
#include "HID.h"
//================================================================================

View File

@ -1,6 +1,12 @@
#ifndef MOUSEANDKEYBOARD_h
#if 1 //defined(USBCON)
#if defined(_USING_HID)
#error "Can only attach one submodule to HID module"
#else
#define _USING_HID
#include "HID.h"
//================================================================================