eth: Initial release to tx semaphore for the ENC28J60 driver.

There is a tx semaphore that controls a single access to the
transmission service. The device is capable to manage a single
transmission call at a time. Multiple requests need to wait
for the resource to be free.

This commit adds the initial release to the tx semaphore.

Jira: ZEP-895

Change-Id: Ic9879cfd15bb1494644b2cf0f4565f7e6a2c1c22
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
This commit is contained in:
Juan Manuel Cruz 2016-09-08 11:41:21 -05:00 committed by Anas Nashif
parent 8da0bad30a
commit bb4c1bd82a

View file

@ -451,6 +451,7 @@ static int eth_enc28j60_init(struct device *dev)
/* Initialize semaphores */
nano_sem_init(&context->tx_sem);
nano_sem_init(&context->int_sem);
nano_sem_give(&context->tx_sem);
/* Start interruption-poll fiber */
fiber_start(context->fiber_stack, ENC28J60_FIBER_STACK_SIZE,