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