From 77cc62644de045a234bd175fcc80c5cb647c3b64 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 5 Nov 2017 18:02:47 +0100 Subject: [PATCH] firmware: don't return CYCCNT contents as it is always zero anyway (cycle counter is disabled) --- embed/firmware/mphalport.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/embed/firmware/mphalport.h b/embed/firmware/mphalport.h index c172fa5d1..57b4b45aa 100644 --- a/embed/firmware/mphalport.h +++ b/embed/firmware/mphalport.h @@ -1,9 +1,8 @@ -#include STM32_HAL_H #include "lib/utils/interrupt_char.h" static inline mp_uint_t mp_hal_ticks_cpu(void) { - return DWT->CYCCNT; + return 0; } void mp_hal_set_vcp_iface(int iface_num);