OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [common/] [common.c] - Diff between revs 406 and 464

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 406 Rev 464
Line 35... Line 35...
                break;
                break;
#endif
#endif
        case CT_SIM:
        case CT_SIM:
                __printf("%c", c);
                __printf("%c", c);
                break;
                break;
 
        default:
 
                break;
        }
        }
}
}
 
 
int getc()
int getc()
{
{
Line 332... Line 334...
void mon_init(void)
void mon_init(void)
{
{
        /* Set defaults */
        /* Set defaults */
        global.erase_method = 2;        /* as needed */
        global.erase_method = 2;        /* as needed */
        global.src_addr = (unsigned long)&_src_addr;
        global.src_addr = (unsigned long)&_src_addr;
 
#ifdef FLASH_BASE_ADDR
        global.dst_addr = FLASH_BASE_ADDR;
        global.dst_addr = FLASH_BASE_ADDR;
 
#else
 
        global.dst_addr = 0;
 
#endif
        global.eth_add[0] = ETH_MACADDR0;
        global.eth_add[0] = ETH_MACADDR0;
        global.eth_add[1] = ETH_MACADDR1;
        global.eth_add[1] = ETH_MACADDR1;
        global.eth_add[2] = ETH_MACADDR2;
        global.eth_add[2] = ETH_MACADDR2;
        global.eth_add[3] = ETH_MACADDR3;
        global.eth_add[3] = ETH_MACADDR3;
        global.eth_add[4] = ETH_MACADDR4;
        global.eth_add[4] = ETH_MACADDR4;
Line 399... Line 405...
/* Main shell loop */
/* Main shell loop */
int main(int argc, char **argv)
int main(int argc, char **argv)
{
{
        extern unsigned long calc_mycrc32(void);
        extern unsigned long calc_mycrc32(void);
 
 
#if 0
#if SELF_CHECK
        extern unsigned long mycrc32, mysize;
        extern unsigned long mycrc32, mysize;
#endif
#endif
 
 
        timestamp = 0;           // clear timer counter
        timestamp = 0;           // clear timer counter
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.