simplified TOS copy according to dip switch setting
This commit is contained in:
@@ -78,11 +78,9 @@ void BaS(void)
|
||||
sd_card_idle();
|
||||
}
|
||||
|
||||
/* copy tos */
|
||||
if (DIP_SWITCH & (1 << 6))
|
||||
{
|
||||
goto copy_firetos;
|
||||
}
|
||||
|
||||
MCF_PSC3_PSCTB_8BIT = 'ACPF';
|
||||
wait_10ms();
|
||||
|
||||
@@ -94,9 +92,14 @@ void BaS(void)
|
||||
MCF_PSC0_PSCTB_8BIT = 0x0d0a;
|
||||
MCF_PSC3_PSCTB_8BIT = 0x01; /* request RTC data */
|
||||
|
||||
/* copy tos */
|
||||
if (DIP_SWITCH & (1 << 6))
|
||||
if (MCF_PSC3_PSCRB_8BIT == 0x81)
|
||||
{
|
||||
for (i = 0; i < 64; i++)
|
||||
{
|
||||
* (uint8_t *) 0xffff8963 = MCF_PSC3_PSCRB_8BIT; /* TODO: what are we doing here ? */
|
||||
}
|
||||
}
|
||||
|
||||
/* copy EMUTOS */
|
||||
src = (uint8_t *) 0xe0600000L;
|
||||
while (src < (uint8_t *) 0xe0700000L)
|
||||
@@ -106,7 +109,6 @@ void BaS(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
copy_firetos:
|
||||
/* copy FireTOS */
|
||||
src = (uint8_t *) 0xe0400000L;
|
||||
while (src < (uint8_t *) 0xe0500000L)
|
||||
@@ -115,17 +117,6 @@ copy_firetos:
|
||||
}
|
||||
}
|
||||
|
||||
if (!(DIP_SWITCH & (1 << 6))) /* switch #6 on ? */
|
||||
{
|
||||
if (MCF_PSC3_PSCRB_8BIT == 0x81)
|
||||
{
|
||||
for (i = 0; i < 64; i++)
|
||||
{
|
||||
* (uint8_t *) 0xffff8963 = MCF_PSC3_PSCRB_8BIT; /* TODO: what are we doing here ? */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _NOT_USED_
|
||||
/*
|
||||
* set the NVRAM checksum as invalid
|
||||
|
||||
Reference in New Issue
Block a user