доработки по интерфейсу
This commit is contained in:
@@ -109,6 +109,8 @@ static_assert(MEASUREMENT_AVERAGING_PERIODS > 0,
|
||||
"Averaging window must contain at least one period");
|
||||
constexpr uint8_t MEASUREMENT_PROGRESS_STEPS = 10;
|
||||
constexpr uint32_t OLED_PROGRESS_UPDATE_MS = 15;
|
||||
constexpr uint8_t DRIVER_SHORT_SAMPLE_PROGRESS_STEPS = 10;
|
||||
constexpr uint32_t DRIVER_PROGRESS_INTERVAL_MS = 100;
|
||||
|
||||
constexpr uint32_t IDLE_POWER_SAVE_TIMEOUT_MS = 60000;
|
||||
// usb_serial_jtag_is_connected() needs no open COM port or CDC traffic, but a
|
||||
@@ -162,10 +164,10 @@ constexpr uint32_t DRIVER_RESPONSE_TIMEOUT_NS = 10000;
|
||||
// the selected maximum down to the selected minimum. Widths are stored in
|
||||
// nanoseconds so sub-microsecond pulses remain representable without floats.
|
||||
constexpr uint32_t PWM_FREQUENCY_OPTIONS_HZ[] = {
|
||||
500, 1000, 2000, 5000, 10000, 25000,
|
||||
500, 1000, 2000, 5000, 10000,
|
||||
};
|
||||
constexpr uint32_t MAX_PULSE_OPTIONS_NS[] = {
|
||||
2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000
|
||||
2000, 5000, 10000, 50000, 100000, 500000
|
||||
};
|
||||
constexpr uint32_t MIN_PULSE_OPTIONS_NS[] = {
|
||||
250, 500, 1000, 2000, 5000, 10000, 50000
|
||||
@@ -175,6 +177,6 @@ constexpr uint32_t TEST_PULSE_WIDTHS_NS[] = {
|
||||
100000, 200000, 500000, 1000000
|
||||
};
|
||||
constexpr float ACCURACY_OPTIONS_PCT[] = {1.0f, 2.0f, 5.0f, 10.0f};
|
||||
constexpr uint32_t TEST_TIME_OPTIONS_MS[] = {100, 250, 500, 1000, 2000, 5000};
|
||||
constexpr uint32_t TEST_TIME_OPTIONS_MS[] = {100, 250, 500, 1000, 2000, 5000, 60000};
|
||||
|
||||
template <typename T, size_t N> constexpr size_t countOf(const T (&)[N]) { return N; }
|
||||
|
||||
Reference in New Issue
Block a user