📄 debug.c
字号:
/*=============================================================================
=
= Name: QVGA Display and Timer Verification and Example Code
=
===============================================================================
=
= (C) Copyright 2006 - Analog Devices, Inc. All rights reserved.
=
= File Name : debug.c
=
= Date : 12/21/06
=
= Target : ADSP-BF537
=
= Version : 1.0
=
= Purpose : Test the display with a bitmap
=
=
=
==============================================================================*/
#include <setjmp.h>
#include <stdarg.h>
#include <stdio.h>
//---------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------
// Exceptions raised here are caught in main()
jmp_buf CatchContext;
//---------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------------------------
void BF537_EZKIT_Trace (const char* fmt, ...)
{
va_list args;
va_start (args, fmt);
char msg[512];
vsprintf (msg, fmt, args);
fputs (msg, stdout);
fflush (stdout);
va_end (args);
}
void BF537_EZKIT_Throw (const char* fmt, ...)
{
va_list args;
va_start (args, fmt);
char msg[256];
vsprintf (msg, fmt, args);
BF537_EZKIT_Trace ("\n%s\n", msg);
longjmp (CatchContext, 0xE);
va_end (args);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -