mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[wpiutil] Remove roboRIO-specific timestamp code (#7669)
This commit is contained in:
@@ -16,12 +16,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* De-initialize the on-Rio Now() implementation. No effect on non-Rio
|
||||
* platforms.
|
||||
*/
|
||||
void WPI_Impl_ShutdownNowRio(void);
|
||||
|
||||
/**
|
||||
* The default implementation used for Now().
|
||||
* In general this is the time returned by the operating system.
|
||||
@@ -59,43 +53,6 @@ uint64_t WPI_GetSystemTime(void);
|
||||
#ifdef __cplusplus
|
||||
namespace wpi {
|
||||
|
||||
namespace impl {
|
||||
/**
|
||||
* Initialize the on-Rio Now() implementation to use the desktop timestamp.
|
||||
* No effect on non-Rio platforms. This should only be used for testing
|
||||
* purposes if the HAL is not available.
|
||||
*/
|
||||
void SetupNowDefaultOnRio();
|
||||
|
||||
/**
|
||||
* Initialize the on-Rio Now() implementation to use the FPGA timestamp.
|
||||
* No effect on non-Rio platforms. This is called by HAL_Initialize() and
|
||||
* thus should generally not be called by user code.
|
||||
*/
|
||||
#ifdef __FRC_ROBORIO__
|
||||
template <typename T>
|
||||
bool SetupNowRio(void* chipObjectLibrary, std::unique_ptr<T> hmbObject);
|
||||
#else
|
||||
template <typename T>
|
||||
inline bool SetupNowRio(void*, std::unique_ptr<T>) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Initialize the on-Rio Now() implementation to use the FPGA timestamp.
|
||||
* No effect on non-Rio platforms. This take an FPGA session that has
|
||||
* already been initialized, and is used from LabVIEW.
|
||||
*/
|
||||
bool SetupNowRio(uint32_t session);
|
||||
|
||||
/**
|
||||
* De-initialize the on-Rio Now() implementation. No effect on non-Rio
|
||||
* platforms.
|
||||
*/
|
||||
void ShutdownNowRio();
|
||||
} // namespace impl
|
||||
|
||||
/**
|
||||
* The default implementation used for Now().
|
||||
* In general this is the time returned by the operating system.
|
||||
|
||||
Reference in New Issue
Block a user