pico-sdk/src/rp2_common/pico_printf/printf_none.S
graham sanderson 26653ea81e Initial Release
2021-01-20 10:44:27 -06:00

23 lines
428 B
ArmAsm

/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "pico/asm_helper.S"
#include "pico/bootrom/sf_table.h"
.syntax unified
.cpu cortex-m0plus
.thumb
wrapper_func sprintf
wrapper_func snprintf
wrapper_func vsnprintf
regular_func printf_none_assert
push {lr} // keep stack trace sane
ldr r0, =str
bl panic
str:
.asciz "printf support is disabled"