??? 11/19/04 11:44 Modified: 11/19/04 11:45 Read: times |
#81497 - Interrupt Function Prototype & Keil |
Hi Friends,
With ANSI 'C' it is necessary to use function declaration/prototype before the main() function. This declaration helps compiler determine the parameter & return types and number of parameters. Thus compiler can check the actual function call and can flag error if number of type of parameters in call do not match the declaration. I have observed that for ordinary functions if prototype is not made then compiler shows error but for Interrupt Functions it doesn't show any error if prototype is not there. I have referred to KEIL knowledge base and made a search in the forum for "Interrupt Function prototype" From Keil knowledgebase I came to know that the keyword should not be used with prototypes. Does the interrupt function need protyping? If yes what are the precautions to be taken for doing this? Thanks & Regards, Prahlad Purohit |
Topic | Author | Date |
Interrupt Function Prototype & Keil | 01/01/70 00:00 | |
Re: Interrupt Function Prototype & Keil | 01/01/70 00:00 | |
No Parameters | 01/01/70 00:00 | |
ASM vs 'C' | 01/01/70 00:00 | |
Interrupt Routines | 01/01/70 00:00 | |
Assembly code no better than keil | 01/01/70 00:00 | |
efficient C | 01/01/70 00:00 | |
Hardware IIC | 01/01/70 00:00 | |
I2C(C) = I2C(asm) | 01/01/70 00:00 | |
C-asm delay | 01/01/70 00:00 | |
OSC_FREQ![]() | 01/01/70 00:00 | |
no need for prototypes! | 01/01/70 00:00 | |
Same | 01/01/70 00:00 |