# xmpl_dbg.c - Using the Debug Pin Macros

## Debug Pin Macros Example

    /* $Id: xmpl_dbg.c,v 1.1 2009/01/31 22:03:56 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 */