File: readmbox.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 (21 lines) | stat: -rw-r--r-- 471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* --------------------------------------------------------------- */
/* (C) Copyright 2007  					           */
/* International Business Machines Corporation,			   */
/*								   */
/* All Rights Reserved.						   */
/* --------------------------------------------------------------- */

#include <stdio.h>
#include <spu_mfcio.h>

main()
{
	unsigned int data = 0;

	while (data != 8) {
		data = spu_read_in_mbox();
		printf("SPE received %d\n", data);
	}

	return 0;
}