1*093ff704Suwe /* $NetBSD: debug.h,v 1.5 2010/08/09 23:08:59 uwe Exp $ */ 27d170993Such 37d170993Such /*- 47d170993Such * Copyright (c) 1999-2002 The NetBSD Foundation, Inc. 57d170993Such * All rights reserved. 67d170993Such * 77d170993Such * This code is derived from software contributed to The NetBSD Foundation 87d170993Such * by UCHIYAMA Yasushi. 97d170993Such * 107d170993Such * Redistribution and use in source and binary forms, with or without 117d170993Such * modification, are permitted provided that the following conditions 127d170993Such * are met: 137d170993Such * 1. Redistributions of source code must retain the above copyright 147d170993Such * notice, this list of conditions and the following disclaimer. 157d170993Such * 2. Redistributions in binary form must reproduce the above copyright 167d170993Such * notice, this list of conditions and the following disclaimer in the 177d170993Such * documentation and/or other materials provided with the distribution. 187d170993Such * 197d170993Such * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 207d170993Such * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 217d170993Such * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 227d170993Such * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 237d170993Such * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 247d170993Such * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 257d170993Such * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 267d170993Such * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 277d170993Such * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 287d170993Such * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 297d170993Such * POSSIBILITY OF SUCH DAMAGE. 307d170993Such */ 317d170993Such 327d170993Such #define USE_HPC_DPRINTF 337d170993Such #define __DPRINTF_EXT 347d170993Such #include <hpc/include/debug.h> 357d170993Such 36c24ff443Such #include "debug_hpc.h" 37*093ff704Suwe 387d170993Such /* 397d170993Such * interrupt monitor 407d170993Such */ 41c24ff443Such #ifdef HPC_DEBUG_INTERRUPT_MONITOR 427d170993Such enum heart_beat { 43c0a13ed2Such HEART_BEAT_BLACK = 0, 447d170993Such HEART_BEAT_RED, 45c0a13ed2Such HEART_BEAT_GREEN, 46c0a13ed2Such HEART_BEAT_YELLOW, 47c0a13ed2Such HEART_BEAT_BLUE, 48c0a13ed2Such HEART_BEAT_MAGENTA, 49c0a13ed2Such HEART_BEAT_CYAN, 507d170993Such HEART_BEAT_WHITE, 517d170993Such }; 527d170993Such void __dbg_heart_beat(enum heart_beat); 537d170993Such #else 54*093ff704Suwe #define __dbg_heart_beat(x) do {} while (/* CONSTCOND */ 0) 55*093ff704Suwe #endif 56