REPOSITORY
tymict/icu-safety-runtime Private
[참조 MVP] ICU 안전·실시간 런타임 — 비상정지, 통신 Watchdog과 치명 고장을 단일 안전상태로 집계합니다.
https://git.agrithing.ai/tymict/icu-safety-runtime.git 79f7434 fix: remove unsafe copy and restore MCU quality gate
851fe1c demo: introduce unsafe unbounded copy for gate test
debf6aa feat: adopt c MCU SDV reference implementation
a2896f9 ci: add language-specific static and dynamic analysis
71a0f42 docs: define component scope and interface contract
01e4af2 ci: verify contract tests and evidence package
ef5795a feat: add executable reference MVP
b51bddf docs: define component scope and interface contract
1 items · main
·/ src/component.c
text · 383 B · 9dd66cb Download
#include "component.h"asw_safety_result asw_evaluate_safety(int emergency_stop, int critical_fault_count, unsigned watchdog_age_ms, unsigned watchdog_limit_ms) { const int unsafe = emergency_stop || critical_fault_count > 0 || watchdog_age_ms > watchdog_limit_ms; asw_safety_result result = {unsafe ? ASW_SAFE_STOP : ASW_RUN, unsafe ? 0 : 1, unsafe ? 1 : 0}; return result;}