TI中文支持网
TI专业的中文技术问题搜集分享网站

TM4C123的systick时钟如何使用。

我想使用TM4C123的滴答时钟系统,但是发现找到的systick时钟的相关函数,但是我不知道计数值的对应关系

#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickValueGet \
((uint32_t (*)(void))ROM_SYSTICKTABLE[0])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickEnable \
((void (*)(void))ROM_SYSTICKTABLE[1])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickDisable \
((void (*)(void))ROM_SYSTICKTABLE[2])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickIntEnable \
((void (*)(void))ROM_SYSTICKTABLE[3])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickIntDisable \
((void (*)(void))ROM_SYSTICKTABLE[4])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickPeriodSet \
((void (*)(uint32_t ui32Period))ROM_SYSTICKTABLE[5])
#endif
#if defined(TARGET_IS_TM4C123_RA1) || \
defined(TARGET_IS_TM4C123_RA3) || \
defined(TARGET_IS_TM4C123_RB1) || \
defined(TARGET_IS_TM4C129_RA0) || \
defined(TARGET_IS_TM4C129_RA1)
#define ROM_SysTickPeriodGet \
((uint32_t (*)(void))ROM_SYSTICKTABLE[6])
#endif

例如,装载值对应的是多长时间

yifei wang2:

回复 xyz549040622:

请问你给出的这些代码,是在哪个工程文件里面的??

xyz549040622:

回复 yifei wang2:

ti\TivaWare_C_Series-2.1.0.12573\docs

这个文件夹下面有个驱动库的文档,你可以看看。

user5316406:

回复 yifei wang2:

你好请问 tm4c的滴答时钟系统 你是调用的哪个h文件的函数呢

Susan Yang:

回复 user5316406:

已经在 e2echina.ti.com/…/176646 给出了回复

赞(0)
未经允许不得转载:TI中文支持网 » TM4C123的systick时钟如何使用。
分享到: 更多 (0)