subsys: usb: use unified kernel API
Change-Id: I3eb70333cbfce17ccf1345a94f0f63148c9a3e7e Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
parent
313700e26f
commit
100e141a25
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
* Driver for USB CDC ACM device class driver
|
||||
*/
|
||||
|
||||
#include <nanokernel.h>
|
||||
#include <kernel.h>
|
||||
#include <init.h>
|
||||
#include <uart.h>
|
||||
#include <string.h>
|
||||
|
@ -747,7 +747,7 @@ static int cdc_acm_send_notification(struct device *dev, uint16_t serial_state)
|
|||
|
||||
/* Wait for notification to be sent */
|
||||
while (!((volatile uint8_t)dev_data->notification_sent)) {
|
||||
sys_thread_busy_wait(1);
|
||||
k_busy_wait(1);
|
||||
|
||||
if (++cnt > CDC_CONTROL_SERIAL_STATE_TIMEOUT_US) {
|
||||
SYS_LOG_DBG("CDC ACM notification timeout!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue