File: hellointr.c

package info (click to toggle)
libspe2 2.2.80-95-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 940 kB
  • ctags: 1,214
  • sloc: ansic: 9,316; makefile: 551; ada: 448; sh: 24
file content (15 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <spu_mfcio.h>
main()
{
	unsigned int data;
	printf("Spu says hello!\n");

	data = 24;
	spu_write_out_intr_mbox(data);
	while (spu_stat_out_intr_mbox() == 0) {
		printf(">> %d\n", spu_stat_out_intr_mbox());
	}

	return 42;
}