mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Add new counter implementations (#2447)
This commit is contained in:
@@ -11,6 +11,18 @@
|
||||
#include "hal/Counter.h"
|
||||
#include "hal/Errors.h"
|
||||
|
||||
static_assert(HAL_Counter_Mode::HAL_Counter_kTwoPulse ==
|
||||
edu_wpi_first_hal_CounterJNI_TWO_PULSE);
|
||||
|
||||
static_assert(HAL_Counter_Mode::HAL_Counter_kSemiperiod ==
|
||||
edu_wpi_first_hal_CounterJNI_SEMI_PERIOD);
|
||||
|
||||
static_assert(HAL_Counter_Mode::HAL_Counter_kPulseLength ==
|
||||
edu_wpi_first_hal_CounterJNI_PULSE_LENGTH);
|
||||
|
||||
static_assert(HAL_Counter_Mode::HAL_Counter_kExternalDirection ==
|
||||
edu_wpi_first_hal_CounterJNI_EXTERNAL_DIRECTION);
|
||||
|
||||
using namespace hal;
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user