techmannih/nema34-mounted-stepper-controller
A USB-C PD-powered RP2040 motor controller with protected 48 V power, DRV8262 dual-bridge drive for a NEMA34 motor, regenerative-braking resistor, isolated sensing, hardware interlocks, and telemetry/status interfaces.
- Version
- 0.3.113
- License
- unset
- Stars
- 1
firmware/include/test_profile.h
#pragma once
// 0: normal diagnostics image; 1: stationary bus test; 2: bounded unloaded test.
// Build profiles 1/2 only through build-firmware.mjs with an operator record.
#ifndef PD1180_TEST_PROFILE
#define PD1180_TEST_PROFILE 0
#endif
#if PD1180_TEST_PROFILE < 0 || PD1180_TEST_PROFILE > 2
#error Invalid commissioning profile
#endif
#if PD1180_TEST_PROFILE != 0
#ifndef PD1180_TEST_RECORD_SHA
#error A commissioning record hash is required
#endif
static_assert(sizeof(PD1180_TEST_RECORD_SHA) == 65, "Expected record SHA-256");
#endif
#define PD1180_BENCH_RUN_MS 10000u
#define PD1180_BENCH_STOP_MS 1500u