xmpl_dbg.c - Using the Debug Pin Macros

Debug Pin Macros Example

/* $Id: pgXmplDbg.html,v 1.1.1.1 2010/01/21 21:36:59 awachtler Exp $ */
/* Example for use of the DBG_XXX macros */

#include "board.h"
#include "xmpl.h"


int main(void)
{
    DBG_INIT();
    /* the debug port pin should now have the level 0 */
    
    DBG_SET();
    /* the debug port pin should now have the level 1 */

    DBG_CLR();
    /* the debug port pin should now have again the level 0 */

    while(1)
    {
        DBG_TOGGLE();
        DELAY_MS(10);
        /* now 1-0-1 sequence should be observed with a period of 10ms */
    }
}
/* EOF */

This documentation for µracoli was generated on 21 Jan 2010 by  doxygen 1.5.5