Skip to main content
Yoshimitsu_Manji_clan
Associate 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...!

 

1 reply

Andrew Neil
Super User
October 10, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.