# xmpl_dbg.c - Using the Debug Pin Macros

## Debug Pin Macros Example

    /* $Id$ */
    /* 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 */