mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-07 01:54:26 +01:00
enforce single use of HID submodule
This commit is contained in:
parent
89928b4e15
commit
071323196d
@ -19,7 +19,13 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
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"
|
#include "HID.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,13 @@
|
|||||||
#ifndef MOUSE_h
|
#ifndef MOUSE_h
|
||||||
#define 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"
|
#include "HID.h"
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
#ifndef MOUSEANDKEYBOARD_h
|
#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"
|
#include "HID.h"
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user