cxtson.c
来自「上传一个带源代码的嵌入式实时多任务操作系统CMX」· C语言 代码 · 共 31 行
C
31 行
/*********************************************************
Copyright (c) CMX Company. 1999. All rights reserved
*********************************************************/
/* version 5.30 */
#define CMXMODULE 1
#include <cxfuncs.h> /* get cmx include header file */
#include <cxextern.h> /* get cmx include header file */
#if (defined(CMXTRACKER) || defined(WINTRACKER))
#include <cmxtrack.h> /* get cmx include header file */
#endif
void K_OS_Slice_On(void)
{
#if (defined(CMXTRACKER) || defined(WINTRACKER))
if (CMXTRACKER_ON)
{
cmxtracker_in1(ENABLE_SLICE_CALL);
}
#endif
SLICE_ON = 1; /* enable time slicing */
tslice_count = TSLICE_SCALE; /* load the time slice counter,
with the scale dictated by user in confiquration module. */
SLICE_ENABLE; /* inform CMX that time slicing is now active. */
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?