2013-06-03 01:42 AM
Hello, I'm currently programmed a STM32F4 Discovery with the IDE Atollic. In my program, I get two fonction, the first in the file ''stm32f4xx_it.c'' and the second in the file main.c and i want to known if i can transmit a variable betwen the two fonctions.
Sorry for my bad English !!Thanks,2013-06-03 04:02 AM
This isn't an Atollic issue, simply a C one.
Define a global variable in one of the files, and refer to it with the ''extern'' keyword in the others. For variables you change in an interrupt consider also the ''volatile'' keyword.2013-06-03 06:29 AM
Ok, thanks, it's running !!!