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

@@ -2,8 +2,10 @@
#include "visa/visa.h"
uint32_t m_resourceManagerHandle;
uint32_t m_portHandle[2];
static uint32_t m_resourceManagerHandle;
static uint32_t m_portHandle[2];
extern "C" {
void serialInitializePort(uint8_t port, int32_t *status) {
char const * portName;
@@ -144,5 +146,5 @@ void serialClose(uint8_t port, int32_t *status) {
if(*status > 0)
*status = 0;
}
} // extern "C"