完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想使用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 例如,装载值对应的是多长时间 |
|
相关推荐 |
|
只有小组成员才能发言,加入小组>>
327 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
205 浏览 1 评论
884 浏览 0 评论
TMS320F28377D:新做了以377d为芯片的板子,上电后芯片复位引脚出现方波请问如何解决?
2063 浏览 0 评论
TPS55340通电后输入端保险丝烧断,芯片输入和GND之间短路
3802 浏览 4 评论
CC3100BOOST使用CC3200lunchXL进行烧录
843浏览 2评论
83浏览 2评论
111浏览 2评论
90浏览 2评论
116浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-23 11:18 , Processed in 0.930662 second(s), Total 57, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191