HAL: Use extern "C" in implementation files.

This turns accidental parameter mismatches between header and implementation
into compiler errors.

Change-Id: Ic26fabb82b2fd5f79407a11435cdbd35348af15f
This commit is contained in:
Peter Johnson
2015-11-26 00:08:32 -08:00
parent e2ec34090a
commit 351e8599ac
15 changed files with 105 additions and 50 deletions

View File

@@ -9,6 +9,8 @@ static void initializePower(int32_t *status) {
}
}
extern "C" {
/**
* Get the roboRIO input voltage
*/
@@ -125,3 +127,5 @@ int getUserCurrentFaults3V3(int32_t *status) {
initializePower(status);
return (int)power->readFaultCounts_OverCurrentFaultCount3V3(status);
}
} // extern "C"