Skip to main content
Eden.757
Associate
October 18, 2019
Solved

What does User Constants in the Device Configuration Tool do?

  • October 18, 2019
  • 2 replies
  • 2063 views

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

This topic has been closed for replies.
Best answer by andy2399

User constants specified in CubeMX appear in main.h as a series of #defines.

0690X00000AqX5mQAF.png

In main.h

0690X00000AqX61QAF.png

Andy

2 replies

andy2399
andy2399Answer
Senior
October 18, 2019

User constants specified in CubeMX appear in main.h as a series of #defines.

0690X00000AqX5mQAF.png

In main.h

0690X00000AqX61QAF.png

Andy

Eden.757
Eden.757Author
Associate
October 18, 2019

Thank you. That explains it!