//----------------------------------------------------------------------------------
// <copyright file="spidebug.h" company="LiquidRobotics">
//	Copyright (c) Liquid Robotics Corporation.  All rights reserved.
// </copyright>
//
// <summary>
// 	Header file for SPIDEBUG.C, functions to report debug info thru the SPI port
// </summary>
//
// <owner>Mike Cookson</owner>
//---------------------------------------------------------------------------------

#ifndef __SPIDEBUG_H__
# define __SPIDEBUG_H__

# ifndef SPIDEBUG_ENABLED
#   define SPIDEBUG_ENABLED (0)				// non-zero enables code generation
# endif
# ifndef SPIDEBUG_REPORT_PRIO_ENABLE
#   define SPIDEBUG_REPORT_PRIO_ENABLE (1)	// non-zero enables priority reporting on SPI
# endif

# if (SPIDEBUG_ENABLED != 0) && (SPIDEBUG_REPORT_PRIO_ENABLE != 0)
#   define SPIDEBUG_REPORT_PRIO(prio) OSspiReportPrio(prio)
# else
#   define SPIDEBUG_REPORT_PRIO(prio) do { } while(0)
# endif

// Function Prototypes

extern void OSspiDebugInit(void);
extern void OSspiReportPrio(uint8_t prio);

#endif
