zephyr/samples/boards/intel_s1000_crb/audio/src/framework.c
Peter Bigot 45f126f871 coccinelle: re-run timeout conversion semantic patch
This fixes a variety of K_THREAD_DEFINE issues that were missed.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-04-15 08:28:57 -05:00

33 lines
679 B
C

/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_LEVEL LOG_LEVEL_INF
#include <logging/log.h>
LOG_MODULE_REGISTER(framework);
#include <zephyr.h>
#include "audio_core.h"
extern int tun_drv_packet_handler(void);
static int framework_background_thread(void);
K_THREAD_DEFINE(framework_bg_thread_id, FRAMEWORK_BG_THREAD_STACK_SIZE,
framework_background_thread, NULL, NULL, NULL,
FRAMEWORK_BG_THREAD_PRIORITY, 0, 0);
static int framework_background_thread(void)
{
LOG_INF("Starting framework background thread ...");
while (true) {
tun_drv_packet_handler();
audio_core_process_background_tasks();
}
return 0;
}