mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
It was done as a shim fix around some VISA issues that don't seem to exist anymore. Was never really tested, and I don't think ever actually worked.
54 lines
1.8 KiB
C++
54 lines
1.8 KiB
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2017-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. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <atomic>
|
|
|
|
namespace hal {
|
|
namespace init {
|
|
extern std::atomic_bool HAL_IsInitialized;
|
|
extern void RunInitialize();
|
|
static inline void CheckInit() {
|
|
if (HAL_IsInitialized.load(std::memory_order_relaxed)) return;
|
|
RunInitialize();
|
|
}
|
|
|
|
extern void InitializeAccelerometer();
|
|
extern void InitializeAnalogAccumulator();
|
|
extern void InitializeAnalogGyro();
|
|
extern void InitializeAnalogInput();
|
|
extern void InitializeAnalogInternal();
|
|
extern void InitializeAnalogOutput();
|
|
extern void InitializeAnalogTrigger();
|
|
extern void InitializeCAN();
|
|
extern void InitializeCANAPI();
|
|
extern void InitializeCompressor();
|
|
extern void InitializeConstants();
|
|
extern void InitializeCounter();
|
|
extern void InitializeDigitalInternal();
|
|
extern void InitializeDIO();
|
|
extern void InitializeEncoder();
|
|
extern void InitializeFPGAEncoder();
|
|
extern void InitializeFRCDriverStation();
|
|
extern void InitializeHAL();
|
|
extern void InitializeI2C();
|
|
extern void InitialzeInterrupts();
|
|
extern void InitializeNotifier();
|
|
extern void InitializePCMInternal();
|
|
extern void InitializePDP();
|
|
extern void InitializePorts();
|
|
extern void InitializePower();
|
|
extern void InitializePWM();
|
|
extern void InitializeRelay();
|
|
extern void InitializeSerialPort();
|
|
extern void InitializeSolenoid();
|
|
extern void InitializeSPI();
|
|
extern void InitializeThreads();
|
|
} // namespace init
|
|
} // namespace hal
|