ext: debug: segger: Fix SEGGER header inclusion
Fix issue caused by 3fc497ac9a
This change removes `rtt` and `systemview` from header includes
as these are already placed in the path.
Also `SEGGER_SYSVIEW_ConfDefaults.h` header included from
`SEGGER_SYSVIEW_Int.h` is placed higher to make sure `INLINE`
definition is properly visible.
Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
This commit is contained in:
parent
7c68befb15
commit
e344e5752c
10 changed files with 12 additions and 12 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <misc/printk.h>
|
||||
#include <device.h>
|
||||
#include <init.h>
|
||||
#include <rtt/SEGGER_RTT.h>
|
||||
#include <SEGGER_RTT.h>
|
||||
|
||||
extern void __printk_hook_install(int (*fn)(int));
|
||||
extern void __stdout_hook_install(int (*fn)(int));
|
||||
|
|
|
@ -146,7 +146,7 @@ Additional information:
|
|||
*/
|
||||
|
||||
#include "SEGGER_SYSVIEW_Int.h"
|
||||
#include "rtt/SEGGER_RTT.h"
|
||||
#include "SEGGER_RTT.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -73,7 +73,7 @@ Revision: $Rev: 3734 $
|
|||
*/
|
||||
|
||||
#include "SEGGER_SYSVIEW_Conf.h"
|
||||
#include "rtt/SEGGER_RTT_Conf.h"
|
||||
#include "SEGGER_RTT_Conf.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -71,9 +71,9 @@ Revision: $Rev: 5626 $
|
|||
**********************************************************************
|
||||
*/
|
||||
|
||||
#include "SEGGER_SYSVIEW_ConfDefaults.h"
|
||||
#include "SEGGER_SYSVIEW.h"
|
||||
#include "SEGGER_SYSVIEW_Conf.h"
|
||||
#include "SEGGER_SYSVIEW_ConfDefaults.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef SYSVIEW_ZEPHYR_H
|
||||
#define SYSVIEW_ZEPHYR_H
|
||||
|
||||
#include <systemview/SEGGER_SYSVIEW.h>
|
||||
#include <SEGGER_SYSVIEW.h>
|
||||
|
||||
/* Services provided to SYSVIEW by Zephyr */
|
||||
extern const SEGGER_SYSVIEW_OS_API SYSVIEW_X_OS_TraceAPI;
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#include <kernel.h>
|
||||
#include <init.h>
|
||||
|
||||
#include <systemview/SEGGER_SYSVIEW.h>
|
||||
#include <systemview/Global.h>
|
||||
#include <SEGGER_SYSVIEW.h>
|
||||
#include <Global.h>
|
||||
#include "SEGGER_SYSVIEW_Zephyr.h"
|
||||
|
||||
#ifndef CONFIG_SMP
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#include <kernel_structs.h>
|
||||
#include <init.h>
|
||||
|
||||
#include <systemview/SEGGER_SYSVIEW.h>
|
||||
#include <systemview/Global.h>
|
||||
#include <SEGGER_SYSVIEW.h>
|
||||
#include <Global.h>
|
||||
#include "SEGGER_SYSVIEW_Zephyr.h"
|
||||
|
||||
static u32_t interrupt;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <systemview/SEGGER_SYSVIEW.h>
|
||||
#include <SEGGER_SYSVIEW.h>
|
||||
#include "SEGGER_SYSVIEW_Zephyr.h"
|
||||
|
||||
static void _cbSendSystemDesc(void)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <logging/log_core.h>
|
||||
#include <logging/log_msg.h>
|
||||
#include <logging/log_output.h>
|
||||
#include <rtt/SEGGER_RTT.h>
|
||||
#include <SEGGER_RTT.h>
|
||||
|
||||
#define DROP_MAX 99
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <shell/shell_rtt.h>
|
||||
#include <init.h>
|
||||
#include <rtt/SEGGER_RTT.h>
|
||||
#include <SEGGER_RTT.h>
|
||||
#include <logging/log.h>
|
||||
|
||||
SHELL_RTT_DEFINE(shell_transport_rtt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue