mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Remove large HAL headers from wpilibc headers (#1386)
Now only includes the types in the wpilib headers. Should immensely clean up intellisense. Closes #1383
This commit is contained in:
committed by
Peter Johnson
parent
f774e47c80
commit
f0b0965f9b
@@ -9,7 +9,11 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <hal/HAL.h>
|
||||
#include <hal/CAN.h>
|
||||
#include <hal/CANAPI.h>
|
||||
#include <hal/Errors.h>
|
||||
#include <hal/FRCUsageReporting.h>
|
||||
#include <hal/HALBase.h>
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <hal/HAL.h>
|
||||
#include <hal/Encoder.h>
|
||||
#include <hal/FRCUsageReporting.h>
|
||||
#include <hal/HALBase.h>
|
||||
|
||||
#include "frc/DigitalInput.h"
|
||||
#include "frc/WPIErrors.h"
|
||||
|
||||
@@ -23,6 +23,17 @@
|
||||
|
||||
using namespace frc;
|
||||
|
||||
int frc::RunHALInitialization() {
|
||||
if (!HAL_Initialize(500, 0)) {
|
||||
wpi::errs() << "FATAL ERROR: HAL could not be initialized\n";
|
||||
return -1;
|
||||
}
|
||||
HAL_Report(HALUsageReporting::kResourceType_Language,
|
||||
HALUsageReporting::kLanguage_CPlusPlus);
|
||||
wpi::outs() << "\n********** Robot program starting **********\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::thread::id RobotBase::m_threadId;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
|
||||
#include "frc/SampleRobot.h"
|
||||
|
||||
#include <hal/DriverStation.h>
|
||||
#include <hal/FRCUsageReporting.h>
|
||||
#include <hal/HALBase.h>
|
||||
#include <networktables/NetworkTable.h>
|
||||
#include <wpi/raw_ostream.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user