2019-10-18 01:24 AM
Hello,
I would like to use a global variable in a while loop in my main file. That variable will be set to zero in a interrupt. Unfortunatly the interrupts are created by the device configuration tool in a seperate file. In the device configuration tool there is a window in UART called User Constants. I have declared the variable there but I don't know what this does. It didn't create a variable in the UART init or UART interrupt function. I hope you can clearify this for me.
Erwin
Solved! Go to Solution.
2019-10-18 02:07 AM
User constants specified in CubeMX appear in main.h as a series of #defines.
In main.h
Andy
2019-10-18 02:07 AM
User constants specified in CubeMX appear in main.h as a series of #defines.
In main.h
Andy
2019-10-18 02:48 AM
Thank you. That explains it!