console: move winstream console to drivers/
This was all done as part of the soc and called from the soc. Define this type of console under drivers/console and use it in the SoCs supporting that via SYS_INIT instead of calling the console code directly. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d038eb5dc7
commit
46af0620b3
8 changed files with 36 additions and 16 deletions
|
@ -22,11 +22,11 @@
|
|||
static struct k_spinlock lock;
|
||||
|
||||
static uint32_t log_format_current = CONFIG_LOG_BACKEND_ADSP_OUTPUT_DEFAULT;
|
||||
void intel_adsp_trace_out(int8_t *str, size_t len);
|
||||
void winstream_console_trace_out(int8_t *str, size_t len);
|
||||
|
||||
static int char_out(uint8_t *data, size_t length, void *ctx)
|
||||
{
|
||||
intel_adsp_trace_out(data, length);
|
||||
winstream_console_trace_out(data, length);
|
||||
|
||||
return length;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue