UCOS_TI_LM3S_Keil
 全部 结构体 文件 函数 变量 类型定义 宏定义 
cpu_core.h 文件参考
#include <cpu.h>
#include <lib_def.h>
#include <cpu_cfg.h>
#include <lib_mem.h>
#include <lib_str.h>
cpu_core.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define CPU_CORE_VERSION   123u /* See Note #1. */
 
#define CPU_CORE_EXT   extern
 
#define CPU_CFG_TS_TMR_EN   DEF_ENABLED
 
#define CPU_TIME_MEAS_NBR_MIN   1
 
#define CPU_TIME_MEAS_NBR_MAX   128
 
#define CPU_ERR_NONE   0
 
#define CPU_ERR_NULL_PTR   10
 
#define CPU_ERR_NAME_SIZE   100
 

类型定义

typedef CPU_INT16U CPU_ERR
 
typedef CPU_INT32U CPU_TS
 

函数

void CPU_Init (void)
 
void CPU_TS_Get (CPU_TS *p_ts_lo, CPU_TS *p_ts_hi)
 
CPU_TS CPU_TS_GetLo (void)
 
void CPU_TS_Update (void)
 
CPU_INT16U CPU_TS_TmrInit (void)
 
CPU_TS CPU_TS_TmrRd (void)
 
void CPU_TS_to_uSec (CPU_TS ts_lo_cnts, CPU_TS ts_hi_cnts, CPU_INT32U *p_ts_lo_usec, CPU_INT32U *p_ts_hi_usec)
 

变量

CPU_CORE_EXT CPU_INT16U CPU_TS_TmrNbrShifts
 
CPU_CORE_EXT CPU_TS CPU_TS_Lo
 
CPU_CORE_EXT CPU_TS CPU_TS_Hi
 
CPU_CORE_EXT CPU_TS CPU_TS_Prev
 

宏定义说明

#define CPU_CORE_VERSION   123u /* See Note #1. */

在文件 cpu_core.h71 行定义.

#define CPU_CORE_EXT   extern

在文件 cpu_core.h83 行定义.

#define CPU_CFG_TS_TMR_EN   DEF_ENABLED

在文件 cpu_core.h120 行定义.

#define CPU_TIME_MEAS_NBR_MIN   1

在文件 cpu_core.h132 行定义.

#define CPU_TIME_MEAS_NBR_MAX   128

在文件 cpu_core.h133 行定义.

#define CPU_ERR_NONE   0

在文件 cpu_core.h142 行定义.

#define CPU_ERR_NULL_PTR   10

在文件 cpu_core.h143 行定义.

#define CPU_ERR_NAME_SIZE   100

在文件 cpu_core.h145 行定义.

类型定义说明

在文件 cpu_core.h161 行定义.

typedef CPU_INT32U CPU_TS

在文件 cpu_core.h170 行定义.

函数说明

void CPU_Init ( void  )

在文件 cpu_core.c197 行定义.

参考 CPU_TS_Init().

参考自 main().

198 {
199  /* --------------------- INIT TS ---------------------- */
200 #if ((CPU_CFG_TS_TMR_EN == DEF_ENABLED) || \
201  (CPU_CFG_TS_EN == DEF_ENABLED))
202  CPU_TS_Init(); /* See Note #3a. */
203 #endif
204  /* -------------- INIT INT DIS TIME MEAS -------------- */
205 #ifdef CPU_CFG_INT_DIS_MEAS_EN
206  CPU_IntDisMeasInit(); /* See Note #3b. */
207 #endif
208 
209  /* ------------------ INIT CPU NAME ------------------- */
210 #if (CPU_CFG_NAME_EN == DEF_ENABLED)
211  CPU_NameInit();
212 #endif
213 }

函数调用图:

这是这个函数的调用关系图:

void CPU_TS_Get ( CPU_TS p_ts_lo,
CPU_TS p_ts_hi 
)

在文件 cpu_core.c409 行定义.

参考 CPU_TS_UpdateHandler().

411 {
412  CPU_TS_UpdateHandler(p_ts_lo, p_ts_hi);
413 }

函数调用图:

CPU_TS CPU_TS_GetLo ( void  )

在文件 cpu_core.c463 行定义.

参考 CPU_TS_UpdateHandler().

464 {
465  CPU_TS ts_lo;
466 
467 
468  CPU_TS_UpdateHandler((CPU_TS *)&ts_lo,
469  (CPU_TS *) 0);
470 
471  return (ts_lo);
472 }

函数调用图:

void CPU_TS_Update ( void  )

在文件 cpu_core.c500 行定义.

参考 CPU_TS_UpdateHandler().

参考自 App_TimeTickHook().

501 {
503  (CPU_TS *)0);
504 }

函数调用图:

这是这个函数的调用关系图:

CPU_INT16U CPU_TS_TmrInit ( void  )

在文件 cpu_bsp.c149 行定义.

参考 BSP_REG_DWT_CR , 以及 DEF_BIT_00.

参考自 CPU_TS_Init().

150 {
151  CPU_INT16U nbr_shifts;
152 
153 
155 
156  nbr_shifts = 0u;
157  return (nbr_shifts);
158 }

这是这个函数的调用关系图:

CPU_TS CPU_TS_TmrRd ( void  )

在文件 cpu_bsp.c235 行定义.

参考 BSP_REG_DWT_CYCCNT.

参考自 CPU_TS_Init() , 以及 CPU_TS_UpdateHandler().

236 {
237  CPU_TS time_meas_cnts;
238 
239 
240  time_meas_cnts = (CPU_TS)BSP_REG_DWT_CYCCNT;
241 
242  return (time_meas_cnts);
243 }

这是这个函数的调用关系图:

void CPU_TS_to_uSec ( CPU_TS  ts_lo_cnts,
CPU_TS  ts_hi_cnts,
CPU_INT32U p_ts_lo_usec,
CPU_INT32U p_ts_hi_usec 
)

在文件 cpu_bsp.c312 行定义.

316 {
317 
318 }

变量说明

CPU_CORE_EXT CPU_INT16U CPU_TS_TmrNbrShifts

在文件 cpu_core.h185 行定义.

参考自 CPU_TS_Init() , 以及 CPU_TS_UpdateHandler().

CPU_CORE_EXT CPU_TS CPU_TS_Lo

在文件 cpu_core.h189 行定义.

参考自 CPU_TS_Init() , 以及 CPU_TS_UpdateHandler().

CPU_CORE_EXT CPU_TS CPU_TS_Hi

在文件 cpu_core.h190 行定义.

参考自 CPU_TS_Init() , 以及 CPU_TS_UpdateHandler().

CPU_CORE_EXT CPU_TS CPU_TS_Prev

在文件 cpu_core.h191 行定义.

参考自 CPU_TS_Init() , 以及 CPU_TS_UpdateHandler().