mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-09-23 05:43:38 +08:00
update Port/8051/port_8051.h.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
* @file port_8051.h
|
||||
* @brief 8051 Core Port File
|
||||
* @author 迟凯峰
|
||||
* @version V1.0.0
|
||||
* @date 2025.02.08
|
||||
* @version V1.0.1
|
||||
* @date 2025.02.18
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef __PORT_8051_H
|
||||
@@ -144,8 +144,9 @@ do{ \
|
||||
|
||||
#define mSysTick_Counting \
|
||||
do{ \
|
||||
if(mSysTick_Counter <= tick_temp) break; \
|
||||
s_tick_counter1 += mSysTick_Counter - tick_temp; \
|
||||
m_tick_t temp = mSysTick_Counter; \
|
||||
if(temp <= tick_temp) break; \
|
||||
s_tick_counter1 += temp - tick_temp; \
|
||||
s_tick_counter2++; \
|
||||
}while(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user