Wednesday, August 14, 2013

core_test.c

/*
 **********************************************************************
 *name:         core_test.c
 *author:       Samuel Igwe
 *date:         08/12/2013
 *description:  Igbo Embedded core_test.c source. goal is to test out 
 *              initialization
 *              uart
 *              systick timer
 *              interrupts
 *              tclib library
 *              all in preparation for usb "device" development
 **********************************************************************
 */
#include        "IE_tclib.h"
#include        "IE_stm32.h"





int     main()
{
volatile unsigned int wdTemp;

stm32_init();

wdTemp = stm32_get_seconds();
while(1)
        {
        while(wdTemp == stm32_get_seconds())
                ;


        tclib_printf("\r%d", wdTemp);
        wdTemp = stm32_get_seconds();
        }

return 0;
}






No comments:

Post a Comment