⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trace.h

📁 realtime RTOS NEW
💻 H
字号:
/*
===============================================================================
| Copyright (C) 2004 RuanHaiShen, All rights reserved.
| SUMMARY: 
|   Macros and prototypes for the tracing system.
|
| DESCRIPTION:
|   See http://www.01s.org for documentation, latest information, license 
|   and contact details.
|   email:ruanhaishen@01s.org
=============================================================================*/
#ifndef __trace_h__
#define __trace_h__
/*===========================================================================*/

#if CFG_DUMP_BUFSZ > 0
void printk(const char *fmt, ...);
#else
# define printk
#endif

#define __ui_writec(s, count)   x86_vga_write(s, count)


#if CFG_DEBUG > 0
# define __TRACE                printk
# define __ASSERT(x) \
do { \
    if (!(x)) { \
        printk("\n%s %s (%d)", "!! ASSERT FAIL:", __FILE__, __LINE__); \
        task_lock(); \
        while(1); \
    } \
} while (0)

#else
# define __TRACE(x)             __MPT
# define __ASSERT(x)            __MPT
#endif


void x86_vga_write(unsigned char *s, int count);
void hardware_init(void);
void halt(void);


/*===========================================================================*/
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -