mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
28 lines
1.0 KiB
C++
28 lines
1.0 KiB
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#include "AnalogInternal.h"
|
|
|
|
#include "HAL/AnalogInput.h"
|
|
#include "PortsInternal.h"
|
|
|
|
namespace hal {
|
|
IndexedHandleResource<HAL_AnalogInputHandle, hal::AnalogPort, kNumAnalogInputs,
|
|
HAL_HandleEnum::AnalogInput>* analogInputHandles;
|
|
} // namespace hal
|
|
|
|
namespace hal {
|
|
namespace init {
|
|
void InitializeAnalogInternal() {
|
|
static IndexedHandleResource<HAL_AnalogInputHandle, hal::AnalogPort,
|
|
kNumAnalogInputs, HAL_HandleEnum::AnalogInput>
|
|
aiH;
|
|
analogInputHandles = &aiH;
|
|
}
|
|
} // namespace init
|
|
} // namespace hal
|