first milestone reached
This commit is contained in:
9
Code/mcp/Makefile
Normal file
9
Code/mcp/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# MASTER CONTROL PROGY MAKEFILE
|
||||
#
|
||||
|
||||
DEPS = ../common/protocol.o ../common/protocol.h
|
||||
|
||||
mcp: mcp.o $(DEPS) Makefile
|
||||
gcc -Wall -g $< ../common/protocol.o -o $@
|
||||
|
||||
24
Code/mcp/mcp.c
Normal file
24
Code/mcp/mcp.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* MYRYS ROVER
|
||||
* MASTER CONTROL PROGRAM
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include "../common/protocol.h"
|
||||
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
|
||||
fprintf(stderr, "******* hello from Myrys Rover MCP\n");
|
||||
fprintf(stderr, "\tyour pid is %ld\n", (long)getpid());
|
||||
(void)show_the_version(42, "we have the control");
|
||||
|
||||
foo = send_a_ping(0, "wtf bro ?", 42);
|
||||
fprintf(stderr, "\tpong return value is $%06x\n", foo);
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||
Reference in New Issue
Block a user