Skip to content

Commit 3000140

Browse files
爲imxrt系列添加usb host驅動 (#4377)
* adding fsl_os_abstraction porting * port usbh to imxrt Co-authored-by: guo <[email protected]>
1 parent 2f6f9da commit 3000140

22 files changed

+6069
-1759
lines changed

bsp/imxrt/libraries/MIMXRT1050/MIMXRT1052/drivers/fsl_os_abstraction.h

Lines changed: 812 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*!
2+
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3+
* Copyright 2016-2018 NXP
4+
*
5+
*
6+
* SPDX-License-Identifier: BSD-3-Clause
7+
*/
8+
9+
#ifndef _FSL_OS_ABSTRACTION_CONFIG_H_
10+
#define _FSL_OS_ABSTRACTION_CONFIG_H_
11+
12+
#ifndef gMainThreadStackSize_c
13+
#define gMainThreadStackSize_c 1024
14+
#endif
15+
16+
#ifndef gMainThreadPriority_c
17+
#define gMainThreadPriority_c 1
18+
#endif
19+
20+
#ifndef gTaskMultipleInstancesManagement_c
21+
#define gTaskMultipleInstancesManagement_c 0
22+
#endif
23+
24+
/*! @brief Definition to determine whether enable OSA's TASK module. */
25+
#ifndef OSA_USED
26+
#ifndef FSL_OSA_TASK_ENABLE
27+
#define FSL_OSA_TASK_ENABLE 0U
28+
#endif
29+
#else
30+
#if defined(FSL_OSA_TASK_ENABLE)
31+
#undef FSL_OSA_TASK_ENABLE
32+
#endif
33+
#define FSL_OSA_TASK_ENABLE 1U
34+
#endif /* OSA_USED */
35+
36+
#endif /* _FSL_OS_ABSTRACTION_CONFIG_H_ */

0 commit comments

Comments
 (0)