Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Raspberry Pi ACT LED



Yep - what´s the problem?

2015-04-21 13:56 GMT+02:00 Sujit K M <sjt.kar%gmail.com@localhost>:
>> bcm_dmac_transfer(sc->sc_dmac);
>> LED_ON();
>>    while (sc->sc_state == EMMC_DMA_STATE_BUSY) {
>>    error = cv_timedwait(&sc->sc_cv, &sc->sc_lock, hz * 10);
>>    if (error == EWOULDBLOCK) {
>>    device_printf(sc->sc.sc_dev, "transfer timeout!\n");
>>    bcm_dmac_halt(sc->sc_dmac);
>>    sc->sc_state = EMMC_DMA_STATE_IDLE;
>>    error = ETIMEDOUT;
>>    break;
>>    }
>> }
>> LED_OFF();
>> mutex_exit(&sc->sc_lock);
>
> I hope you know C Language. Here an LED_ON() and LED_OFF() is being
> called during the datatransfer.


Home | Main Index | Thread Index | Old Index