mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
/** @} */
|
||||
|
||||
Reference in New Issue
Block a user