[riot-notifications] [RIOT] drivers/cc2420: initial netdev port for cc2420 (#3915)
Hauke Petersen
notifications at github.com
Wed Sep 23 10:29:50 CEST 2015
> + return 0;
> + }
> + cc2420_tx_prepare(dev);
> + cc2420_tx_load(dev, data, len);
> + cc2420_tx_exec(dev);
> + return len;
> +}
> +
> +void cc2420_tx_prepare(cc2420_t *dev)
> +{
> + /* make sure ongoing transmissions are finished */
> + while (cc2420_get_state(dev) & CC2420_STATE_TX_BUSY);
> +
> + cc2420_strobe(dev, CC2420_STROBE_FLUSHTX);
> +
> + cc2420_set_state(dev, CC2420_STATE_TX_PREP);
you can drop this - it does nothing.
---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3915/files#r40180181
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150923/8fd76c81/attachment.html>
More information about the notifications
mailing list