/** *jornada_ssp_inout-decideifinputiscommandortradingbyte *@byte:inputbytetosend(maybe%TXDUMMY) * *returns:(jornada_ssp_byte(byte))onsuccess *:%-ETIMEDOUTontimeoutfailure
*/ int jornada_ssp_inout(u8 byte)
{ int ret, i;
/* true means command byte */ if (byte != TXDUMMY) {
ret = jornada_ssp_byte(byte); /* Proper return to commands is TxDummy */ if (ret != TXDUMMY) { for (i = 0; i < 256; i++)/* flushing bus */ if (jornada_ssp_byte(TXDUMMY) == -1) break; return -ETIMEDOUT;
}
} else/* Exchange TxDummy for data */
ret = jornada_ssp_byte(TXDUMMY);
/* all fine */
printk(KERN_INFO "SSP: device initialized\n"); return0;
};
staticvoid jornada_ssp_remove(struct platform_device *dev)
{ /* Note that this doesn't actually remove the driver, since theres nothing to remove
* It just makes sure everything is turned off */
GPSR = GPIO_GPIO25;
ssp_exit();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.