cancel
Showing results for 
Search instead for 
Did you mean: 

What does User Constants in the Device Configuration Tool do?

Eden.757
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
andy2399
Senior

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

0690X00000AqX5mQAF.png

In main.h

0690X00000AqX61QAF.png

Andy

View solution in original post

2 REPLIES 2
andy2399
Senior

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

0690X00000AqX5mQAF.png

In main.h

0690X00000AqX61QAF.png

Andy

Eden.757
Associate

Thank you. That explains it!