[hal] Initial CAN implementation for SystemCore (#7514)

This commit is contained in:
Thad House
2024-12-08 12:01:28 -08:00
committed by GitHub
parent 220f4e1ba4
commit 41d4826694
6 changed files with 275 additions and 14 deletions

View File

@@ -25,6 +25,7 @@
#include <wpi/print.h>
#include <wpi/timestamp.h>
#include "CANInternal.h"
#include "HALInitializer.h"
#include "HALInternal.h"
#include "SystemServer.h"
@@ -337,6 +338,11 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
prctl(PR_SET_PDEATHSIG, SIGTERM);
if (!hal::InitializeCanBuses()) {
std::printf("Failed to initialize can buses\n");
return false;
}
hal::InitializeSystemServer();
// // Return false if program failed to kill an existing program