1,5 → 1,6 |
/* |
* Copyright (c) 2007 Michal Kebrt |
* Copyright (c) 2009 Vineeth Pillai |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
31,7 → 32,7 |
* @{ |
*/ |
/** @file |
* @brief GXemul specific code. |
* @brief bootloader output logic |
*/ |
|
|
39,9 → 40,15 |
|
|
/** Address where characters to be printed are expected. */ |
#ifdef MACHINE_GXEMUL_TESTARM |
#define PUTC_ADDRESS 0x10000000 |
#endif |
#ifdef MACHINE_ICP |
#define PUTC_ADDRESS 0x16000000 |
#endif |
|
|
|
/** Prints a character to the console. |
* |
* @param ch Character to be printed. |
48,6 → 55,8 |
*/ |
static void putc(char ch) |
{ |
if (ch == '\n') |
*((volatile char *) PUTC_ADDRESS) = '\r'; |
*((volatile char *) PUTC_ADDRESS) = ch; |
} |
|
Property changes: |
Added: svn:mergeinfo |