Hardware Abstraction Layer for FreeRTOS
remoteproc_trace.h
Go to the documentation of this file.
1
#ifndef REMOTEPROC_TRACE_H_
2
#define REMOTEPROC_TRACE_H_
3
#include <
uart.h
>
4
struct
uart
{
5
struct
uart_generic
gen
;
6
uint8_t *
base
;
7
uint32_t
len
;
8
uint8_t *
pos
;
9
};
11
#define UART_PRV
12
#include <
uart_prv.h
>
13
extern
const
struct
uart_ops remoteproc_uart_ops;
15
#define REMOTEPROC_TRACE_ADDDEV(id, buffer, l) \
16
struct uart remoteproc_trace_##id = { \
17
UART_INIT_DEV(remoteproc) \
18
HAL_NAME("Remoteproc Trace " #id) \
19
.base = buffer, \
20
.len = l, \
21
.pos = buffer, \
22
}; \
23
UART_ADDDEV(remoteproc, remoteproc_trace_##id)
24
HAL_DEFINE_GLOBAL_ARRAY
(
uart
);
25
#define REMOTEPROC_TRACE_ID(id) HAL_GET_ID(uart, remoteproc, remoteproc_trace_##id)
26
#endif
uart_generic
Definition:
uart.h:60
uart_prv.h
HAL_DEFINE_GLOBAL_ARRAY
HAL_DEFINE_GLOBAL_ARRAY(uart)
uart.h
uart::pos
uint8_t * pos
Definition:
remoteproc_trace.h:8
uart
Definition:
remoteproc_trace.h:4
uart::len
uint32_t len
Definition:
remoteproc_trace.h:7
uart::gen
struct uart_generic gen
Definition:
remoteproc_trace.h:5
uart::base
uint8_t * base
Definition:
remoteproc_trace.h:6
driver
include
remoteproc_trace.h
Generated on Tue Aug 17 2021 15:19:23 for Hardware Abstraction Layer for FreeRTOS by
1.8.20