Changeset bf0398c in mainline


Ignore:
Timestamp:
2018-01-28T14:38:23Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89c7d7d
Parents:
80f7c54
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-28 14:38:12)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-28 14:38:23)
Message:

usbdiag: endianity is resolved at runtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbdiag/tests.c

    r80f7c54 rbf0398c  
    140140}
    141141
    142 static const uint32_t test_data = uint32_host2usb(0xDEADBEEF);
     142static const uint32_t test_data_src = 0xDEADBEEF;
    143143
    144144static int data_in_test(usb_pipe_t *pipe, int cycles, size_t size, usbdiag_dur_t *duration)
     
    146146        if (!pipe)
    147147                return EBADMEM;
     148
     149        const uint32_t test_data = uint32_host2usb(test_data_src);
    148150
    149151        if (size % sizeof(test_data))
     
    218220                return EBADMEM;
    219221
     222        const uint32_t test_data = uint32_host2usb(test_data_src);
     223
    220224        if (size % sizeof(test_data))
    221225                return EINVAL;
Note: See TracChangeset for help on using the changeset viewer.