Skip to content

Commit 1e99480

Browse files
committed
fix ci with usbh and unit test
1 parent 96d2be9 commit 1e99480

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/host/usbh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,9 @@ bool tuh_control_xfer (tuh_xfer_t* xfer)
578578

579579
TU_ATTR_ALWAYS_INLINE static inline void _set_control_xfer_stage(uint8_t stage)
580580
{
581-
osal_mutex_lock(_usbh_mutex, OSAL_TIMEOUT_WAIT_FOREVER);
581+
(void) osal_mutex_lock(_usbh_mutex, OSAL_TIMEOUT_WAIT_FOREVER);
582582
_ctrl_xfer.stage = stage;
583-
osal_mutex_unlock(_usbh_mutex);
583+
(void) osal_mutex_unlock(_usbh_mutex);
584584
}
585585

586586
static void _xfer_complete(uint8_t daddr, xfer_result_t result)

test/unit-test/test/device/msc/test_msc_device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "unity.h"
2929

3030
// Files to test
31+
#include "osal/osal.h"
3132
#include "tusb_fifo.h"
3233
#include "tusb.h"
3334
#include "usbd.h"

test/unit-test/test/device/usbd/test_usbd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "unity.h"
2626

2727
// Files to test
28+
#include "osal/osal.h"
2829
#include "tusb_fifo.h"
2930
#include "tusb.h"
3031
#include "usbd.h"

test/unit-test/test/test_fifo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
#include <string.h>
2828
#include "unity.h"
29+
30+
#include "osal/osal.h"
2931
#include "tusb_fifo.h"
3032

3133
#define FIFO_SIZE 10
@@ -315,4 +317,4 @@ void test_rd_idx_wrap()
315317
n = tu_fifo_read_n(&ff10, dst, 4);
316318
TEST_ASSERT_EQUAL(n, 2);
317319
TEST_ASSERT_EQUAL(ff10.rd_idx, 6);
318-
}
320+
}

0 commit comments

Comments
 (0)