pico_sdk_shims.c 240 B

12345678910111213
  1. // Copyright 2022 Stefan Kerkmann
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include <stdbool.h>
  4. #include <ch.h>
  5. void panic(const char *fmt, ...) {
  6. chSysHalt(fmt);
  7. }
  8. void hard_assertion_failure(void) {
  9. panic("hard assert");
  10. }