CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
宏定义 | 函数
debug_time_consuming.h 文件参考
#include "ci_debug_config.h"
#include <stdint.h>
#include <stdbool.h>

浏览源代码.

宏定义

#define DEBUG_TIMER_INIT()   init_timer0()
 
#define DEBUG_TIMER_START()   timer0_start_count()
 
#define DEBUG_TIMER_END(x)   timer0_end_count(x)
 

函数

void init_timer0 (void)
 初始化调试timer0 更多...
 
void timer0_start_count (void)
 调试timer0开始计时 更多...
 
void timer0_end_count (uint8_t *flag)
 停止timer0计时,并计算平均时间 更多...
 
void timer0_end_count_only_print_time_us (void)
 停止timer0计时,仅输出单次从start开始的计时 更多...
 
void timer0_start_debug_time (bool is)
 调试挂起任务,timer0开始计时 更多...
 
uint32_t timer0_end_debug_time (bool is, uint32_t *old_val)
 恢复任务,停止timer0计时 更多...
 
void init_timer1 (void)
 初始化调试timer1 更多...
 
void timer1_start_count (void)
 调试timer1开始计时 更多...
 
void timer1_end_count_only_print_time_us (void)
 停止timer1计时,仅输出单次从start开始的计时 更多...
 
uint32_t timer1_end_count_only_print_time_us_and_return (void)
 停止timer1计时,仅输出单次从start开始的计时,并返回计时时间 更多...
 
int ci_timer_val (void)
 Get the value of TIMER0 更多...
 

详细描述

版本
1.0
日期
2019-11-22

宏定义说明

◆ DEBUG_TIMER_END

#define DEBUG_TIMER_END (   x)    timer0_end_count(x)

◆ DEBUG_TIMER_INIT

#define DEBUG_TIMER_INIT ( )    init_timer0()

◆ DEBUG_TIMER_START

#define DEBUG_TIMER_START ( )    timer0_start_count()

函数说明

◆ ci_timer_val()

int ci_timer_val ( void  )

Get the value of TIMER0

注解
1. The type of return value is int, so we can't set the max count of TIMER0 > 0x7FFF_FFFF.
  1. Non-reenterable
返回
The current value of TIMER0