xmpl_dbg.c - Using the Debug Pin Macros

Debug Pin Macros Example

/* $Id: pgXmplDbg.html,v 1.1.1.4 2013/04/09 21:12:04 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 Tue Apr 9 2013 by  doxygen 1.7.1