2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2018-05-13 22:02:47 -07:00
|
|
|
|
2026-01-04 00:41:53 -08:00
|
|
|
#include "HALInitializer.hpp"
|
2018-05-13 22:02:47 -07:00
|
|
|
|
2026-03-13 17:19:39 -07:00
|
|
|
#include "wpi/hal/HAL.h"
|
2018-05-13 22:02:47 -07:00
|
|
|
|
2025-11-07 20:00:05 -05:00
|
|
|
namespace wpi::hal::init {
|
2018-05-13 22:02:47 -07:00
|
|
|
std::atomic_bool HAL_IsInitialized{false};
|
2020-12-28 12:58:06 -08:00
|
|
|
void RunInitialize() {
|
|
|
|
|
HAL_Initialize(500, 0);
|
|
|
|
|
}
|
2025-11-07 20:00:05 -05:00
|
|
|
} // namespace wpi::hal::init
|