完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
移植代码的bsp.c文件中有这样一段代码,哪位高人能解释一下吗?? 非常感谢~~
CPU_INT32U VIC_SpuriousInt; static void VIC_Dummy (void) { while (1) { (void)VIC_SpuriousInt; } } static void VIC_DummyWDT (void) { VIC_SpuriousInt = VIC_WDT; VIC_Dummy(); } static void VIC_DummySW (void) { VIC_SpuriousInt = VIC_SW; VIC_Dummy(); } static void VIC_DummyDEBUGRX (void) { VIC_SpuriousInt = VIC_DEBUGRX; VIC_Dummy(); } static void VIC_DummyDEBUGTX (void) { VIC_SpuriousInt = VIC_DEBUGTX; VIC_Dummy(); } static void VIC_DummyTIMER0 (void) { VIC_SpuriousInt = VIC_TIMER0; VIC_Dummy(); } static void VIC_DummyTIMER1 (void) { VIC_SpuriousInt = VIC_TIMER1; VIC_Dummy(); } static void VIC_DummyUART0 (void) { VIC_SpuriousInt = VIC_UART0; VIC_Dummy(); } static void VIC_DummyUART1 (void) { VIC_SpuriousInt = VIC_UART1; VIC_Dummy(); } static void VIC_DummyPWM01 (void) { VIC_SpuriousInt = VIC_PWM01; VIC_Dummy(); } static void VIC_DummyI2C0 (void) { VIC_SpuriousInt = VIC_I2C0; VIC_Dummy(); } static void VIC_DummySPI (void) { VIC_SpuriousInt = VIC_SPI; VIC_Dummy(); } static void VIC_DummySSP1 (void) { VIC_SpuriousInt = VIC_SSP1; VIC_Dummy(); } static void VIC_DummyPLL (void) { VIC_SpuriousInt = VIC_PLL; VIC_Dummy(); } static void VIC_DummyRTC (void) { VIC_SpuriousInt = VIC_RTC; VIC_Dummy(); } static void VIC_DummyEINT0 (void) { VIC_SpuriousInt = VIC_EINT0; VIC_Dummy(); } static void VIC_DummyEINT1 (void) { VIC_SpuriousInt = VIC_EINT1; VIC_Dummy(); } static void VIC_DummyEINT2 (void) { VIC_SpuriousInt = VIC_EINT2; VIC_Dummy(); } static void VIC_DummyEINT3 (void) { VIC_SpuriousInt = VIC_EINT3; VIC_Dummy(); } static void VIC_DummyAD0 (void) { VIC_SpuriousInt = VIC_AD0; VIC_Dummy(); } static void VIC_DummyI2C1 (void) { VIC_SpuriousInt = VIC_I2C1; VIC_Dummy(); } static void VIC_DummyBOD (void) { VIC_SpuriousInt = VIC_BOD; VIC_Dummy(); } static void VIC_DummyETHERNET (void) { VIC_SpuriousInt = VIC_ETHERNET; VIC_Dummy(); } static void VIC_DummyUSB (void) { VIC_SpuriousInt = VIC_USB; VIC_Dummy(); } static void VIC_DummyCAN01 (void) { VIC_SpuriousInt = VIC_CAN12; VIC_Dummy(); } static void VIC_DummyMMC (void) { VIC_SpuriousInt = VIC_MMC; VIC_Dummy(); } static void VIC_DummyGP_DMA (void) { VIC_SpuriousInt = VIC_GP_DMA; VIC_Dummy(); } static void VIC_DummyTIMER2 (void) { VIC_SpuriousInt = VIC_TIMER2; VIC_Dummy(); } static void VIC_DummyTIMER3 (void) { VIC_SpuriousInt = VIC_TIMER3; VIC_Dummy(); } static void VIC_DummyUART2 (void) { VIC_SpuriousInt = VIC_UART2; VIC_Dummy(); } static void VIC_DummyUART3 (void) { VIC_SpuriousInt = VIC_UART3; VIC_Dummy(); } static void VIC_DummyI2C2 (void) { VIC_SpuriousInt = VIC_I2C2; VIC_Dummy(); } static void VIC_DummyI2S (void) { VIC_SpuriousInt = VIC_I2S; VIC_Dummy(); } |
|
相关推荐
6个回答
|
|
|
|
|
|
他给的解释叫做“ dummy interrupt handler ”,但就是看不懂他要作甚??求解释呀求解释~~
|
|
|
|
就是没有实际功能的中断入口函数.
|
|
|
|
那…为什么还要加这个呢…有什么用呢…
|
|
|
|
提供中断入口函数.如果没有对应的函数,则直接死机.
|
|
|
|
这样解释好像还是对滴哎~~谢啦~~
|
|
|
|
只有小组成员才能发言,加入小组>>
798 浏览 0 评论
1155 浏览 1 评论
2531 浏览 5 评论
2863 浏览 9 评论
移植了freeRTOS到STMf103之后显示没有定义的原因?
2713 浏览 6 评论
keil5中manage run-time environment怎么是灰色,不可以操作吗?
1087浏览 3评论
195浏览 2评论
461浏览 2评论
374浏览 2评论
M0518 PWM的电压输出只有2V左右,没有3.3V是怎么回事?
455浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 11:48 , Processed in 1.062891 second(s), Total 58, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号