From 097f387bf993ff726ad1d2ed3a31aeee73902d43 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Mon, 11 Jan 2021 20:14:33 +0000 Subject: [PATCH] minor update --- perf_counter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perf_counter.c b/perf_counter.c index 7577260..c200e3f 100644 --- a/perf_counter.c +++ b/perf_counter.c @@ -243,18 +243,18 @@ static __attribute__((always_inline)) int32_t check_systick(void) /*! \note Since we cannot stop counting temporarily, there are several *! conditions which we should take into consideration: - *! Condition 1: when assign nTemp with the register value (LOAD-VAL), + *! Condition 1: when assigning nTemp with the register value (LOAD-VAL), *! the underflow didn't happen but when we check the PENDSTSET bit, *! the underflow happens, for this condition, we should not *! do any compensation. When this happens, the (LOAD-nTemp) is *! smaller than PERF_CNT_COMPENSATION_THRESHOLD (a small value) as *! long as LOAD is bigger than (or equals to) the *! PERF_CNT_COMPENSATION_THRESHOLD; - *! Condition 2: when assign nTemp with the register value (LOAD-VAL), + *! Condition 2: when assigning nTemp with the register value (LOAD-VAL), *! the VAL is zero and underflow happened and the PENDSTSET bit *! is set, for this condition, we should not do any compensation. *! When this happens, the (LOAD-nTemp) is equals to zero. - *! Condition 3: when assign nTemp with the register value (LOAD-VAL), + *! Condition 3: when assigning nTemp with the register value (LOAD-VAL), *! the underflow has already happened, hence the PENDSTSET *! is set, for this condition, we should compensate the return *! value. When this happens, the (LOAD-nTemp) is bigger than (or