1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

style(core): systemview reformat

This commit is contained in:
Ondrej Mikle 2020-12-11 17:03:02 +01:00 committed by Pavol Rusnak
parent 550216354b
commit 9411756c42

View File

@ -1,16 +1,16 @@
#ifdef SYSTEM_VIEW
#include "systemview.h"
#include <stdint.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "mpconfigport.h"
#include "SEGGER_SYSVIEW.h"
#include "SEGGER_SYSVIEW_Conf.h"
#define SYSTICK ((SYSTICK_REGS*)0xE000E010)
#define SCS ((SCS_REGS*)0xE000ED00)
#define SYSTICK ((SYSTICK_REGS *)0xE000E010)
#define SCS ((SCS_REGS *)0xE000ED00)
// for storing DWT CYCCNT from SVC call
volatile uint32_t cyccnt_cycles;
@ -66,7 +66,7 @@ uint32_t svc_get_dwt_cyccnt() {
}
U32 SEGGER_SYSVIEW_X_GetInterruptId() {
return ((*(U32*)(0xE000ED04)) & 0x1FF);
return ((*(U32 *)(0xE000ED04)) & 0x1FF);
}
void enable_systemview() {