Esempio n. 1
0
int main(int argc, char** argv) {

	// Initialize A20 or BCM2835
	InitializePi();
			  
	TestPi();

	TestSpi();
	
	// Initialize GPIO
	//InitializeGpio();


/*
	InOut *io1 = NewInput(Pins.PIN12);
	int x = io1->value;

	Test();
*/
/*
	return (EXIT_SUCCESS);
	RegisterTest();
	return (EXIT_SUCCESS);
*/
}
/*
 * Application's entry point
 */
int main(void)
{
    /* Stop WDT and initialize the system-clock of the MCU
       These functions needs to be implemented in PAL */
    StopWDT();
    Init_Clk();

    /* initialize the Application Uart interface */
    CLI_Configure();

    TestSpi();

    return 0;
}