Skip to main content
Graduate II
October 10, 2024
Question

variable sharing across multiple .c files

  • October 10, 2024
  • 1 reply
  • 513 views

Good evening all community members,

I am using STM32F4 board. My current project has multiple .c files to have a modular approach. ADC files is working on its own interrupt and another file called gpio file working on timer2 interrupt. I got a sensor's value from ADC  and i want to use this value in gpio file. Trying my best, i am not able to share adc variable's data to gpio file. Request if someone could guide me what is it that I am doing wrong here??

regards and thanks...!

 

    This topic has been closed for replies.

    1 reply

    Super User
    October 10, 2024