DefaultPlatform for Arduino
This commit is contained in:
parent
2734894485
commit
8fc25fa8f9
|
|
@ -6,3 +6,4 @@ build/
|
||||||
src/.DS_Store
|
src/.DS_Store
|
||||||
examples/.DS_Store
|
examples/.DS_Store
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
test/xcode
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/*!
|
/*!
|
||||||
* @file midi_Platform.h
|
* @file midi_Platform.h
|
||||||
* Project Arduino MIDI Library
|
* Project Arduino MIDI Library
|
||||||
* @brief MIDI Library for the Arduino - Settings
|
* @brief MIDI Library for the Arduino - Platform
|
||||||
* @author Francois Best
|
* @author Francois Best
|
||||||
* @date 24/02/11
|
* @date 24/02/11
|
||||||
* @license MIT - Copyright (c) 2015 Francois Best
|
* @license MIT - Copyright (c) 2015 Francois Best
|
||||||
|
|
@ -27,12 +27,18 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "midi_Defs.h"
|
||||||
|
|
||||||
BEGIN_MIDI_NAMESPACE
|
BEGIN_MIDI_NAMESPACE
|
||||||
|
|
||||||
|
#if ARDUINO
|
||||||
|
|
||||||
// DefaultPlatform is the Arduino Platform
|
// DefaultPlatform is the Arduino Platform
|
||||||
struct DefaultPlatform
|
struct DefaultPlatform
|
||||||
{
|
{
|
||||||
static unsigned long now() { return ::millis(); };
|
static unsigned long now() { return ::millis(); };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
END_MIDI_NAMESPACE
|
END_MIDI_NAMESPACE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue