spinn_common 7.1.1
Support code for SpiNNaker applications.
Loading...
Searching...
No Matches
Macros | Functions
spin-print.h File Reference

For quick changing between host-side and SpiNNaker side C code printing. More...

#include "sark.h"
#include "spin1_api.h"

Go to the source code of this file.

Macros

#define malloc   spin1_malloc
 This function is used to mimic malloc on SpiNNaker.
 
#define srandom   spin1_srand
 This function is used to mimic srandom on SpiNNaker.
 
#define random   spin1_rand
 This function is used to mimic random on SpiNNaker.
 
#define fprintf   io_printf
 This function is used to mimic fprintf on SpiNNaker.
 
#define stdout   IO_BUF
 This value is used to mimic stdout on SpiNNaker.
 
#define stderr   IO_BUF
 This value is used to mimic stderr on SpiNNaker.
 
#define printf(s, ...)    do { io_printf(IO_BUF, s, ##__VA_ARGS__); } while (0)
 This function is used to mimic printf on SpiNNaker.
 
#define putchar(c)    do { io_printf(IO_BUF, "%c", c); } while (0)
 This function is used to mimic putchar on SpiNNaker.
 
#define exit(n)    do { spin1_exit(n); } while (0)
 This function is used to mimic exit on SpiNNaker.
 

Functions

static void skip (void)
 This function is used to represent doing nothing.
 

Detailed Description

For quick changing between host-side and SpiNNaker side C code printing.

Author
Dave Lester (david.nosp@m..r.l.nosp@m.ester.nosp@m.@man.nosp@m.chest.nosp@m.er.a.nosp@m.c.uk)
Date
29 July, 2013

HISTORY