Changeset 582a0b8 in mainline for uspace/drv/nic/ne2k/dp8390.c


Ignore:
Timestamp:
2017-05-08T19:20:39Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ne2k/dp8390.c

    r73db198 r582a0b8  
    5959#include <stdio.h>
    6060#include <ddi.h>
     61#include <thread.h>
    6162#include "dp8390.h"
    6263
     
    171172        /* Reset the ethernet card */
    172173        uint8_t val = pio_read_8(ne2k->port + NE2K_RESET);
    173         usleep(2000);
     174        thread_usleep(2000);
    174175        pio_write_8(ne2k->port + NE2K_RESET, val);
    175         usleep(2000);
     176        thread_usleep(2000);
    176177       
    177178        /* Reset the DP8390 */
Note: See TracChangeset for help on using the changeset viewer.