mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Adds port constants to the HAL (#130)
This commit is contained in:
committed by
Peter Johnson
parent
0e127679c1
commit
b45e0917ae
@@ -9,11 +9,9 @@
|
||||
|
||||
#include "DigitalInternal.h"
|
||||
#include "HAL/HAL.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "handles/LimitedHandleResource.h"
|
||||
|
||||
static_assert(sizeof(uint32_t) <= sizeof(void*),
|
||||
"This file shoves uint32_ts into pointers.");
|
||||
|
||||
using namespace hal;
|
||||
|
||||
namespace {
|
||||
@@ -23,7 +21,7 @@ struct Counter {
|
||||
};
|
||||
}
|
||||
|
||||
static LimitedHandleResource<HalCounterHandle, Counter, tCounter::kNumSystems,
|
||||
static LimitedHandleResource<HalCounterHandle, Counter, kNumCounters,
|
||||
HalHandleEnum::Counter>
|
||||
counterHandles;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user