diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demos/n00bdemo/logo.c | 4 | ||||
| -rw-r--r-- | examples/demos/n00bdemo/main.c | 5 | ||||
| -rw-r--r-- | examples/io/pads/spi.c | 1 | ||||
| -rw-r--r-- | examples/io/pads/spi.h | 1 |
4 files changed, 7 insertions, 4 deletions
diff --git a/examples/demos/n00bdemo/logo.c b/examples/demos/n00bdemo/logo.c index 40160e7..784c9e1 100644 --- a/examples/demos/n00bdemo/logo.c +++ b/examples/demos/n00bdemo/logo.c @@ -51,9 +51,11 @@ typedef struct { int size; } NODE; +extern NODE _end[]; + void DumpHeap() { - NODE *n = (NODE*)GetBSSend(); + NODE *n = _end; printf( "--\n" ); diff --git a/examples/demos/n00bdemo/main.c b/examples/demos/n00bdemo/main.c index cb64c42..439bccc 100644 --- a/examples/demos/n00bdemo/main.c +++ b/examples/demos/n00bdemo/main.c @@ -232,12 +232,11 @@ void unpackModels() { } void init() { + // Init display + initDisplay(); #ifdef SYSTEM_573_SUPPORT system573Setup(); #endif - - // Init display - initDisplay(); FntLoad( 960, 0 ); diff --git a/examples/io/pads/spi.c b/examples/io/pads/spi.c index 43b5bc3..133782c 100644 --- a/examples/io/pads/spi.c +++ b/examples/io/pads/spi.c @@ -27,6 +27,7 @@ */ #include <stdint.h> +#include <stddef.h> #include <string.h> #include <stdlib.h> #include <psxetc.h> diff --git a/examples/io/pads/spi.h b/examples/io/pads/spi.h index 7d4d75b..8c17df3 100644 --- a/examples/io/pads/spi.h +++ b/examples/io/pads/spi.h @@ -7,6 +7,7 @@ #define __SPI_H #include <stdint.h> +#include <stddef.h> #include <psxpad.h> // Maximum request/response length (34 bytes for pads, 140 for memory cards). |
