Include missing headers in HAL.h (#1660)

* Include CANAPI.h and Encoder.h in HAL.h

* Include Threads.h in HAL.h

* Make Threads.h C compatible

Also changes the #define to a typedef.
This commit is contained in:
David Vo
2019-04-28 14:52:54 +10:00
committed by Peter Johnson
parent bdc822fad8
commit f42905b32e
2 changed files with 11 additions and 2 deletions

View File

@@ -18,11 +18,13 @@
#include "hal/AnalogOutput.h"
#include "hal/AnalogTrigger.h"
#include "hal/CAN.h"
#include "hal/CANAPI.h"
#include "hal/Compressor.h"
#include "hal/Constants.h"
#include "hal/Counter.h"
#include "hal/DIO.h"
#include "hal/DriverStation.h"
#include "hal/Encoder.h"
#include "hal/Errors.h"
#include "hal/I2C.h"
#include "hal/Interrupts.h"
@@ -35,6 +37,7 @@
#include "hal/SPI.h"
#include "hal/SerialPort.h"
#include "hal/Solenoid.h"
#include "hal/Threads.h"
#endif // HAL_USE_LABVIEW

View File

@@ -7,8 +7,6 @@
#pragma once
#define NativeThreadHandle const void*
#include "hal/Types.h"
/**
@@ -17,7 +15,12 @@
* @{
*/
typedef const void* NativeThreadHandle;
#ifdef __cplusplus
extern "C" {
#endif
/**
* Gets the thread priority for the specified thread.
*
@@ -68,5 +71,8 @@ HAL_Bool HAL_SetThreadPriority(NativeThreadHandle handle, HAL_Bool realTime,
*/
HAL_Bool HAL_SetCurrentThreadPriority(HAL_Bool realTime, int32_t priority,
int32_t* status);
#ifdef __cplusplus
} // extern "C"
#endif
/** @} */