コード例 #1
0
ファイル: main_loopback_test.c プロジェクト: dsk7/ardrone
int main()
{
    int fd=openSerialPort();


    for(int i=0; i<100; i++) testLoopback(fd,i);


    close(fd);


    return 0;
}
コード例 #2
0
ファイル: ionrtems.c プロジェクト: NASAHackTO/ion-dtn
rtems_task	Init(rtems_task_argument ignored)
{
	puts("Inside Init(), creating configuration files.");
	createIonConfigFiles();
	puts("Inside Init(), spawning ION startup tasks.");
	if (startDTN() < 0)
	{
		writeMemo("[?] Can't start ION.");
	}

	testLoopback();
	snooze(1);
	puts("Stopping ION.");
	oK(stopDTN(0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
	puts("ION stopped.");
	exit(0);
}