enabled SD card routines in bas again.
SD card detection seems to work.
This commit is contained in:
@@ -104,19 +104,18 @@ void nvram_init(void)
|
|||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
void BaS(void)
|
void BaS(void)
|
||||||
{
|
{
|
||||||
//int az_sectors;
|
int az_sectors;
|
||||||
uint8_t *src;
|
uint8_t *src;
|
||||||
uint8_t *dst = (uint8_t *)TOS;
|
uint8_t *dst = (uint8_t *)TOS;
|
||||||
uint32_t *adr;
|
uint32_t *adr;
|
||||||
|
|
||||||
/*
|
|
||||||
az_sectors = sd_card_init();
|
az_sectors = sd_card_init();
|
||||||
|
|
||||||
if (az_sectors > 0)
|
if (az_sectors > 0)
|
||||||
{
|
{
|
||||||
sd_card_idle();
|
sd_card_idle();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
pic_init();
|
pic_init();
|
||||||
nvram_init();
|
nvram_init();
|
||||||
|
|||||||
@@ -378,15 +378,15 @@ sd_8M:
|
|||||||
sd_ok:
|
sd_ok:
|
||||||
move.l #LONGASC(' ', 'O', 'K', '!'),(a6)
|
move.l #LONGASC(' ', 'O', 'K', '!'),(a6)
|
||||||
move.l #0x0a0d,(a6)
|
move.l #0x0a0d,(a6)
|
||||||
halt
|
//halt
|
||||||
halt
|
//halt
|
||||||
rts
|
rts
|
||||||
// subs ende -------------------------------
|
// subs ende -------------------------------
|
||||||
sd_V1:
|
sd_V1:
|
||||||
move.l #LONGASC('n', 'o', 'n', '!'),(a6)
|
move.l #LONGASC('n', 'o', 'n', '!'),(a6)
|
||||||
move.l #0x0a0d,(a6)
|
move.l #0x0a0d,(a6)
|
||||||
halt
|
//halt
|
||||||
halt
|
//halt
|
||||||
rts
|
rts
|
||||||
sd_error:
|
sd_error:
|
||||||
move.l #LONGASC('E', 'r', 'r', 'o'),(a0)
|
move.l #LONGASC('E', 'r', 'r', 'o'),(a0)
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ void dvi_on(void) {
|
|||||||
/* disable all i2c interrupt routing targets */
|
/* disable all i2c interrupt routing targets */
|
||||||
MCF_I2C_I2ICR = 0x0; //~(MCF_I2C_I2ICR_IE | MCF_I2C_I2ICR_RE | MCF_I2C_I2ICR_TE | MCF_I2C_I2ICR_BNBE);
|
MCF_I2C_I2ICR = 0x0; //~(MCF_I2C_I2ICR_IE | MCF_I2C_I2ICR_RE | MCF_I2C_I2ICR_TE | MCF_I2C_I2ICR_BNBE);
|
||||||
|
|
||||||
/* disable i2c, disable i2c interrupts, slave, recieve, i2c = acknowledge, no repeat start */
|
/* disable i2c, disable i2c interrupts, slave, receive, i2c = acknowledge, no repeat start */
|
||||||
MCF_I2C_I2CR = 0x0;
|
MCF_I2C_I2CR = 0x0;
|
||||||
|
|
||||||
/* repeat start, transmit acknowledge */
|
/* repeat start, transmit acknowledge */
|
||||||
@@ -509,8 +509,8 @@ void dvi_on(void) {
|
|||||||
MCF_I2C_I2CR = MCF_I2C_I2CR_IEN | MCF_I2C_I2CR_MSTA | MCF_I2C_I2CR_MTX;
|
MCF_I2C_I2CR = MCF_I2C_I2CR_IEN | MCF_I2C_I2CR_MSTA | MCF_I2C_I2CR_MTX;
|
||||||
|
|
||||||
MCF_I2C_I2DR = 0x7a; /* send data: address of TFP410 */
|
MCF_I2C_I2DR = 0x7a; /* send data: address of TFP410 */
|
||||||
|
|
||||||
wait_i2c_transfer_finished();
|
wait_i2c_transfer_finished();
|
||||||
|
|
||||||
if (MCF_I2C_I2SR & MCF_I2C_I2SR_RXAK) /* next try if no acknowledge */
|
if (MCF_I2C_I2SR & MCF_I2C_I2SR_RXAK) /* next try if no acknowledge */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user