Switches AnalogInputs and AnalogTriggers to Handles (#117)

Results in a breaking change to AnalogTrigger int constructor. If a user wants
multiple AnalogTriggers, they must use the AnalogInput constructor.
This commit is contained in:
Thad House
2016-06-27 21:32:30 -07:00
committed by Peter Johnson
parent 77a1af44c4
commit e8e052712e
18 changed files with 516 additions and 341 deletions

View File

@@ -15,6 +15,11 @@ namespace hal {
priority_recursive_mutex analogRegisterWindowMutex;
tAI* analogInputSystem = nullptr;
tAO* analogOutputSystem = nullptr;
IndexedHandleResource<HalAnalogInputHandle, hal::AnalogPort, kAnalogInputPins,
HalHandleEnum::AnalogInput>
analogInputHandles;
static uint32_t analogNumChannelsToActivate = 0;
bool analogSystemInitialized = false;