[hal] Remove HAL.h single header include (#8667)

This commit is contained in:
Peter Johnson
2026-03-13 15:53:24 -07:00
committed by GitHub
parent 80647654c3
commit ab4700854c
17 changed files with 28 additions and 52 deletions

View File

@@ -2,10 +2,10 @@
// 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.
#include "wpi/hal/HAL.h"
#include <gtest/gtest.h>
#include "wpi/hal/HALBase.h"
namespace wpi::hal {
TEST(HALTest, RuntimeType) {
EXPECT_EQ(HAL_RuntimeType::HAL_Runtime_Simulation, HAL_GetRuntimeType());

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "wpi/hal/HAL.h"
#include "wpi/hal/HALBase.h"
int main(int argc, char** argv) {
HAL_Initialize(500, 0);

View File

@@ -9,7 +9,8 @@
#include <gtest/gtest.h>
#include "wpi/hal/AnalogInput.h"
#include "wpi/hal/HAL.h"
#include "wpi/hal/Errors.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/handles/HandlesInternal.hpp"
namespace wpi::hal {

View File

@@ -9,7 +9,8 @@
#include <gtest/gtest.h>
#include "wpi/hal/DIO.h"
#include "wpi/hal/HAL.h"
#include "wpi/hal/Errors.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/handles/HandlesInternal.hpp"
namespace wpi::hal {

View File

@@ -5,11 +5,10 @@
#include "wpi/hal/simulation/DriverStationData.h"
#include <cstring>
#include <string>
#include <gtest/gtest.h>
#include "wpi/hal/HAL.h"
#include "wpi/hal/DriverStation.h"
#include "wpi/util/StringExtras.hpp"
namespace wpi::hal {

View File

@@ -7,7 +7,8 @@
#include <gtest/gtest.h>
#include "wpi/hal/CTREPCM.h"
#include "wpi/hal/HAL.h"
#include "wpi/hal/Errors.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/handles/HandlesInternal.hpp"
#include "wpi/hal/simulation/CTREPCMData.h"

View File

@@ -8,7 +8,8 @@
#include <gtest/gtest.h>
#include "wpi/hal/HAL.h"
#include "wpi/hal/Errors.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/PWM.h"
#include "wpi/hal/handles/HandlesInternal.hpp"