{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "required": ["project_id", "profile", "device", "uart", "outputs", "motors", "temperature", "pins", "resources", "protocol", "timeouts"], "properties": { "project_id": {"type": "string", "pattern": "^[a-z0-9-]+$"}, "profile": {"type": "string", "const": "prod2u-normal-multiproject-115200-v1"}, "device": { "type": "object", "required": ["family", "part", "clock_hz", "clock_ball"], "properties": { "family": {"type": "string", "const": "EF2"}, "part": {"type": "string", "const": "EF2L45BG256B"}, "clock_hz": {"type": "integer", "const": 25000000}, "clock_ball": {"type": "string", "const": "J1"} }, "additionalProperties": false }, "uart": { "type": "object", "required": ["baud", "data_bits", "parity", "stop_bits", "flow_control", "clks_per_bit", "inter_byte_timeout_ms"], "properties": { "baud": {"type": "integer", "const": 115200}, "data_bits": {"type": "integer", "const": 8}, "parity": {"type": "string", "const": "N"}, "stop_bits": {"type": "integer", "const": 1}, "flow_control": {"type": "string", "const": "none"}, "clks_per_bit": {"type": "integer", "const": 217}, "inter_byte_timeout_ms": {"type": "integer", "const": 10} }, "additionalProperties": false }, "outputs": { "type": "object", "required": ["ptc_count", "fan_count", "pwm_bits", "pwm_frequency_hz", "ptc_polarity", "fan_polarity", "ptc_default", "fan_default", "fan_connector_active_level", "fan_board_inverts", "solenoid_policy", "z_policy"], "properties": { "ptc_count": {"type": "integer", "const": 24}, "fan_count": {"type": "integer", "const": 4}, "pwm_bits": {"type": "integer", "const": 8}, "pwm_frequency_hz": {"type": "integer", "const": 20}, "ptc_polarity": {"type": "string", "const": "active_high"}, "fan_polarity": {"type": "string", "const": "active_low"}, "ptc_default": {"type": "integer", "const": 0}, "fan_default": {"type": "integer", "const": 26}, "fan_connector_active_level": {"type": "string", "const": "high"}, "fan_board_inverts": {"type": "boolean", "const": true}, "solenoid_policy": {"type": "string", "const": "constant_safe_zero"}, "z_policy": {"type": "string", "const": "constant_zero"} }, "additionalProperties": false }, "motors": { "type": "object", "required": ["count", "fixed_steps", "execution", "order", "step_rate_hz", "step_half_cycles", "dir_setup_cycles", "direction_values", "direction_meaning", "limits", "mapping", "enable_n"], "properties": { "count": {"type": "integer", "const": 2}, "fixed_steps": {"type": "integer", "const": 450}, "execution": {"type": "string", "const": "serial"}, "order": {"type": "array", "const": ["inlet", "outlet"]}, "step_rate_hz": {"type": "integer", "const": 1000}, "step_half_cycles": {"type": "integer", "const": 12500}, "dir_setup_cycles": {"type": "integer", "const": 25000}, "direction_values": {"type": "array", "const": [0, 1]}, "direction_meaning": {"type": "object"}, "limits": {"type": "string", "const": "none"}, "mapping": {"type": "object"}, "enable_n": {"type": "object"} }, "additionalProperties": false }, "temperature": {"type": "object"}, "pins": {"type": "object"}, "resources": {"type": "object"}, "protocol": {"type": "object"}, "timeouts": {"type": "object"} }, "additionalProperties": false }