跳转至

lib/config/ah_no.h

Emergency halt helper used when unrecoverable errors occur. More...

Detailed Description

Emergency halt helper used when unrecoverable errors occur.

Provides a tiny, platform-agnostic panic/halt routine intended for fatal error paths where recovery is not possible. The function is implemented as an infinite loop to halt program execution. On many embedded targets a debugger or watchdog will be used to recover from this state; platform-specific implementations may extend this function to signal error LEDs, log information, or trigger a reset.

Use with caution — this function does not return.

Source code

#pragma once

static inline void CFBD_AH_NO(void)
{
    while (1)
        ;
}

Updated on 2026-02-03 at 13:21:55 +0000