Ignore:
Timestamp:
Jun 20, 2018, 7:59:22 PM (6 years ago)
Author:
coas-nagasima
Message:

SDカードの挿抜を検知するよう更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/ntshell/fatfs/mmc_rspi.c

    r343 r359  
    201201        ena_int(INTNO_MMC_RSPI_SPII);
    202202
    203         sta_cyc(MMC_RSPI_CYC);
     203        /*sta_cyc(MMC_RSPI_CYC);*/
    204204}
    205205
     
    211211void power_off(void)    /* Disable MMC/SDC interface */
    212212{
    213         stp_cyc(MMC_RSPI_CYC);
     213        /*stp_cyc(MMC_RSPI_CYC);*/
    214214
    215215        dis_int(INTNO_MMC_RSPI_SPRI);
     
    745745        else            /* Socket empty */
    746746                s |= (STA_NODISK | STA_NOINIT);
    747         Stat = s;
     747
     748        if (Stat != s) {
     749                mmc_rspi_status_changed(s);
     750                Stat = s;
     751        }
    748752}
    749753
Note: See TracChangeset for help on using the changeset viewer.