Adds port constants to the HAL (#130)

This commit is contained in:
Thad House
2016-07-02 23:19:14 -07:00
committed by Peter Johnson
parent 0e127679c1
commit b45e0917ae
25 changed files with 175 additions and 91 deletions

View File

@@ -13,6 +13,7 @@
#include "DigitalInternal.h"
#include "HAL/Errors.h"
#include "PortsInternal.h"
#include "handles/LimitedHandleResource.h"
using namespace hal;
@@ -25,8 +26,8 @@ struct Interrupt // FIXME: why is this internal?
};
}
static LimitedHandleResource<HalInterruptHandle, Interrupt,
tInterrupt::kNumSystems, HalHandleEnum::Interrupt>
static LimitedHandleResource<HalInterruptHandle, Interrupt, kNumInterrupts,
HalHandleEnum::Interrupt>
interruptHandles;
extern "C" {