simple_c_function.c 593 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/* Functions to be filled by the user (never overwritten by buildsupport tool) */

#include "simple_c_function.h"
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>

void myhandler ();

void simple_c_function_startup()
{
	/* Write your initialization code here,
	   but do not make any call to a required interface!! */
	printf ("[Startup] Expected output: \"Hello, world...\" every 2 seconds\n");
	(void) signal (SIGINT, myhandler);
}

void myhandler ()
{
    printf ("Ctrl-C hit!\n");
    exit (0);
}

void simple_c_function_PI_cyclic_operation()
{
	printf ("Hello, world...\n");
}