summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/vendors/RP/pico_sdk_shims.c
blob: caab4005316c56d5bb750aee0b620ca21419cc54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2022 Stefan Kerkmann
// SPDX-License-Identifier: GPL-2.0-or-later

#include <stdbool.h>

extern void chSysHalt(const char *reason) __attribute__((noreturn));

void panic(const char *fmt, ...) {
    chSysHalt(fmt);
}

void hard_assertion_failure(void) {
    panic("hard assert");
}